void OnEnable() { tableComp.onReposition = OnReposition; LoadViewController.ShowLoadIndicator(); GenerateView(); LoadViewController.HideLoadIndicator(); }
void Start() { LoadViewController.ShowLoadIndicator(); AuthorizeCommand authCmd = new AuthorizeCommand(); authCmd.Callback = AfterAuthorize; authCmd.execute(); }
void OnEnable() { scrollComp.onDragFinished = DragFinished; tableComp.onReposition = OnReposition; LoadViewController.ShowLoadIndicator(); ClearView(); GenerateView(); LoadViewController.HideLoadIndicator(); }
private void AfterSyncScenes(object obj) { Debug.Log("AfterSyncScenes"); if (obj != null && (bool)obj) { sceneIdList.Clear(); ClearView(); GenerateView(); } LoadViewController.HideLoadIndicator(); }
private void AfterSyncSceneType(object obj) { Debug.Log("AfterSyncSceneType"); if (obj != null && !(bool)obj) { LoadViewController.HideLoadIndicator(); return; } GenerateView(); LoadViewController.HideLoadIndicator(); }
private void DragFinished() { Debug.Log("DragFinished function called"); if (Math.Abs(scrollPanel.transform.localPosition.y + scrollPanelComp.clipRange.w / 2 + table.transform.GetChild(table.transform.childCount - 1).localPosition.y) < 5) { Debug.Log("scroll to the bottom"); LoadViewController.ShowLoadIndicator(); GenerateView(); LoadViewController.HideLoadIndicator(); } }
private void AfterAuthorize(object obj) { Debug.Log("AfterAuthorize"); if (obj != null && !(bool)obj) { LoadViewController.HideLoadIndicator(); return; } SyncSceneTypeCommand cmd = new SyncSceneTypeCommand(); cmd.Callback = AfterSyncSceneType; cmd.execute(); }
void Awake() { lvc = this; indicatorPanel = indicatorView.GetComponent <UIPanel>(); progressPanel = progressView.GetComponent <UIPanel>(); progressSlider = progressView.transform.Find("Progress Bar").gameObject.GetComponent <UISlider>(); tipLabel = progressView.transform.Find("Tip").gameObject.GetComponent <UILabel>(); tips = new string[3]; for (int i = 1; i <= tips.Length; ++i) { tips[i - 1] = "Tip_" + i; } }
private void NotifyProgress(float progress) { Debug.Log("Loading progress is " + progress); if (progress == 1.0f) { LoadViewController.HideLoadProgress(OnFinishLoad); } else if (progress == -1.0f) { NotificationViewController.ShowNotification(Localization.Localize(StringKey.Msg_LoadSceneFail)); } else { LoadViewController.NotifyProgress(progress); } }
void OnEnable() { LoadViewController.ShowLoadProgress(OnFinishShow); }
private IEnumerator TestGenerateView() { yield return(new WaitForSeconds(2f)); LoadViewController.HideLoadIndicator(); }