瀏覽代碼

Enable to play recorded gameplay demo from main menu.

John3 9 年之前
父節點
當前提交
4699a2142b

+ 23 - 3
Templates/Empty/game/art/gui/mainMenuGui.gui

@@ -16,7 +16,7 @@
    isContainer = "1";
    canSave = "1";
    canSaveDynamicFields = "1";
-      enabled = "1";
+      Enabled = "1";
       isDecoy = "0";
 
    new GuiBitmapCtrl(MainMenuAppLogo) {
@@ -35,7 +35,7 @@
       isContainer = "0";
       canSave = "1";
       canSaveDynamicFields = "1";
-         enabled = "1";
+         Enabled = "1";
          isDecoy = "0";
    };
    new GuiControl() {
@@ -59,7 +59,7 @@
          buttonType = "PushButton";
          useMouseEvents = "1";
          position = "9 26";
-         extent = "289 75";
+         extent = "219 75";
          minExtent = "8 8";
          horizSizing = "relative";
          vertSizing = "bottom";
@@ -158,6 +158,26 @@
          canSave = "1";
          canSaveDynamicFields = "0";
       };
+      new GuiButtonCtrl() {
+         text = "Replay";
+         groupNum = "-1";
+         buttonType = "PushButton";
+         useMouseEvents = "0";
+         position = "215 26";
+         extent = "83 75";
+         minExtent = "8 2";
+         horizSizing = "right";
+         vertSizing = "bottom";
+         profile = "GuiMenuButtonProfile";
+         visible = "1";
+         active = "1";
+         command = "Canvas.pushDialog(RecordingsDlg);";
+         tooltipProfile = "GuiToolTipProfile";
+         hovertime = "1000";
+         isContainer = "0";
+         canSave = "1";
+         canSaveDynamicFields = "0";
+      };
    };
 };
 //--- OBJECT WRITE END ---

+ 1 - 0
Templates/Empty/game/core/scripts/client/core.cs

@@ -73,6 +73,7 @@ function initializeCore()
    exec("~/art/gui/console.gui");
    exec("~/art/gui/consoleVarDlg.gui");
    exec("~/art/gui/netGraphGui.gui");
+   exec("~/art/gui/RecordingsDlg.gui");
    
    // Gui Helper Scripts.
    exec("~/scripts/gui/help.cs");

+ 23 - 3
Templates/Full/game/art/gui/mainMenuGui.gui

@@ -16,7 +16,7 @@
    isContainer = "1";
    canSave = "1";
    canSaveDynamicFields = "1";
-      enabled = "1";
+      Enabled = "1";
       isDecoy = "0";
 
    new GuiBitmapCtrl(MainMenuAppLogo) {
@@ -35,7 +35,7 @@
       isContainer = "0";
       canSave = "1";
       canSaveDynamicFields = "1";
-         enabled = "1";
+         Enabled = "1";
          isDecoy = "0";
    };
    new GuiControl() {
@@ -59,7 +59,7 @@
          buttonType = "PushButton";
          useMouseEvents = "1";
          position = "9 18";
-         extent = "289 75";
+         extent = "219 75";
          minExtent = "8 8";
          horizSizing = "relative";
          vertSizing = "bottom";
@@ -178,6 +178,26 @@
          canSave = "1";
          canSaveDynamicFields = "0";
       };
+      new GuiButtonCtrl() {
+         text = "Replay";
+         groupNum = "-1";
+         buttonType = "PushButton";
+         useMouseEvents = "0";
+         position = "215 18";
+         extent = "83 75";
+         minExtent = "8 2";
+         horizSizing = "right";
+         vertSizing = "bottom";
+         profile = "GuiMenuButtonProfile";
+         visible = "1";
+         active = "1";
+         command = "Canvas.pushDialog(RecordingsDlg);";
+         tooltipProfile = "GuiToolTipProfile";
+         hovertime = "1000";
+         isContainer = "0";
+         canSave = "1";
+         canSaveDynamicFields = "0";
+      };
    };
 };
 //--- OBJECT WRITE END ---

+ 1 - 0
Templates/Full/game/core/scripts/client/core.cs

@@ -73,6 +73,7 @@ function initializeCore()
    exec("~/art/gui/console.gui");
    exec("~/art/gui/consoleVarDlg.gui");
    exec("~/art/gui/netGraphGui.gui");
+   exec("~/art/gui/RecordingsDlg.gui");
    
    // Gui Helper Scripts.
    exec("~/scripts/gui/help.cs");