main_controller module
- class core.gameCreation.main_controller.MainController
Bases:
QMainWindow
Main application controller for the DnD Project.
Manages the main window, scenario overview, and map editor widgets. Handles switching between scenario overview and map editor.
- load_existing_map(map_path)
Load an existing map into the editor.
Removes any existing map editor widget, creates a new one, loads the map from the given path, and switches the UI to the map editor.
- Parameters:
map_path (str) – The file path to the map to be loaded.
- start_new_map()
Start a new map editing session.
Removes any existing map editor widget, creates a new one, and switches the UI to the map editor.