Exemplo n.º 1
0
 public void ShowTimeSelected(int hour, int minute, string strTileString, ConfirmCallBack cb)
 {
     textTitle.text = strTileString;
     confirmCB      = cb;
     gameObject.SetActive(true);
     SetInitialTime(hour, minute);
 }
Exemplo n.º 2
0
 public static void ConfirmMessage(string p_Title, string p_Text, ConfirmCallBack p_confirmCallBack)
 {
     if (instance == null)
     {
         CreatePopMessage();
     }
     instance.M_ConfirmMessage(p_Title, p_Text, p_confirmCallBack);
 }
Exemplo n.º 3
0
    public void M_ConfirmMessage(string p_Title, string p_Text, ConfirmCallBack p_confirmCallBack)
    {
        ShowAnim(confirm.Obj);
        confirm.title.text       = p_Title;
        confirm.description.text = p_Text;

        confirm.confirmCallBack = p_confirmCallBack;
    }
Exemplo n.º 4
0
 private void ConfirmDeviceSelection(ConfirmCallBack callback, bool askSure)
 {
     if (!IsBoxSelected(devList))
     {
         WarningDialog("Please select a device.");
     }
     else if (!IsDeviceStatusNormal(devicesMap[devList.SelectedIndex]))
     {
         WarningDialog("Device status isn't normal. Please refresh to check the newest status.");
     }
     else
     {
         if (askSure)
         {
             if (!ConfirmDialog("Are you sure?"))
             {
                 return;
             }
         }
         callback.Invoke();
         LoadDevices();
     }
 }
Exemplo n.º 5
0
 private void ConfirmDeviceSelection(ConfirmCallBack callback) => ConfirmDeviceSelection(callback, true);
Exemplo n.º 6
0
 public static void InitWindow(string msg, ConfirmCallBack cb, Vector2 pos)
 {
     message  = msg;
     callback = cb;
     Init(pos);
 }
Exemplo n.º 7
0
 void CloseWindow()
 {
     callback = null;
     this.Close();
 }
Exemplo n.º 8
0
 public static void InitWindow(string msg, ConfirmCallBack cb)
 {
     InitWindow(msg, cb, new Vector2(10, 10));
 }
Exemplo n.º 9
0
 public void SetupPanel(string message, ConfirmCallBack callBack)
 {
     _onConfirmation   = callBack;
     MessageLabel.text = message;
 }
Exemplo n.º 10
0
 void CloseWindow()
 {
     callback=null;
     this.Close();
 }
Exemplo n.º 11
0
 public static void InitWindow(string msg, ConfirmCallBack cb, Vector2 pos)
 {
     message=msg;
     callback=cb;
     Init(pos);
 }
Exemplo n.º 12
0
 public static void InitWindow(string msg, ConfirmCallBack cb)
 {
     InitWindow(msg, cb, new Vector2(10, 10));
 }