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:
Areloch 2015-08-04 22:57:25 -05:00
parent 63ae781d24
commit b614d87e78
7 changed files with 151 additions and 75 deletions

View file

@ -5,8 +5,8 @@
new GuiPlatformGenericMenuBar()
{
internalName = "menubar";
extent = "1024 32";
minExtent = "320 32";
extent = "1024 20";
minExtent = "320 20";
horizSizing = "width";
profile = "GuiMenuBarProfile";
};

View file

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

View file

@ -5,8 +5,8 @@
new GuiPlatformGenericMenuBar()
{
internalName = "menubar";
extent = "1024 32";
minExtent = "320 32";
extent = "1024 20";
minExtent = "320 20";
horizSizing = "width";
profile = "GuiMenuBarProfile";
};

View file

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