Added fpscounter command, FPS counter is disabled by default

This commit is contained in:
Joonas Rikkonen
2018-11-19 20:23:46 +02:00
parent c2d0fa4e03
commit b3a1d2f75f
2 changed files with 6 additions and 2 deletions

View File

@@ -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) =>

View File

@@ -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;