mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Added cleanup of exec stack for module when it's finished to avoid duplicate executions
Added proper container bracketing for the main menu buttons and made that the main navigation target Added logic to UINav to prevent needlessly re-setting the root page if it already is the root page, which would break the navigation stack Added logic to UINav toprevent needlessly adding duplicate pages whicn would break the navigation stack Added logic to close the chooseLevelDlg page when the level is loaded to avoid the page being left hanging on the nav stack Fixed assetId for no preview image fallback on the chooseLevelDlg page Fixed display of icons in the shape editor shape helper section Fixed name lookup on terrain material editor dialogue which would break saving of terrain materials Disables TORQUE_SFX_DirectX which is currently not in use and nonfunctional
This commit is contained in:
parent
956bd51d6d
commit
c7763fe3ec
9 changed files with 31 additions and 17 deletions
|
|
@ -24,18 +24,17 @@ function MainMenuGui::onWake(%this)
|
|||
//We set up this catch by making said control our first responder, here
|
||||
MainMenuInputHandler.setFirstResponder();
|
||||
|
||||
//Lastly, we go ahead and display some actual navigable content up on our main menu here
|
||||
//In this case, we set the MainMenuButtonList as our root page, so we always come back
|
||||
//to having the main menu buttons on screen if every other page is closed.
|
||||
//This will ultimately call MainMenuButtonList::onOpen(), so to see where the navigation
|
||||
//chain continues, see that function.
|
||||
%this.setRootPage(MainMenuButtonList);
|
||||
|
||||
//We also go ahead and mark for any future pages being added to the UINavigation's page stack
|
||||
//to be prompted to resize when added. This isn't required, but helps keep pages formated to
|
||||
//the current size of the UINavigation, which is useful when dealing with aspect ratio or resolution
|
||||
//changes.
|
||||
%this.resizePages = true;
|
||||
//Lastly, we go ahead and display some actual navigable content up on our main menu here
|
||||
//In this case, we set the MainMenuButtons as our root page, so we always come back
|
||||
//to having the main menu buttons on screen if every other page is closed.
|
||||
//This will ultimately call MainMenuButtons::onOpen(), so to see where the navigation
|
||||
//chain continues, see that function.
|
||||
%this.setRootPage(MainMenuButtons);
|
||||
}
|
||||
|
||||
function MainMenuButtonHolder::onWake(%this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue