mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-08-03 16:07:08 +02:00
cleanup
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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]":
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user