diff --git a/Templates/Empty/game/core/art/gui/FrameOverlayGui.gui b/Templates/Empty/game/core/art/gui/FrameOverlayGui.gui index 04a3f1472..eb810ee46 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..51dc53d4b 100644 --- a/Templates/Empty/game/scripts/client/default.bind.cs +++ b/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); //------------------------------------------------------------------------------ // diff --git a/Templates/Full/game/core/art/gui/FrameOverlayGui.gui b/Templates/Full/game/core/art/gui/FrameOverlayGui.gui index 04a3f1472..eb810ee46 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 17092d5b2..d2ca23730 100644 --- a/Templates/Full/game/scripts/client/default.bind.cs +++ b/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); //------------------------------------------------------------------------------ //