mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 04:56:15 +01:00
changed font colors and sizes
This commit is contained in:
parent
16ff61264b
commit
dc66fd7384
@ -64,6 +64,16 @@ selector("label-Bold", "pp") {
|
|||||||
textHAlignment = HAlignment.Center
|
textHAlignment = HAlignment.Center
|
||||||
textVAlignment = VAlignment.Center
|
textVAlignment = VAlignment.Center
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
selector("label-toolbar", "pp") {
|
||||||
|
insets = new Insets3f(2, 2, 2, 2)
|
||||||
|
font = font("Interface/Fonts/Metropolis/Metropolis-Bold-32.fnt")
|
||||||
|
fontSize = 30
|
||||||
|
color = new ColorRGBA(ColorRGBA.White)
|
||||||
|
textHAlignment = HAlignment.Center
|
||||||
|
textVAlignment = VAlignment.Center
|
||||||
|
|
||||||
}
|
}
|
||||||
selector("label-Text", "pp") {
|
selector("label-Text", "pp") {
|
||||||
insets = new Insets3f(2, 2, 2, 2)
|
insets = new Insets3f(2, 2, 2, 2)
|
||||||
@ -74,7 +84,7 @@ selector("label-Text", "pp") {
|
|||||||
selector("label-account", "pp") {
|
selector("label-account", "pp") {
|
||||||
insets = new Insets3f(2, 2, 2, 2)
|
insets = new Insets3f(2, 2, 2, 2)
|
||||||
fontSize = 25
|
fontSize = 25
|
||||||
color = buttonEnabledColor
|
color = new ColorRGBA(ColorRGBA.White)
|
||||||
textHAlignment = HAlignment.Center
|
textHAlignment = HAlignment.Center
|
||||||
textVAlignment = VAlignment.Center
|
textVAlignment = VAlignment.Center
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
Container playerColorBar = new Container();
|
Container playerColorBar = new Container();
|
||||||
playerColorBar.setPreferredSize(new Vector3f(app.getCamera().getWidth(), 15, 0)); // Höhe des oberen Balkens
|
playerColorBar.setPreferredSize(new Vector3f(app.getCamera().getWidth(), 15, 0)); // Höhe des oberen Balkens
|
||||||
playerColorBar.setBackground(new QuadBackgroundComponent(playerColor));
|
playerColorBar.setBackground(new QuadBackgroundComponent(playerColor));
|
||||||
playerColorBar.setLocalTranslation(0, 210, 1); // Position über der Toolbar
|
playerColorBar.setLocalTranslation(0, 210, 3); // Position über der Toolbar
|
||||||
app.getGuiNode().attachChild(playerColorBar);
|
app.getGuiNode().attachChild(playerColorBar);
|
||||||
|
|
||||||
// unterer Balken
|
// unterer Balken
|
||||||
@ -113,6 +113,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
private Container createDiceSection() {
|
private Container createDiceSection() {
|
||||||
Container diceContainer = new Container(new SpringGridLayout(Axis.X, Axis.Y));
|
Container diceContainer = new Container(new SpringGridLayout(Axis.X, Axis.Y));
|
||||||
diceContainer.addChild(createDiceDisplay());
|
diceContainer.addChild(createDiceDisplay());
|
||||||
|
diceContainer.setBackground(null);
|
||||||
|
|
||||||
diceButton = new Button("Würfeln", new ElementId("button-toolbar"));
|
diceButton = new Button("Würfeln", new ElementId("button-toolbar"));
|
||||||
diceButton.setPreferredSize(new Vector3f(200, 50, 0));
|
diceButton.setPreferredSize(new Vector3f(200, 50, 0));
|
||||||
@ -130,6 +131,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
private Container createDiceDisplay() {
|
private Container createDiceDisplay() {
|
||||||
Container horizontalContainer = new Container(new SpringGridLayout(Axis.X, Axis.Y));
|
Container horizontalContainer = new Container(new SpringGridLayout(Axis.X, Axis.Y));
|
||||||
horizontalContainer.setPreferredSize(new Vector3f(200, 150, 0));
|
horizontalContainer.setPreferredSize(new Vector3f(200, 150, 0));
|
||||||
|
horizontalContainer.setBackground(null);
|
||||||
|
|
||||||
imageLabel = createDiceLabel("Pictures/dice/one.png");
|
imageLabel = createDiceLabel("Pictures/dice/one.png");
|
||||||
imageLabel2 = createDiceLabel("Pictures/dice/two.png");
|
imageLabel2 = createDiceLabel("Pictures/dice/two.png");
|
||||||
@ -150,6 +152,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
|
|
||||||
private Container createDiceContainer(Label label) {
|
private Container createDiceContainer(Label label) {
|
||||||
Container container = new Container();
|
Container container = new Container();
|
||||||
|
container.setBackground(null);
|
||||||
container.setPreferredSize(new Vector3f(100, 150, 0));
|
container.setPreferredSize(new Vector3f(100, 150, 0));
|
||||||
container.addChild(label);
|
container.addChild(label);
|
||||||
return container;
|
return container;
|
||||||
@ -178,6 +181,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
|
|
||||||
private Button createEndTurnButton() {
|
private Button createEndTurnButton() {
|
||||||
endTurnButton = new Button("Zug beenden", new ElementId("button-toolbar"));
|
endTurnButton = new Button("Zug beenden", new ElementId("button-toolbar"));
|
||||||
|
endTurnButton.setFontSize(28);
|
||||||
endTurnButton.setPreferredSize(new Vector3f(150, 50, 0));
|
endTurnButton.setPreferredSize(new Vector3f(150, 50, 0));
|
||||||
endTurnButton.addClickCommands(s -> ifTopDialog(() -> {
|
endTurnButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||||
app.getGameLogic().playSound(Sound.BUTTON);
|
app.getGameLogic().playSound(Sound.BUTTON);
|
||||||
@ -263,19 +267,19 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
accountContainer.clearChildren();
|
accountContainer.clearChildren();
|
||||||
overviewContainer.clearChildren();
|
overviewContainer.clearChildren();
|
||||||
|
|
||||||
accountContainer.addChild(new Label("Kontostand", new ElementId("label-Bold")));
|
accountContainer.addChild(new Label("Kontostand", new ElementId("label-toolbar")));
|
||||||
accountContainer.addChild(new Label(
|
accountContainer.addChild(new Label(
|
||||||
playerHandler.getPlayerById(app.getId()).getAccountBalance() + " EUR",
|
playerHandler.getPlayerById(app.getId()).getAccountBalance() + " EUR",
|
||||||
new ElementId("label-account")
|
new ElementId("label-account")
|
||||||
));
|
));
|
||||||
accountContainer.addChild(new Label("Gulag Karten", new ElementId("label-Bold")));
|
accountContainer.addChild(new Label("Gulag Karten", new ElementId("label-toolbar")));
|
||||||
accountContainer.addChild(new Label(
|
accountContainer.addChild(new Label(
|
||||||
playerHandler.getPlayerById(app.getId()).getNumJailCard() + "",
|
playerHandler.getPlayerById(app.getId()).getNumJailCard() + "",
|
||||||
new ElementId("label-account")
|
new ElementId("label-account")
|
||||||
));
|
));
|
||||||
accountContainer.setBackground(createBackground());
|
accountContainer.setBackground(null);
|
||||||
|
|
||||||
overviewContainer.addChild(new Label("Übersicht", new ElementId("label-Bold")));
|
overviewContainer.addChild(new Label("Übersicht", new ElementId("label-toolbar")));
|
||||||
for (Player player : playerHandler.getPlayers()) {
|
for (Player player : playerHandler.getPlayers()) {
|
||||||
if (player.getId() != app.getId()) {
|
if (player.getId() != app.getId()) {
|
||||||
// Spielerfarbe abrufen
|
// Spielerfarbe abrufen
|
||||||
@ -294,7 +298,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
|||||||
overviewContainer.addChild(playerLabel);
|
overviewContainer.addChild(playerLabel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
overviewContainer.setBackground(createBackground());
|
overviewContainer.setBackground(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user