eigenes GUI Styling eingeführt

This commit is contained in:
Yvonne Schmidt 2024-11-18 07:26:31 +01:00
parent b74ca4e702
commit 869e16406d
2 changed files with 13 additions and 3 deletions

View File

@ -206,7 +206,7 @@ selector("tabbedPanel.container", "pp") {
} }
selector("tab.button", "pp") { selector("tab.button", "pp") {
background = gradient.clone() background = solidWhiteBackground.clone()
background.setColor(bgColor) background.setColor(bgColor)
color = tabbuttonEnabledColor color = tabbuttonEnabledColor
insets = new Insets3f(4, 2, 0, 2) insets = new Insets3f(4, 2, 0, 2)

View File

@ -37,6 +37,15 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
private TestWorld testWorld; private TestWorld testWorld;
private boolean isSettingsMenuOpen = false; private boolean isSettingsMenuOpen = false;
private boolean inputBlocked = false; private boolean inputBlocked = false;
/**
* Path to the styles script for GUI elements.
*/
private static final String STYLES_SCRIPT = "Interface/Lemur/pp-styles.groovy"; //NON-NLS
/**
* Path to the font resource used in the GUI.
*/
private static final String FONT = "Interface/Fonts/Default.fnt"; //NON-NLS
public static void main(String[] args) { public static void main(String[] args) {
new MonopolyApp().start(); new MonopolyApp().start();
@ -73,8 +82,9 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
@Override @Override
public void simpleInitApp() { public void simpleInitApp() {
GuiGlobals.initialize(this); GuiGlobals.initialize(this);
BaseStyles.loadGlassStyle(); BaseStyles.loadStyleResources(STYLES_SCRIPT);
GuiGlobals.getInstance().getStyles().setDefaultStyle("glass"); GuiGlobals.getInstance().getStyles().setDefaultStyle("pp"); //NON-NLS
final BitmapFont normalFont = assetManager.loadFont(FONT); //NON-NLS
setupInput(); setupInput();
setupGui(); setupGui();