diff --git a/Templates/BaseGame/game/tools/guiEditor/gui/guiEditor.ed.gui b/Templates/BaseGame/game/tools/guiEditor/gui/guiEditor.ed.gui index 301d1e689..175cdb29b 100644 --- a/Templates/BaseGame/game/tools/guiEditor/gui/guiEditor.ed.gui +++ b/Templates/BaseGame/game/tools/guiEditor/gui/guiEditor.ed.gui @@ -1411,6 +1411,25 @@ $guiContent = new GuiControl(GuiEditorGui, EditorGuiGroup) { }; }; + new GuiBitmapButtonCtrl() { + bitmapAsset = "ToolsModule:reset_icon_n_image"; + groupNum = "-1"; + buttonType = "PushButton"; + useMouseEvents = "0"; + isContainer = "0"; + Profile = "ToolsGuiDefaultProfile"; + HorizSizing = "left"; + VertSizing = "bottom"; + position = "138 12"; + Extent = "17 17"; + MinExtent = "8 2"; + canSave = "1"; + Visible = "1"; + tooltipprofile = "ToolsGuiToolTipProfile"; + hovertime = "1000"; + internalName = "button0"; + canSaveDynamicFields = "0"; + }; new GuiBitmapButtonCtrl() { bitmapAsset = "ToolsModule:reset_icon_n_image"; groupNum = "-1"; diff --git a/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.tscript b/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.tscript index b3e89a1c9..d23d61a5f 100644 --- a/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.tscript +++ b/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.tscript @@ -907,7 +907,7 @@ function GuiEditorTabBook::onTabSelected( %this, %text, %index ) switch$( %name ) { case "guiPage": - + %sidebar-->button0.setVisible( false ); %sidebar-->button1.setVisible( false ); %sidebar-->button2.setVisible( false ); %sidebar-->button3.setVisible( true ); @@ -922,7 +922,7 @@ function GuiEditorTabBook::onTabSelected( %this, %text, %index ) %sidebar-->button3.tooltip = "Hide Selected Control(s)"; case "profilesPage": - + %sidebar-->button0.setVisible( true ); %sidebar-->button1.setVisible( true ); %sidebar-->button2.setVisible( true ); %sidebar-->button3.setVisible( true ); @@ -942,7 +942,11 @@ function GuiEditorTabBook::onTabSelected( %this, %text, %index ) %sidebar-->button1.setBitmap( "ToolsModule:reset_icon_n_image" ); %sidebar-->button1.command = "GuiEditor.revertProfile( GuiEditorProfilesTree.getSelectedProfile() );"; - %sidebar-->button1.tooltip = "Revert Changes to the Selected Profile"; + %sidebar-->button1.tooltip = "Revert Changes to the Selected Profile"; + + %sidebar-->button0.setBitmap( "ToolsModule:iconSave_image" ); + %sidebar-->button0.command = "populateAllFonts();"; + %sidebar-->button0.tooltip = "(Re)Generate font cache"; case "toolboxPage":