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:
JeffR 2022-06-02 20:17:23 -05:00
parent 956bd51d6d
commit c7763fe3ec
9 changed files with 31 additions and 17 deletions

View file

@ -11,7 +11,7 @@ function MainMenuButtons::onSleep(%this)
// set MainMenuButtonList as it's root page.
// This is an optional function, but is called as part of the validation that the page
// CAN be opened, so it's shown here as an example
function MainMenuButtonList::canOpen(%this)
function MainMenuButtons::canOpen(%this)
{
return true;
}
@ -21,7 +21,7 @@ function MainMenuButtonList::canOpen(%this)
// set MainMenuButtonList as it's root page.
// Once the page is added to the MainMenuGUI's UINavigation page stack, onOpen here is called
// Which allows us to actually do the work we need to do for display
function MainMenuButtonList::onOpen(%this)
function MainMenuButtons::onOpen(%this)
{
//Here, we set the MainMenuButtonList - a GuiStackControl with the MenuList class
// to be the active menu list.
@ -57,13 +57,13 @@ function MainMenuButtonList::onOpen(%this)
}
//Optional, as the check defaults to true, but here as an example case
function MainMenuButtonList::canClose(%this)
function MainMenuButtons::canClose(%this)
{
return true;
}
function MainMenuButtonList::onClose(%this)
function MainMenuButtons::onClose(%this)
{
}