mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-29 00:49:46 +01:00
fixed cancel button position
This commit is contained in:
parent
a6054e825e
commit
bdc5f0269f
@ -208,12 +208,12 @@ public class TradeMenu extends Dialog {
|
||||
cancelButton.setFontSize(30);
|
||||
cancelButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
close();
|
||||
this.close();
|
||||
}));
|
||||
lowerLeftMenu.addChild(cancelButton);
|
||||
|
||||
// Position the container near the bottom-left corner
|
||||
lowerLeftMenu.setLocalTranslation(new Vector3f(70, 100, 8)); // Adjust X and Y to align with the bottom-left corner
|
||||
lowerLeftMenu.setLocalTranslation(new Vector3f(50, 100, 8)); // Adjust X and Y to align with the bottom-left corner
|
||||
app.getGuiNode().attachChild(lowerLeftMenu);
|
||||
|
||||
Label spacer = column.addChild(new Label("")); // Spacer
|
||||
|
Loading…
Reference in New Issue
Block a user