summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/com/ilotterytea/maxoning/ui/DebugLabel.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/DebugLabel.java b/core/src/com/ilotterytea/maxoning/ui/DebugLabel.java
index 9300962..5335450 100644
--- a/core/src/com/ilotterytea/maxoning/ui/DebugLabel.java
+++ b/core/src/com/ilotterytea/maxoning/ui/DebugLabel.java
@@ -1,18 +1,19 @@
package com.ilotterytea.maxoning.ui;
import com.badlogic.gdx.Gdx;
+import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
-import com.ilotterytea.maxoning.MaxonConstants;
public class DebugLabel extends Label {
- private static final String str_placeholder = "%s\n%s fps";
+ private static final String str_placeholder = "%s fps";
public DebugLabel(Skin skin) {
- super(String.format(str_placeholder, MaxonConstants.GAME_VERSION, Gdx.graphics.getFramesPerSecond()), skin);
+ super(String.format(str_placeholder, Gdx.graphics.getFramesPerSecond()), skin, "debug");
+ super.setColor(Color.LIME);
}
@Override public void act(float delta) {
- super.setText(String.format(str_placeholder, MaxonConstants.GAME_VERSION, Gdx.graphics.getFramesPerSecond()));
+ super.setText(String.format(str_placeholder, Gdx.graphics.getFramesPerSecond()));
}
}