Ver código fonte

Merge pull request #693 from 'Azaezel/Metrics_Keybind'

Daniel Buckmaster 11 anos atrás
pai
commit
effa335c26

+ 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 ---

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

@@ -441,7 +441,12 @@ GlobalActionMap.bind(keyboard, "ctrl o", bringUpOptions);
 //------------------------------------------------------------------------------
 // Debugging Functions
 //------------------------------------------------------------------------------
-
+function showMetrics(%val)
+{
+   if(%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 ---

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

@@ -615,7 +615,12 @@ GlobalActionMap.bind(keyboard, "ctrl o", bringUpOptions);
 //------------------------------------------------------------------------------
 // Debugging Functions
 //------------------------------------------------------------------------------
-
+function showMetrics(%val)
+{
+   if(%val)
+      metrics("fps gfx shadow sfx terrain groundcover forest net");
+}
+GlobalActionMap.bind(keyboard, "ctrl F2", showMetrics);
 
 //------------------------------------------------------------------------------
 //