Mode Toggle Behavior¶
In the Grid Building system, pressing a mode button (or its corresponding keyboard shortcut) will activate that mode. If you press the same button or key again while the mode is already active, the system will toggle back to OFF mode—provided the corresponding system (e.g., BuildingSystem, ManipulationSystem) exists and is enabled.
Example¶
- Pressing the Build button (or key) once: enters Build mode.
- Pressing the Build button (or key) again: returns to OFF mode.
- This applies to Move, Demolish, and Info modes as well, as long as their systems are present.
This behavior ensures quick toggling and prevents accidental mode lock-in during editing or gameplay.