Closed ohlidalp closed 12 months ago
Not sure if intentional, but the hotkey display doesn't appear if you hold backspace during live repair. Works good otherwise 👍
EDIT: Would be nice to also show if "soft reset" (COMMON_TOGGLE_RESET_MODE
) is enabled, since its designed to function with this feature.
Updated new vocabulary:
EV_COMMON_REPAIR_TRUCK
(default Backspace), release to stop. The notify box title is orange because it's a press-and-hold state.EV_COMMON_LIVE_REPAIR_MODE
(default Alt+Backspace) or keep the quickrepair pressed for 'sim_live_repair_interval' seconds (default 2). The notify box title is green because it's a persistent state, like the terrain editor or physics pause.Both have identical controls and show the same notify box, but with slightly different title, and progressbar for the 'sim_live_repair_interval'
Other changes:
I renamed the feature because this is shorter and fits better in UIs and variable names. Hopefully it'll also fit better in player's vocabulary. Fixes #3062
Changes:
New (juicy) helper functions:
void ImDrawEventHighlighted(events input_event)
- draws the configured key combo for given input event, with a darker frame around it and color highlight when the keys are pressed.void ImDrawModifierKeyHighlighted(OIS::KeyCode key)
- draws the localized modifier key name (shift/alt/ctrl), with color highlight when the keys are pressed.InputEngine::getModifierKeyName(OIS::KeyCode key)
- gives you localized name for the modifier key (shift/alt/ctrl)