- afegides opcions persistents al editor

- afegida rejilla
This commit is contained in:
2026-04-02 17:38:03 +02:00
parent 44b6f6830d
commit 3c3e012386
7 changed files with 144 additions and 5 deletions

View File

@@ -191,6 +191,8 @@ void Game::handleEvents() {
GameControl::enter_editor();
Notifier::get()->show({Locale::get()->get("game.editor_enabled")}); // NOLINT(readability-static-accessed-through-instance)
}
} else if (event.type == SDL_EVENT_KEY_DOWN && event.key.key == SDLK_8 && static_cast<int>(event.key.repeat) == 0 && MapEditor::get()->isActive()) {
MapEditor::get()->showGrid(!MapEditor::get()->isGridEnabled());
} else if (MapEditor::get()->isActive()) {
MapEditor::get()->handleEvent(event);
} else {