You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few parts of the map pin interface could use better hotkey support, especially adding and deleting pins. The challenges here are configuration – is it possible to hook into the stock hotkey configuration panel? – and awkward interactions with other controls like the name editor control.
The text was updated successfully, but these errors were encountered:
The set of keybindings seem to come from an opaque game object, Input, configured in UI/Options.lua:
Input.GetActionCount(): number of keybindings
Input.GetActionId(i): get binding by number
Input.GetActionId("ToggleYield"): get binding by name
Input.BindAction(action, index, gesture): set binding, index = 0 or 1
Input.GetGestureDisplayString(action, index): get binding for display
I have not yet found the definition for the set of keybindings and their categories, so that might also be built in and non-modifiable. I would rather not use a custom configuration file for extra keybindings, so this will require more research.
Instead of adding conventional hotkeys for adding & deleting pins, it might be cleaner and more intuitive to use a modifier key. For example, shift+click might drop a pin. Perhaps the shift key could have the same effect as the OnAddPinButton() function:
on shift down, and reset it to InterfaceModeTypes.SELECTION on shift up. The same event could also switch the pin list to show a delete button instead of an edit button, for quick delete. This would work well if the key handling can be confined to just the map pin scripts, but if it needs to go into WorldInput.lua it will cause conflicts with other mods.
A few parts of the map pin interface could use better hotkey support, especially adding and deleting pins. The challenges here are configuration – is it possible to hook into the stock hotkey configuration panel? – and awkward interactions with other controls like the name editor control.
The text was updated successfully, but these errors were encountered: