コード例 #1
0
        protected virtual void ExchangeTabInPanel(ViewStack tabsPanel, string prefabNameOfNewView)
        {
            var lastShownView = tabsPanel.GetLatestView();

            tabsPanel.SwitchToView(prefabNameOfNewView);
            lastShownView.Destroy();
        }
コード例 #2
0
        private static ProgressUi ShowBlockingProgressUiFor(ViewStack self,
                                                            string blockingProgressViewPrefabName, ProgressManager prManager)
        {
            GameObject prGo = self.ShowView(blockingProgressViewPrefabName);
            ProgressUi prUi = prGo.GetComponentInChildren <ProgressUi>();

            prUi.onProgressUiComplete += () => { prGo.GetViewStack().SwitchBackToLastView(prGo); };
            prUi.progressManager       = prManager;
            return(prUi);
        }
コード例 #3
0
ファイル: ViewStackHelper.cs プロジェクト: cs-util-com/cscore
 public static GameObject SwitchToView(this ViewStack target, GameObject newView, int siblingIndex = -1)
 {
     return(target.ShowView(newView, target.GetLatestView(), siblingIndex));
 }
コード例 #4
0
ファイル: ViewStackHelper.cs プロジェクト: cs-util-com/cscore
 public static GameObject SwitchToView(this ViewStack target, string prefabName, int siblingIndex = -1)
 {
     return(target.ShowView(prefabName, target.GetLatestView(), siblingIndex));
 }
コード例 #5
0
 public static ProgressUi ShowBlockingProgressUiFor(this ViewStack self, ProgressManager prManager)
 {
     return(ShowBlockingProgressUiFor(self, "Progress/BlockingProgressOverlay1", prManager));
 }