From 8b07e91d2c59c2f6caaa3ec2cf00dc9f0f46104c Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Fri, 23 Feb 2018 10:33:59 +0200 Subject: [PATCH] Added camera zoom value to debug hud --- Barotrauma/BarotraumaClient/Source/GUI/GUI.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs b/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs index 940e4779f..91fc473be 100644 --- a/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs +++ b/Barotrauma/BarotraumaClient/Source/GUI/GUI.cs @@ -447,7 +447,7 @@ namespace Barotrauma if (Screen.Selected.Cam != null) { DrawString(spriteBatch, new Vector2(10, 55), - "Camera pos: " + Screen.Selected.Cam.Position.ToPoint(), + "Camera pos: " + Screen.Selected.Cam.Position.ToPoint() + ", zoom: " + Screen.Selected.Cam.Zoom, Color.White, Color.Black * 0.5f, 0, SmallFont); } @@ -462,13 +462,13 @@ namespace Barotrauma { Color clr = Color.White; - string soundStr = i+": "; + string soundStr = i + ": "; var playingSound = Sounds.SoundManager.GetPlayingSound(i); if (playingSound == null) { - soundStr+= "none"; + soundStr += "none"; clr *= 0.5f; } else @@ -482,7 +482,7 @@ namespace Barotrauma } } - GUI.DrawString(spriteBatch, new Vector2(200, i * 15), soundStr, clr, Color.Black * 0.5f, 0, GUI.SmallFont); + GUI.DrawString(spriteBatch, new Vector2(300, i * 15), soundStr, clr, Color.Black * 0.5f, 0, GUI.SmallFont); } }