tool trickerey

label the editor buttons with thier respective hotkeys, and hide them if the ToolsModule doesn't exist
This commit is contained in:
AzaezelX 2022-08-15 19:09:25 -05:00
parent 3e88e2acb8
commit 8f1b98a4d6

View file

@ -52,20 +52,24 @@ $guiContent = new GuiControl(MainMenuButtons) {
tooltipProfile = "GuiToolTipProfile"; tooltipProfile = "GuiToolTipProfile";
}; };
new GuiButtonCtrl(MainMenuWorldEditBtn) { new GuiButtonCtrl(MainMenuWorldEditBtn) {
text = "Open World Editor"; text = "Open World Editor (F11)";
position = "0 280"; position = "0 280";
extent = "400 55"; extent = "400 55";
profile = "GuiMenuButtonProfile"; profile = "GuiMenuButtonProfile";
command = "openWorldEditorBtn();"; command = "openWorldEditorBtn();";
tooltipProfile = "GuiToolTipProfile"; tooltipProfile = "GuiToolTipProfile";
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
}; };
new GuiButtonCtrl(MainMenuGuiEditBtn) { new GuiButtonCtrl(MainMenuGuiEditBtn) {
text = "Open GUI Editor"; text = "Open GUI Editor (F10)";
position = "0 350"; position = "0 350";
extent = "400 55"; extent = "400 55";
profile = "GuiMenuButtonProfile"; profile = "GuiMenuButtonProfile";
command = "openGUIEditorBtn();"; command = "openGUIEditorBtn();";
tooltipProfile = "GuiToolTipProfile"; tooltipProfile = "GuiToolTipProfile";
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
}; };
new GuiButtonCtrl(MainMenuExitBtn) { new GuiButtonCtrl(MainMenuExitBtn) {
text = "Exit"; text = "Exit";