I could solve my IntelliJ issues. I have started to rebuild everything step by step.
The issue of not having an effect on button etc. comes after I attach a new AppState. So it is very similiar to the other issue that we have discussed here.
I now believe that somehow the lemur Gui Elements are totally out of reach of pick(state?) somehow.
Please check this simple code below:
public class Editor_Main extends SimpleApplication {
private static AppSettings appeinst;
@Override
public void simpleInitApp() {
GuiGlobals.initialize(this);
// GuiGlobals globals = GuiGlobals.getInstance();
Button btest = new Button("Test_I_Must_become_yellow");
btest.setLocalTranslation(50,250,1);
btest.addClickCommands(new Command<Button>() {
@Override
public void execute(Button button) {
stop();
}
});
guiNode.attachChild(btest);
}
@Override
public void simpleUpdate(float tpf) {
}
public Editor_Main(){
super(new Test_AppState());
}
public static void main(String[] args){
Editor_Main app = new Editor_Main();
app.start(); // start the game
}
}
The AppState is empty!
If I dont attach the appstate the Button reacts (stoping the application and changing color to yellow when hovering).
If i switch the lemur jar (and use the old version) I have no issue.
This time I have no idea about what is changing after I add the appState but I have realized that the Stats also dissappear once the AppState is added…