Beispiel #1
0
 private void AuthManager_OnProcessFinish(bool wantsuser, System.Exception ex)
 {
     UDialogManager.HideDialogWindow(LOADING_KEY);
     if (wantsuser)
     {
         UDialogManager.DisplayDialogWindow(ALERT_KEY, ex.Message, DialogType.Warning, DialogButtons.Ok
                                            , new ButtonOptions("Accept", (UDialogMessage msg) => msg.Hide()));
     }
 }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        UDialogManager.OnHide += () =>
        {
            Debug.Log("HIDE!!!");
        };

        UDialogManager.OnTimeOut += (string did) =>
        {
            Debug.Log("TIMEOUT ! " + did);
        };

        string id = "TEST";

        UDialogManager.DisplayDialogWindow(id, "Tienes tiempo?", DialogType.Warning, DialogButtons.YesNo, new ButtonOptions("Si", (UDialogMessage mm) =>
        {
            string xid = "TEST2";
            UDialogManager.DisplayDialogWindow(xid, "Hola !!!", DialogType.Info, DialogButtons.None, 5f, new ButtonOptions("Ok", null));

            mm.Hide();
        }), new ButtonOptions("No", (UDialogMessage mm) => mm.Hide()));
    }
Beispiel #3
0
 private void AuthManager_OnProcessBegin()
 {
     UDialogManager.DisplayDialogWindow(LOADING_KEY, "Loading...", DialogType.Loading, DialogButtons.None);
 }