mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-10 16:00:46 +00:00
Adjusted init'ing logic to defer to project settings for the name of the play gui and mainMenu gui instead of hardcoding them
This commit is contained in:
parent
e6e2ee0d50
commit
fee1ceab3c
18 changed files with 151 additions and 134 deletions
|
|
@ -27,7 +27,7 @@
|
|||
profile = "GuiDefaultProfile";
|
||||
visible = "1";
|
||||
active = "1";
|
||||
command = "disconnect();\nCanvas.setContent(MainMenuGui);";
|
||||
command = "disconnect();\nCanvas.setContent(ProjectSettings.value(\"UI/mainMenuName\"));";
|
||||
accelerator = "escape";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
|
|
|
|||
|
|
@ -144,7 +144,9 @@ function StartupGui::onDone(%this)
|
|||
//BlankGui.delete();
|
||||
//flushTextureCache();
|
||||
|
||||
Canvas.setContent(MainMenuGui);
|
||||
%mainMenuGUI = ProjectSettings.value("UI/mainMenuName");
|
||||
if (isObject( %mainMenuGUI ))
|
||||
Canvas.setContent( %mainMenuGUI );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue