public void ShowTimeSelected(int hour, int minute, string strTileString, ConfirmCallBack cb) { textTitle.text = strTileString; confirmCB = cb; gameObject.SetActive(true); SetInitialTime(hour, minute); }
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); }
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; }
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(); } }
private void ConfirmDeviceSelection(ConfirmCallBack callback) => ConfirmDeviceSelection(callback, true);
public static void InitWindow(string msg, ConfirmCallBack cb, Vector2 pos) { message = msg; callback = cb; Init(pos); }
void CloseWindow() { callback = null; this.Close(); }
public static void InitWindow(string msg, ConfirmCallBack cb) { InitWindow(msg, cb, new Vector2(10, 10)); }
public void SetupPanel(string message, ConfirmCallBack callBack) { _onConfirmation = callBack; MessageLabel.text = message; }
void CloseWindow() { callback=null; this.Close(); }
public static void InitWindow(string msg, ConfirmCallBack cb, Vector2 pos) { message=msg; callback=cb; Init(pos); }