mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 22:56:15 +01:00
toolbar frame has playercolor
This commit is contained in:
parent
6b110c81c8
commit
650dcb85db
@ -156,30 +156,28 @@ public class Toolbar extends Dialog implements GameEventListener {
|
||||
// Oberer Balken mit der Spielerfarbe
|
||||
Container playerColorBar = new Container();
|
||||
playerColorBar.setPreferredSize(new Vector3f(app.getCamera().getWidth(), 5, 0)); // Höhe des oberen Balkens
|
||||
playerColorBar.setBackground(new QuadBackgroundComponent(ColorRGBA.DarkGray));
|
||||
playerColorBar.setBackground(new QuadBackgroundComponent(currentPlayerColor.getColor())); // Use player color
|
||||
playerColorBar.setLocalTranslation(0, 205, 3); // Position über der Toolbar
|
||||
app.getGuiNode().attachChild(playerColorBar);
|
||||
|
||||
|
||||
// unterer Balken
|
||||
// Unterer Balken mit der Spielerfarbe
|
||||
Container playerColorBarbot = new Container();
|
||||
playerColorBarbot.setPreferredSize(new Vector3f(app.getCamera().getWidth(), 10, 0)); // Höhe des oberen Balkens
|
||||
playerColorBarbot.setBackground(new QuadBackgroundComponent(ColorRGBA.DarkGray));
|
||||
playerColorBarbot.setPreferredSize(new Vector3f(app.getCamera().getWidth(), 10, 0)); // Höhe des unteren Balkens
|
||||
playerColorBarbot.setBackground(new QuadBackgroundComponent(currentPlayerColor.getColor())); // Use player color
|
||||
playerColorBarbot.setLocalTranslation(0, 5, 3); // Position über der Toolbar
|
||||
app.getGuiNode().attachChild(playerColorBarbot);
|
||||
|
||||
|
||||
// Linker Balken
|
||||
// Linker Balken mit der Spielerfarbe
|
||||
Container leftBar = new Container();
|
||||
leftBar.setPreferredSize(new Vector3f(5, 210, 0)); // Breite 10, Höhe 210
|
||||
leftBar.setBackground(new QuadBackgroundComponent(ColorRGBA.DarkGray));
|
||||
leftBar.setPreferredSize(new Vector3f(5, 210, 0)); // Breite 5, Höhe 210
|
||||
leftBar.setBackground(new QuadBackgroundComponent(currentPlayerColor.getColor())); // Use player color
|
||||
leftBar.setLocalTranslation(0, 200, 3); // Position am linken Rand
|
||||
app.getGuiNode().attachChild(leftBar);
|
||||
|
||||
// Rechter Balken
|
||||
// Rechter Balken mit der Spielerfarbe
|
||||
Container rightBar = new Container();
|
||||
rightBar.setPreferredSize(new Vector3f(5, 210, 0)); // Breite 10, Höhe 210
|
||||
rightBar.setBackground(new QuadBackgroundComponent(ColorRGBA.DarkGray));
|
||||
rightBar.setPreferredSize(new Vector3f(5, 210, 0)); // Breite 5, Höhe 210
|
||||
rightBar.setBackground(new QuadBackgroundComponent(currentPlayerColor.getColor())); // Use player color
|
||||
rightBar.setLocalTranslation(app.getCamera().getWidth() - 5, 200, 2); // Position am rechten Rand
|
||||
app.getGuiNode().attachChild(rightBar);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user