Example #1
0
        private void OnReceivedLogin(EventMessageArgs args)
        {
            bool success = args.Get <bool>("status");

            if (success)
            {
                GlobalVariables.Set(Const.ACCOUNT, account);

                if (remember)
                {
                    GlobalVariables.Set(Const.PASSWORD, password);
                }
                UIManager.Instance.Open(UIPanel.UILoading);

                ScheduleLogic.Instance.callback = () =>
                {
                    UIManager.Instance.CloseAll();
                    UIManager.Instance.Open(UIPanel.UIMain);
                };
                ScheduleLogic.Instance.Enter();
            }
            else
            {
                string error = args.Get <string>("message");

                UIQuickEntry.OpenUIHorseLamp(error);
            }
        }
Example #2
0
        private void Notice(EventMessageArgs args)
        {
            if (ignore)
            {
                return;
            }

            ctrlActive = args.Get <bool>("status");

            SetActive(this.active && ctrlActive);
        }
Example #3
0
        private void Refresh(EventMessageArgs args)
        {
            step = args.Get <float>("progress");

            progress.value = step;
        }