mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #1821 from Areloch/platformgenericmenucatch
Sanity check for if the GuiPlatformGenericMenuBar class
This commit is contained in:
commit
1e89337825
2 changed files with 38 additions and 2 deletions
|
|
@ -1 +1,19 @@
|
||||||
exec("./guiPlatformGenericMenubar.ed.gui");
|
if(isClass(GuiPlatformGenericMenuBar))
|
||||||
|
{
|
||||||
|
exec("./guiPlatformGenericMenubar.ed.gui");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
%guiContent = new GuiControl(PlatformGenericMenubar) {
|
||||||
|
profile = "GuiModelessDialogProfile";
|
||||||
|
|
||||||
|
new GuiControl()
|
||||||
|
{
|
||||||
|
internalName = "menubar";
|
||||||
|
extent = "1024 20";
|
||||||
|
minExtent = "320 20";
|
||||||
|
horizSizing = "width";
|
||||||
|
profile = "GuiMenuBarProfile";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1 +1,19 @@
|
||||||
exec("./guiPlatformGenericMenubar.ed.gui");
|
if(isClass(GuiPlatformGenericMenuBar))
|
||||||
|
{
|
||||||
|
exec("./guiPlatformGenericMenubar.ed.gui");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
%guiContent = new GuiControl(PlatformGenericMenubar) {
|
||||||
|
profile = "GuiModelessDialogProfile";
|
||||||
|
|
||||||
|
new GuiControl()
|
||||||
|
{
|
||||||
|
internalName = "menubar";
|
||||||
|
extent = "1024 20";
|
||||||
|
minExtent = "320 20";
|
||||||
|
horizSizing = "width";
|
||||||
|
profile = "GuiMenuBarProfile";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue