fixed settings in toolbar

This commit is contained in:
Johannes Schmelz 2024-11-25 04:52:53 +01:00
parent 72cb7049ba
commit 1a429e4bb6

View File

@ -11,6 +11,8 @@ import com.simsilica.lemur.component.QuadBackgroundComponent;
import com.simsilica.lemur.component.SpringGridLayout;
import com.simsilica.lemur.style.ElementId;
import groovyjarjarantlr4.v4.parse.ATNBuilder.subrule_return;
import pp.dialog.Dialog;
import pp.monopoly.client.MonopolyApp;
import pp.monopoly.notification.Sound;
@ -223,11 +225,15 @@ public class Toolbar extends Dialog {
positionText.setText("Feld-ID: " + currentPosition);
}
/**
* Entfernt die Toolbar.
*/
public void remove() {
@Override
public void close() {
app.getGuiNode().detachChild(toolbarContainer);
app.getGuiNode().detachChild(positionText);
super.close();
}
@Override
public void escape() {
new SettingsMenu(app).open();
}
}