강조 효과 활성화/비활성화 조건 수정
This commit is contained in:
@@ -29,6 +29,7 @@ namespace CHN
|
||||
public Action<Machine> onClickSimple;
|
||||
public Action<Machine> onClickDetail;
|
||||
public Action<Machine,HashSet<string>> simpleView;
|
||||
public Action onCloseDashBoard;
|
||||
|
||||
public Panel_MachineDashBoard currentDashBoard;
|
||||
public Action onOpenDashboard;
|
||||
@@ -45,42 +46,23 @@ namespace CHN
|
||||
machineDashboardTable.Add(machine, dashboard);
|
||||
dashboard.onClickSimple += onClickSimple;
|
||||
dashboard.onClickDetail += onClickDetail;
|
||||
dashboard.onClose += onCloseDashBoard;
|
||||
}
|
||||
}
|
||||
|
||||
public void MachineDashBoardOpenFromLibrary(Machine libraryMachine)
|
||||
{
|
||||
if (currentDashBoard != null)
|
||||
{
|
||||
currentDashBoard.SetActive(false);
|
||||
}
|
||||
var machine = libraryMachine;
|
||||
currentDashBoard = machineDashboardTable[machine];
|
||||
currentDashBoard.OpenFromLibraryButton(libraryMachine);
|
||||
|
||||
SetDashBoardPosition();
|
||||
onOpenDashboard?.Invoke();
|
||||
}
|
||||
|
||||
public void MachineDashBoardOpenFromOnClick(Machine clickMachine)
|
||||
public void MachineDashBoardOpen(Machine clickMachine)
|
||||
{
|
||||
if (currentDashBoard != null)
|
||||
{
|
||||
currentDashBoard.SetActive(false);
|
||||
}
|
||||
currentDashBoard = machineDashboardTable[clickMachine];
|
||||
currentDashBoard.OpenFromMachineClick(clickMachine);
|
||||
currentDashBoard.OpenFromMachine(clickMachine);
|
||||
|
||||
SetDashBoardPosition();
|
||||
onOpenDashboard?.Invoke();
|
||||
}
|
||||
|
||||
public void MachineDashBoardClose(UI_LibraryButton button)
|
||||
{
|
||||
var machine = button.machine;
|
||||
machineDashboardTable[machine].Close();
|
||||
}
|
||||
|
||||
public void SimpleView(Machine machine, SimpleField data)
|
||||
{
|
||||
machineDashboardTable[machine].SimpleInfoView(data);
|
||||
|
||||
Reference in New Issue
Block a user