View Single Post
03/31/15, 04:46 PM   #9
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
EDIT: bah, I deleted it. Lets try that again:
You could move the primary/negative key checks to the top, then that way they will get tested first. That way if someone has KEY_NUMPAD1 bound as their primary it would still work and they could still use KEY_1 to change guilds.

Lua Code:
  1. local function FCOGuildBankQuickSelect_HandleKeyboardEvents(self, key, hide)
  2.     -- Convert keycode to actual key so we can compare it to our primary/negative keys
  3.     if GetKeyName(key) == DIALOG_PRIMARY then
  4.         ZO_Dialogs_ButtonKeybindPressed("DIALOG_PRIMARY")
  5.     elseif GetKeyName(key) == DIALOG_NEGATIVE then
  6.         ZO_Dialogs_ButtonKeybindPressed("DIALOG_NEGATIVE")
  7.     end
  8. ...
  9. end

Last edited by circonian : 03/31/15 at 05:40 PM.
  Reply With Quote