====== Workflow ======
==== 3, Write Commonest Logic for visible interactivity ====
- Load a ui holder(panel)
- UIHub.instance.LoadUI((int)UIPanelType.TestPanel);
- Close a ui holder
-
UIHub.instance.GetBinder<$uibinder$> ((int)arr [0]/*holder insid*/).OnBtnClose ();
- Call a check dialog
-
UIHub.instance.LoadCheckDialogUI (
"Warning",
"Are you sure to delete this profile?",
new Dictionary () {
{ UIEnum_CheckDlgBtnType.Confirm, "Confirm" },
{ UIEnum_CheckDlgBtnType.Cancel, "Cancel" } },
btnType => {
if (btnType == UIEnum_CheckDlgBtnType.Confirm) {
//TODO:
}
}
);
Run and try to operate the components.
* Take open a check dialog for example
* {{:1_guide:1_guide_2_makeholder_7.png?675}}
* {{:1_guide:1_guide_2_makeholder_8.png?675}}
* {{:1_guide:1_guide_2_makeholder_9.png?675}}