فهرست منبع

Merge pull request #1821 from Areloch/platformgenericmenucatch

Sanity check for if the GuiPlatformGenericMenuBar class
Areloch 8 سال پیش
والد
کامیت
1e89337825

+ 19 - 1
Templates/Empty/game/tools/gui/guiPlatformGenericMenubar.ed.cs

@@ -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";
+      };
+   };
+}

+ 19 - 1
Templates/Full/game/tools/gui/guiPlatformGenericMenubar.ed.cs

@@ -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";
+      };
+   };
+}