Thread Tools Display Modes
Prev Previous Post   Next Post Next
08/14/14, 12:41 PM   #1
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
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.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Disable key from standard ESO keystrip?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off