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); } }
private void Notice(EventMessageArgs args) { if (ignore) { return; } ctrlActive = args.Get <bool>("status"); SetActive(this.active && ctrlActive); }
private void Refresh(EventMessageArgs args) { step = args.Get <float>("progress"); progress.value = step; }