mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 22:10:36 +00:00
tool trickerey
label the editor buttons with thier respective hotkeys, and hide them if the ToolsModule doesn't exist
This commit is contained in:
parent
3e88e2acb8
commit
8f1b98a4d6
1 changed files with 6 additions and 2 deletions
|
|
@ -52,20 +52,24 @@ $guiContent = new GuiControl(MainMenuButtons) {
|
|||
tooltipProfile = "GuiToolTipProfile";
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuWorldEditBtn) {
|
||||
text = "Open World Editor";
|
||||
text = "Open World Editor (F11)";
|
||||
position = "0 280";
|
||||
extent = "400 55";
|
||||
profile = "GuiMenuButtonProfile";
|
||||
command = "openWorldEditorBtn();";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuGuiEditBtn) {
|
||||
text = "Open GUI Editor";
|
||||
text = "Open GUI Editor (F10)";
|
||||
position = "0 350";
|
||||
extent = "400 55";
|
||||
profile = "GuiMenuButtonProfile";
|
||||
command = "openGUIEditorBtn();";
|
||||
tooltipProfile = "GuiToolTipProfile";
|
||||
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||
};
|
||||
new GuiButtonCtrl(MainMenuExitBtn) {
|
||||
text = "Exit";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue