Merge pull request #1667 from Azaezel/alpha41/fontsaveButton
Some checks failed
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
Linux Build / Ubuntu Latest GCC (push) Has been cancelled

add a (re)Generate font cache button to the profile tab
This commit is contained in:
Brian Roberts 2026-02-13 10:34:19 -06:00 committed by GitHub
commit 2c0558840a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 3 deletions

View file

@ -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";

View file

@ -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":