mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #1667 from Azaezel/alpha41/fontsaveButton
add a (re)Generate font cache button to the profile tab
This commit is contained in:
commit
2c0558840a
2 changed files with 26 additions and 3 deletions
|
|
@ -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() {
|
new GuiBitmapButtonCtrl() {
|
||||||
bitmapAsset = "ToolsModule:reset_icon_n_image";
|
bitmapAsset = "ToolsModule:reset_icon_n_image";
|
||||||
groupNum = "-1";
|
groupNum = "-1";
|
||||||
|
|
|
||||||
|
|
@ -907,7 +907,7 @@ function GuiEditorTabBook::onTabSelected( %this, %text, %index )
|
||||||
switch$( %name )
|
switch$( %name )
|
||||||
{
|
{
|
||||||
case "guiPage":
|
case "guiPage":
|
||||||
|
%sidebar-->button0.setVisible( false );
|
||||||
%sidebar-->button1.setVisible( false );
|
%sidebar-->button1.setVisible( false );
|
||||||
%sidebar-->button2.setVisible( false );
|
%sidebar-->button2.setVisible( false );
|
||||||
%sidebar-->button3.setVisible( true );
|
%sidebar-->button3.setVisible( true );
|
||||||
|
|
@ -922,7 +922,7 @@ function GuiEditorTabBook::onTabSelected( %this, %text, %index )
|
||||||
%sidebar-->button3.tooltip = "Hide Selected Control(s)";
|
%sidebar-->button3.tooltip = "Hide Selected Control(s)";
|
||||||
|
|
||||||
case "profilesPage":
|
case "profilesPage":
|
||||||
|
%sidebar-->button0.setVisible( true );
|
||||||
%sidebar-->button1.setVisible( true );
|
%sidebar-->button1.setVisible( true );
|
||||||
%sidebar-->button2.setVisible( true );
|
%sidebar-->button2.setVisible( true );
|
||||||
%sidebar-->button3.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.setBitmap( "ToolsModule:reset_icon_n_image" );
|
||||||
%sidebar-->button1.command = "GuiEditor.revertProfile( GuiEditorProfilesTree.getSelectedProfile() );";
|
%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":
|
case "toolboxPage":
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue