mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-20 07:03:46 +00:00
add a (re)Generate font cache button to the profile tab
also add a zeroth %sidebar-->button
This commit is contained in:
parent
476ed66932
commit
34ea855031
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() {
|
||||
bitmapAsset = "ToolsModule:reset_icon_n_image";
|
||||
groupNum = "-1";
|
||||
|
|
|
|||
|
|
@ -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":
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue