DarkRadiant: master 4972b07f
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
orbweaver | orbweaver | master | 28.12.2020 20:34 | master edf400a8 |
Changeset | Avoid activating camera sync toggle if connection failed Introduce a new method IEventManager::addAdvancedToggle() which adds a toggle callback that returns a bool to indicate whether the toggle succeeded or not. If it returns false, the state is not changed and the menu option does not appear checked. This new advanced toggle is used by the 'Game position follows camera' menu item, which no longer appears checked after failing to connect to the game process. |
|||
mod - include/ieventmanager.h | Diff File | |||
mod - plugins/dm.gameconnection/GameConnection.cpp | Diff File | |||
mod - plugins/dm.gameconnection/GameConnection.h | Diff File | |||
mod - radiant/eventmanager/EventManager.cpp | Diff File | |||
mod - radiant/eventmanager/EventManager.h | Diff File | |||
mod - radiant/eventmanager/RegistryToggle.h | Diff File | |||
mod - radiant/eventmanager/Toggle.cpp | Diff File | |||
mod - radiant/eventmanager/Toggle.h | Diff File | |||
mod - radiant/eventmanager/WidgetToggle.h | Diff File |