This commit is contained in:
Johannes Schmelz 2024-12-09 23:57:49 +01:00
commit b4c664927b

View File

@ -99,6 +99,7 @@ public class Toolbar extends Dialog implements GameEventListener {
container.setBackground(background);
setupBorders(container);
setupSpacer(container);
setupPlayerInfoSection(container);
setupDiceSection(container);
setupActionMenu(container);
@ -135,6 +136,17 @@ public class Toolbar extends Dialog implements GameEventListener {
app.getGuiNode().attachChild(border);
}
/**
* Adds a spacer to the specified container.
*
* @param container the container to which the spacer is added
*/
private void setupSpacer(Container container) {
Container spacer = container.addChild(new Container());
spacer.setPreferredSize(new Vector3f(20, 10, 0));
spacer.setBackground(null);
}
/**
* Sets up the player information section of the toolbar interface.
*