From c514841ebbf35f723ddcb3288df0c5afd262fb4f Mon Sep 17 00:00:00 2001 From: Azaezel Date: Wed, 11 Jun 2014 03:09:41 -0500 Subject: [PATCH] Binds the full metrics display to CTRL+F2 while in-game. Escape Closes. --- Templates/Empty/game/core/art/gui/FrameOverlayGui.gui | 2 ++ Templates/Empty/game/scripts/client/default.bind.cs | 6 +++++- Templates/Full/game/core/art/gui/FrameOverlayGui.gui | 2 ++ Templates/Full/game/scripts/client/default.bind.cs | 6 +++++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Templates/Empty/game/core/art/gui/FrameOverlayGui.gui b/Templates/Empty/game/core/art/gui/FrameOverlayGui.gui index 04a3f1472..2736b7ade 100644 --- a/Templates/Empty/game/core/art/gui/FrameOverlayGui.gui +++ b/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 --- diff --git a/Templates/Empty/game/scripts/client/default.bind.cs b/Templates/Empty/game/scripts/client/default.bind.cs index fa7455271..05ced493e 100644 --- a/Templates/Empty/game/scripts/client/default.bind.cs +++ b/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); //------------------------------------------------------------------------------ // diff --git a/Templates/Full/game/core/art/gui/FrameOverlayGui.gui b/Templates/Full/game/core/art/gui/FrameOverlayGui.gui index 04a3f1472..2736b7ade 100644 --- a/Templates/Full/game/core/art/gui/FrameOverlayGui.gui +++ b/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 --- diff --git a/Templates/Full/game/scripts/client/default.bind.cs b/Templates/Full/game/scripts/client/default.bind.cs index 803124bc0..2ea70cbee 100644 --- a/Templates/Full/game/scripts/client/default.bind.cs +++ b/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); //------------------------------------------------------------------------------ //