diff --git a/Templates/Empty/game/tools/gui/guiPlatformGenericMenubar.ed.cs b/Templates/Empty/game/tools/gui/guiPlatformGenericMenubar.ed.cs index 327a50205..089b0b8fa 100644 --- a/Templates/Empty/game/tools/gui/guiPlatformGenericMenubar.ed.cs +++ b/Templates/Empty/game/tools/gui/guiPlatformGenericMenubar.ed.cs @@ -1 +1,19 @@ -exec("./guiPlatformGenericMenubar.ed.gui"); \ No newline at end of file +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"; + }; + }; +} \ No newline at end of file diff --git a/Templates/Full/game/tools/gui/guiPlatformGenericMenubar.ed.cs b/Templates/Full/game/tools/gui/guiPlatformGenericMenubar.ed.cs index 327a50205..089b0b8fa 100644 --- a/Templates/Full/game/tools/gui/guiPlatformGenericMenubar.ed.cs +++ b/Templates/Full/game/tools/gui/guiPlatformGenericMenubar.ed.cs @@ -1 +1,19 @@ -exec("./guiPlatformGenericMenubar.ed.gui"); \ No newline at end of file +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"; + }; + }; +} \ No newline at end of file