centered account values

This commit is contained in:
Yvonne Schmidt 2024-11-30 01:03:11 +01:00
parent 174fe5cfb3
commit 991fe5280f
2 changed files with 10 additions and 2 deletions

View File

@ -71,6 +71,14 @@ selector("label-Text", "pp") {
color = buttonEnabledColor color = buttonEnabledColor
} }
selector("label-account", "pp") {
insets = new Insets3f(2, 2, 2, 2)
fontSize = 25
color = buttonEnabledColor
textHAlignment = HAlignment.Center
textVAlignment = VAlignment.Center
}
selector("card-label", "pp") { selector("card-label", "pp") {
insets = new Insets3f(2, 2, 2, 2) insets = new Insets3f(2, 2, 2, 2)
color = ColorRGBA.Black color = ColorRGBA.Black

View File

@ -245,12 +245,12 @@ public class Toolbar extends Dialog implements GameEventListener {
accountContainer.addChild(new Label("Kontostand", new ElementId("label-Bold"))); accountContainer.addChild(new Label("Kontostand", new ElementId("label-Bold")));
accountContainer.addChild(new Label( accountContainer.addChild(new Label(
playerHandler.getPlayerById(app.getId()).getAccountBalance() + " EUR", playerHandler.getPlayerById(app.getId()).getAccountBalance() + " EUR",
new ElementId("label-Text") new ElementId("label-account")
)); ));
accountContainer.addChild(new Label("Gulag Karten", new ElementId("label-Bold"))); accountContainer.addChild(new Label("Gulag Karten", new ElementId("label-Bold")));
accountContainer.addChild(new Label( accountContainer.addChild(new Label(
playerHandler.getPlayerById(app.getId()).getNumJailCard() + "", playerHandler.getPlayerById(app.getId()).getNumJailCard() + "",
new ElementId("label-Text") new ElementId("label-account")
)); ));
accountContainer.setBackground(createBackground()); accountContainer.setBackground(createBackground());