public void openEditDialog() { UI ui = app.getAssetLoader().loadUI("dialog_edit_entity.fxml", new DialogEditEntityController()); MDIWindow window = new InGameWindow("Edit Entity", InGameWindow.WindowDecor.ALL); window.setPrefSize(380, 450); window.setContentPane(new Pane(ui.getRoot())); app.getGameScene().addUINode(window); }
public void openAddDialog() { UI ui = app.getAssetLoader().loadUI("dialog_add_entity.fxml", new DialogAddEntityController()); MDIWindow window = new InGameWindow("Add Entity", InGameWindow.WindowDecor.ALL); window.setPrefSize(350, 300); window.setContentPane(new Pane(ui.getRoot())); app.getGameScene().addUINode(window); }
public void openColorAdjustDialog() { if (uiColorAdjust == null) { uiColorAdjust = app.getAssetLoader().loadUI("dialog_color_adjust.fxml", new ColorAdjustController()); } MDIWindow window = new InGameWindow("Color Adjust", InGameWindow.WindowDecor.ALL); window.setPrefSize(380, 450); window.setContentPane(new Pane(uiColorAdjust.getRoot())); app.getGameScene().addUINode(window); }