User Tools

Site Tools


1_guide:3_writecommonestlogic

Workflow

3, Write Commonest Logic for visible interactivity

  1. Load a ui holder(panel)
    1. UIHub.instance.LoadUI((int)UIPanelType.TestPanel);
  2. Close a ui holder
    1. UIHub.instance.GetBinder<$uibinder$> ((int)arr [0]/*holder insid*/).OnBtnClose ();
  3. Call a check dialog
    1. UIHub.instance.LoadCheckDialogUI (
          "Warning",
          "Are you sure to delete this profile?",
          new Dictionary<UIEnum_CheckDlgBtnType, string> () { 
              { 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/3_writecommonestlogic.txt · Last modified: 2024/06/18 13:42 by 127.0.0.1