Originally Posted by Ayantir
you can prehook one of the core function which will trigger when user activate a skill. but i don't know really which one to use.
|
I don't think so, ActionButtonUp -> button:HandleRelease -> OnSlotUp (which is private)
Before the call to OnSlotUp, there's self.button:SetState(BSTATE_NORMAL, false), so you could hook SetState. But gamepads don't use separate Down/Up calls, they use DownAndUp, and these don't call SetState at all. And now when I saw that, I'm thinking of replacing Down with DownAndUp, and Up with empty function, if that works it should fire abilities earlier
Originally Posted by Ayantir
Looked on code, maybe ZO_Skills_AbilitySlot_OnClick..
|
I think OnClick is for actual mouse clicks.
Maybe
* EVENT_ACTION_SLOT_STATE_UPDATED (*luaindex* _slotNum_)
and
* HasActivationHighlight(*luaindex* _slotIndex_)
** _Returns:_ *bool* _status_
?