mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Fixes the menubar functionality when using SDL.
This resolves menu order, cleanup and close/re-open issues, as well as crashes on close. It also modifies the look slightly to look closer to the windows menubar to keep a cohesive look regardless of platform.
This commit is contained in:
parent
63ae781d24
commit
b614d87e78
7 changed files with 151 additions and 75 deletions
|
|
@ -5,8 +5,8 @@
|
|||
new GuiPlatformGenericMenuBar()
|
||||
{
|
||||
internalName = "menubar";
|
||||
extent = "1024 32";
|
||||
minExtent = "320 32";
|
||||
extent = "1024 20";
|
||||
minExtent = "320 20";
|
||||
horizSizing = "width";
|
||||
profile = "GuiMenuBarProfile";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1067,8 +1067,10 @@ singleton GuiControlProfile( GuiCreatorIconButtonProfile )
|
|||
singleton GuiControlProfile( GuiMenuBarProfile )
|
||||
{
|
||||
fillcolor = "255 255 255";
|
||||
borderColor = "0 0 0";
|
||||
border = 1;
|
||||
fillcolorHL = "213 231 248";
|
||||
borderColor = "98 163 229";
|
||||
borderColorHL = "122 177 232";
|
||||
border = 0;
|
||||
borderThickness = 1;
|
||||
opaque = true;
|
||||
mouseOverSelected = true;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
new GuiPlatformGenericMenuBar()
|
||||
{
|
||||
internalName = "menubar";
|
||||
extent = "1024 32";
|
||||
minExtent = "320 32";
|
||||
extent = "1024 20";
|
||||
minExtent = "320 20";
|
||||
horizSizing = "width";
|
||||
profile = "GuiMenuBarProfile";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1067,8 +1067,10 @@ singleton GuiControlProfile( GuiCreatorIconButtonProfile )
|
|||
singleton GuiControlProfile( GuiMenuBarProfile )
|
||||
{
|
||||
fillcolor = "255 255 255";
|
||||
borderColor = "0 0 0";
|
||||
border = 1;
|
||||
fillcolorHL = "213 231 248";
|
||||
borderColor = "98 163 229";
|
||||
borderColorHL = "122 177 232";
|
||||
border = 0;
|
||||
borderThickness = 1;
|
||||
opaque = true;
|
||||
mouseOverSelected = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue