浏览代码

Binds the full metrics display to CTRL+F2 while in-game. Escape Closes.

Azaezel 11 年之前
父节点
当前提交
c514841ebb

+ 2 - 0
Templates/Empty/game/core/art/gui/FrameOverlayGui.gui

@@ -23,6 +23,8 @@
 		modal = "True";
 		helpTag = "0";
 		expression = "10";
+      command = "Canvas.popDialog(FrameOverlayGui);";
+      accelerator = "escape";
 	};
 };
 //--- OBJECT WRITE END ---

+ 5 - 1
Templates/Empty/game/scripts/client/default.bind.cs

@@ -441,7 +441,11 @@ GlobalActionMap.bind(keyboard, "ctrl o", bringUpOptions);
 //------------------------------------------------------------------------------
 // Debugging Functions
 //------------------------------------------------------------------------------
-
+function showmetrics(%val)
+{
+      metrics("FPS GFX SHADOW SFX TERRAIN GROUNDCOVER FOREST NET");
+}
+GlobalActionMap.bind(keyboard, "ctrl F2", showmetrics);
 
 //------------------------------------------------------------------------------
 //

+ 2 - 0
Templates/Full/game/core/art/gui/FrameOverlayGui.gui

@@ -23,6 +23,8 @@
 		modal = "True";
 		helpTag = "0";
 		expression = "10";
+      command = "Canvas.popDialog(FrameOverlayGui);";
+      accelerator = "escape";
 	};
 };
 //--- OBJECT WRITE END ---

+ 5 - 1
Templates/Full/game/scripts/client/default.bind.cs

@@ -615,7 +615,11 @@ GlobalActionMap.bind(keyboard, "ctrl o", bringUpOptions);
 //------------------------------------------------------------------------------
 // Debugging Functions
 //------------------------------------------------------------------------------
-
+function showmetrics(%val)
+{
+      metrics("FPS GFX SHADOW SFX TERRAIN GROUNDCOVER FOREST NET");
+}
+GlobalActionMap.bind(keyboard, "ctrl F2", showmetrics);
 
 //------------------------------------------------------------------------------
 //