diff options
| author | ilotterytea <iltsu@alright.party> | 2022-12-10 16:35:09 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-12-10 16:35:09 +0600 |
| commit | 977044fe4865bed3c01a2d270c3f687302a14347 (patch) | |
| tree | 0798f0fe483f733862ebf3865b98082336fac733 | |
| parent | 6fdaa92288b5854d946299a2624de9ead7058d71 (diff) | |
Moved the DebugInfo widget
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/GameScreen.java | 5 | ||||
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/MenuScreen.java | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java index 96adaf3..b46f978 100644 --- a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java @@ -182,10 +182,7 @@ public class GameScreen implements Screen, InputProcessor { DebugInfo debugInfo = new DebugInfo(skin, game.locale); - debugInfo.setPosition( - 8, - (Gdx.graphics.getHeight() - debugInfo.getHeight()) - 8 - ); + debugInfo.setPosition(4, (stage.getHeight() / 2f) + 128f); if (game.prefs.getBoolean("debug")) stage.addActor(debugInfo); diff --git a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java index c5706ad..acd93ff 100644 --- a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java @@ -148,7 +148,7 @@ public class MenuScreen implements Screen { // Debug info: debugInfo = new DebugInfo(skin, game.locale); - debugInfo.setPosition(4, stage.getHeight() - debugInfo.getHeight() - 4); + debugInfo.setPosition(4, (stage.getHeight() / 2f) + 128f); if (game.prefs.getBoolean("debug")) stage.addActor(debugInfo); Gdx.input.setInputProcessor(new InputMultiplexer(stage)); |
