while paused, don't clear the list of Debug rects & lines
GitOrigin-RevId: d298abc6ad4d7808da927a20c726cab6a65dc61c
This commit is contained in:
parent
588b18f9ad
commit
50479bac3c
@ -47,11 +47,13 @@ namespace SemiColinGames {
|
|||||||
System.Diagnostics.Debug.WriteLine(s, args);
|
System.Diagnostics.Debug.WriteLine(s, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Clear() {
|
public static void Clear(bool paused) {
|
||||||
toasts.Clear();
|
toasts.Clear();
|
||||||
|
if (!paused) {
|
||||||
rects.Clear();
|
rects.Clear();
|
||||||
lines.Clear();
|
lines.Clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void AddToast(string s) {
|
public static void AddToast(string s) {
|
||||||
toasts.AddLast(s);
|
toasts.AddLast(s);
|
||||||
|
@ -69,8 +69,6 @@ namespace SemiColinGames {
|
|||||||
|
|
||||||
// Updates the game world.
|
// Updates the game world.
|
||||||
protected override void Update(GameTime gameTime) {
|
protected override void Update(GameTime gameTime) {
|
||||||
Debug.Clear();
|
|
||||||
|
|
||||||
input.Add(new Input(GamePad.GetState(PlayerIndex.One), Keyboard.GetState()));
|
input.Add(new Input(GamePad.GetState(PlayerIndex.One), Keyboard.GetState()));
|
||||||
|
|
||||||
if (input[0].Exit) {
|
if (input[0].Exit) {
|
||||||
@ -86,6 +84,7 @@ namespace SemiColinGames {
|
|||||||
display.SetFullScreen(fullScreen);
|
display.SetFullScreen(fullScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debug.Clear(paused);
|
||||||
if (input[0].Debug && !input[1].Debug) {
|
if (input[0].Debug && !input[1].Debug) {
|
||||||
Debug.Enabled = !Debug.Enabled;
|
Debug.Enabled = !Debug.Enabled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user