From 227a7a027f3209e7a246ddd0a6360beb749ed563 Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Wed, 27 Nov 2024 23:40:16 +0100 Subject: [PATCH] added comments --- .../main/java/pp/monopoly/client/gui/BuildingAdminMenu.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/BuildingAdminMenu.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/BuildingAdminMenu.java index bec3e92..497e711 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/BuildingAdminMenu.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/BuildingAdminMenu.java @@ -77,7 +77,7 @@ public class BuildingAdminMenu extends Dialog { Container overviewColumn = new Container(new SpringGridLayout(Axis.Y, Axis.X)); overviewColumn.addChild(new Label("Übersicht:")).setFontSize(30); - + //Building Overview Button overviewButton.setPreferredSize(new Vector3f(200, 50, 0)); overviewButton.addClickCommands(s -> ifTopDialog(() -> { app.getGameLogic().playSound(Sound.BUTTON); @@ -99,12 +99,14 @@ public class BuildingAdminMenu extends Dialog { Container buildColumn = new Container(new SpringGridLayout(Axis.Y, Axis.X)); buildColumn.addChild(new Label("Bauen:")).setFontSize(30); + // Build Houses Button buildButton.setPreferredSize(new Vector3f(200, 50, 0)); buildButton.addClickCommands(s -> ifTopDialog(() -> { app.getGameLogic().playSound(Sound.BUTTON); })); buildColumn.addChild(buildButton); + //Demolish Houses Button demolishButton.setPreferredSize(new Vector3f(200, 50, 0)); demolishButton.addClickCommands(s -> ifTopDialog(() -> { app.getGameLogic().playSound(Sound.BUTTON); @@ -118,12 +120,14 @@ public class BuildingAdminMenu extends Dialog { Container mortgageColumn = new Container(new SpringGridLayout(Axis.Y, Axis.X)); mortgageColumn.addChild(new Label("Hypotheken:")).setFontSize(30); + // Lend Mortgage Button takeMortgageButton.setPreferredSize(new Vector3f(200, 50, 0)); takeMortgageButton.addClickCommands(s -> ifTopDialog(() -> { app.getGameLogic().playSound(Sound.BUTTON); })); mortgageColumn.addChild(takeMortgageButton); + //Repay Mortgage Button payMortgageButton.setPreferredSize(new Vector3f(200, 50, 0)); payMortgageButton.addClickCommands(s -> ifTopDialog(() -> { app.getGameLogic().playSound(Sound.BUTTON);