This commit is contained in:
Johannes Schmelz
2024-11-26 21:31:21 +01:00
parent 89587a4c78
commit 156e76fe0a
9 changed files with 12 additions and 30 deletions

View File

@@ -205,7 +205,6 @@ public class ChoosePartner extends Dialog {
public void update(float tpf) {
if (selectionRef.update()) {
String selected = selectionRef.get().toString();
System.out.println(selected);
listener.onSelectionChanged(selected);
}
}
@@ -235,7 +234,6 @@ public class ChoosePartner extends Dialog {
* Callback for when the dropdown selection changes.
*/
private void onDropdownSelectionChanged(String selected) {
System.out.println("Selected: " + selected);
app.getGameLogic().playSound(Sound.BUTTON);
int idStart = selected.indexOf("(ID: ") + 5; // Find start of the ID
int idEnd = selected.indexOf(")", idStart); // Find end of the ID
@@ -247,9 +245,6 @@ public class ChoosePartner extends Dialog {
if (selectedPlayer != null) {
tradeHandler.setReceiver(selectedPlayer); // Set the receiver in TradeHandler
System.out.println("Receiver set to: " + selectedPlayer.getName() + " (ID: " + selectedPlayer.getId() + ")");
} else {
System.err.println("Player with ID " + playerId + " not found.");
}
}

View File

@@ -241,7 +241,6 @@ public class LobbyMenu extends Dialog {
public void update(float tpf) {
if (selectionRef.update()) {
String selected = selectionRef.get().toString();
System.out.println(selected);
listener.onSelectionChanged(selected);
}
}
@@ -270,7 +269,6 @@ public class LobbyMenu extends Dialog {
* Callback for when the dropdown selection changes.
*/
private void onDropdownSelectionChanged(String selected) {
System.out.println("Selected: " + selected);
app.getGameLogic().playSound(Sound.BUTTON);
switch (selected) {
case "[0]":

View File

@@ -223,7 +223,6 @@ public class Toolbar extends Dialog implements GameEventListener{
}
}
overviewContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.4657f, 0.4735f, 0.4892f, 1.0f)));
System.out.println("pdate");
}
@@ -236,7 +235,6 @@ public class Toolbar extends Dialog implements GameEventListener{
icon2.setIconSize(new Vector2f(100, 100));
imageLabel.setIcon(icon1);
imageLabel2.setIcon(icon2);
System.out.println("Dice images set");
}
private String diceToString(int i) {