void DrawPages() // 画右边 { DrawRightSize(); GUI.skin = LoadRes.ResourcesSkin; PageScrollPosition = QUI.BeginScrollView(PageScrollPosition); { QUI.BeginVertical(mWindowSettings.CurrentPageContentWidth); { DrawRight(); QUI.FlexibleSpace(); } QUI.EndVertical(); QUI.Space(16); } QUI.EndScrollView(); }
void DrawPages() { InitPages(); SectionScrollPosition = QUI.BeginScrollView(SectionScrollPosition); { QUI.BeginVertical(WindowSettings.CurrentPageContentWidth); { switch (WindowSettings.currentPage) { case Page.General: DrawPageGeneral(); break; case Page.UIElements: DrawPageUIElements(); break; case Page.UIButtons: DrawPageUIButtons(); break; case Page.UISounds: DrawPageUISounds(); break; case Page.UICanvases: DrawPageUICanvases(); break; case Page.AnimatorPresets: DrawPageAnimatorPresets(); break; case Page.EditorSettings: DrawPageEditorSettings(); break; case Page.Help: DrawPageHelp(); break; case Page.About: DrawPageAbout(); break; } QUI.FlexibleSpace(); } QUI.EndVertical(); QUI.Space(SPACE_16); } QUI.EndScrollView(); if (ExecuteInitPage) //an InitPage has been executed -> stop another InitPage from being executed (for the same Page) until at lease one of the triggering conditions is met again { PreviousPage = WindowSettings.currentPage; refreshData = false; } }
void DrawPages() { InitPages(); PageScrollPosition = QUI.BeginScrollView(PageScrollPosition); { QUI.BeginVertical(WindowSettings.CurrentPageContentWidth); { switch (WindowSettings.currentPage) { case Page.General: break; case Page.DefineSymbols: DrawDefineSymbols(); break; case Page.DataManager: DrawDataManager(); break; case Page.DataBind: DrawBind(); break; case Page.Pooly: DrawPooly(); break; case Page.Ads: DrawAds(); break; case Page.Help: DrawHelp(); break; case Page.About: DrawAbout(); break; } QUI.FlexibleSpace(); } QUI.EndVertical(); QUI.Space(16); } QUI.EndScrollView(); if (PreviousPage != WindowSettings.currentPage || refreshData) { PreviousPage = WindowSettings.currentPage; refreshData = false; } }
void DrawPages() { SectionScrollPosition = QUI.BeginScrollView(SectionScrollPosition); { switch (CurrentSection) { case Section.ControlPanel: DrawControlPanel(); break; case Section.UIElements: if (PreviousSection != CurrentSection || refreshData) { RefreshUIElementsDatabase(refreshData); } DrawUIElementsDatabase(); break; case Section.UIButtons: if (PreviousSection != CurrentSection || refreshData) { RefreshUIButtonsDatabase(refreshData); } DrawUIButtonsDatabase(); break; case Section.UISounds: if (PreviousSection != CurrentSection || refreshData) { RefreshUISoundsDatabase(refreshData); } DrawUISounds(); break; case Section.CanvasNames: if (PreviousSection != CurrentSection || refreshData) { RefreshCanvasNamesDatabase(refreshData); } DrawUICanvases(); break; case Section.AnimatorPresets: if (PreviousSection != CurrentSection || refreshData) { openedAnimatorPresetCategory = ""; selectedAnimatorPresetName = ""; } DrawAnimatorPresets(); break; case Section.Settings: DrawSettings(); break; case Section.Help: DrawHelp(); break; case Section.About: DrawAbout(); break; } QUI.Space(16); } QUI.EndScrollView(); if (PreviousSection != CurrentSection || refreshData) { PreviousSection = CurrentSection; refreshData = false; } }