Merge pull request #693 from 'Azaezel/Metrics_Keybind'

This commit is contained in:
Daniel Buckmaster 2014-10-12 14:47:42 +11:00
commit effa335c26
4 changed files with 16 additions and 2 deletions

View file

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

View file

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

View file

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

View file

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