설비 라이브러리 디자인 적용 및 작업 시간 분석 차트 기능 수정
This commit is contained in:
@@ -30,7 +30,8 @@ namespace CHN
|
||||
public Action<Machine> onClickDetail;
|
||||
public Action<Machine,HashSet<string>> simpleView;
|
||||
|
||||
private Panel_MachineDashBoard currentDashBoard;
|
||||
public Panel_MachineDashBoard currentDashBoard;
|
||||
public Action onOpenDashboard;
|
||||
|
||||
private float multiply = 1.1f;
|
||||
public override void AfterAwake()
|
||||
@@ -45,7 +46,6 @@ namespace CHN
|
||||
machineDashboardTable.Add(machine, dashboard);
|
||||
dashboard.onClickSimple += onClickSimple;
|
||||
dashboard.onClickDetail += onClickDetail;
|
||||
dashboard.onClose += DashBoardClose;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace CHN
|
||||
currentDashBoard.OpenFromLibraryButton(libraryButton);
|
||||
|
||||
SetDashBoardPosition();
|
||||
onOpenDashboard?.Invoke();
|
||||
}
|
||||
|
||||
public void MachineDashBoardOpenFromOnClick(Machine clickMachine)
|
||||
@@ -72,6 +73,7 @@ namespace CHN
|
||||
currentDashBoard.OpenFromMachineClick(clickMachine);
|
||||
|
||||
SetDashBoardPosition();
|
||||
onOpenDashboard?.Invoke();
|
||||
}
|
||||
|
||||
public void MachineDashBoardClose(UI_LibraryButton button)
|
||||
@@ -90,9 +92,13 @@ namespace CHN
|
||||
machineDashboardTable[machine].DetailInfoView(data);
|
||||
}
|
||||
|
||||
public void DashBoardClose(Panel_MachineDashBoard dashBoard)
|
||||
public void CurrentDashoboardClose()
|
||||
{
|
||||
currentDashBoard = null;
|
||||
if (currentDashBoard != null)
|
||||
{
|
||||
currentDashBoard.Clear();
|
||||
currentDashBoard.SetActive(false);
|
||||
}
|
||||
}
|
||||
public void SetDashBoardPosition()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user