Originally Posted by elcius
make it a CheckButton and inherit from ActionBarButtonTemplate instead, it contains all the action bar event handlers.
but action slots only go to like 120, if you need more you'll have to simulate it using non-action types.
|
Thanks for the reply!
Code:
local btn = CreateFrame("CheckButton", "Example", UIParent, "ActionBarButtonTemplate")
Works great except that it is mirroring the button with ID 1 from 120 like you said.
yeah, but i want to make over the 120 (but over it, it is pet, stances and such)
so if i want to make more the 120 i need to recode the actionbutton?
i thought i can make an actionbutton and then save:
the hotkey
spell that it is in it
by myself
but when its not 1-120 ID it dont get the spell, when i put it in
and i cant find a tutorial how it is setup, so i can change it so it work for me
any response would help me