Added fpscounter command, FPS counter is disabled by default
This commit is contained in:
@@ -384,7 +384,11 @@ namespace Barotrauma
|
||||
{
|
||||
GameMain.DebugDraw = !GameMain.DebugDraw;
|
||||
NewMessage("Debug draw mode " + (GameMain.DebugDraw ? "enabled" : "disabled"), Color.White);
|
||||
|
||||
}));
|
||||
commands.Add(new Command("fpscounter", "fpscounter: Toggle the FPS counter.", (string[] args) =>
|
||||
{
|
||||
GameMain.ShowFPS = !GameMain.ShowFPS;
|
||||
NewMessage("FPS counter " + (GameMain.DebugDraw ? "enabled" : "disabled"), Color.White);
|
||||
}));
|
||||
|
||||
commands.Add(new Command("togglehud|hud", "togglehud/hud: Toggle the character HUD (inventories, icons, buttons, etc) on/off.", (string[] args) =>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Barotrauma
|
||||
{
|
||||
class GameMain : Game
|
||||
{
|
||||
public static bool ShowFPS = true;
|
||||
public static bool ShowFPS = false;
|
||||
public static bool DebugDraw;
|
||||
|
||||
public static FrameCounter FrameCounter;
|
||||
|
||||
Reference in New Issue
Block a user