Disable key from standard ESO keystrip?
Is it possible to disable a key from the standard ESO gui's keystrip, so nothing happens if a user presses the key?
I'd like to react on something and after this disable the following keybindings:
UI_SHORTCUT_PRIMARY -- Primary action/Accept
UI_SHORTCUT_SECONDARY -- Secondary Action
UI_SHORTCUT_TERTIARY -- Tertiary Action
I've searched a while now and all I found is how you are able to change the texture, make them invisible, not mouse clickable (but they still work then, if someone presses the shortcut on his keybord/controller).
With zgoo I found methods like SetKeybind() and SetKeybindEnabled() for controls. But they only seem to set the keybind to the control. I wasn't able to disable them with it.
I also found a function you could use, if you stay out of combat:
UnbindKeyFromAction protected (luaindex layerIndex, luaindex categoryIndex, luaindex actionIndex, luaindex bindingIndex)
But I did not manage to get all needed parameters to unbind something. Maybe it's the wrong function too.
And I would have to rebind the unbound keys afterwards again.
Thanks for any help.
Last edited by Baertram : 08/14/14 at 01:02 PM.
|