You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class MyMenu extends FXGLMenu {
public MyMenu(MenuType type) {
super(type);
// code to customize the view of your menu
}
}
Factory class
public class MySceneFactory extends SceneFactory {
@Override
public FXGLMenu newMainMenu() {
return new MyMenu(MenuType.MAIN_MENU);
}
@Override
public FXGLMenu newGameMenu() {
return new MyMenu(MenuType.GAME_MENU);
}
}