Hi, i want to make more Action Buttons for my HUD.
so i tried this:
Code:
local btn = CreateFrame("Button", "myButton", UIParent, "SecureActionButtonTemplate");
btn:SetAttribute("type", "action");
btn:SetAttribute("action", 1);
But this is hidden in my hud.
Code:
local btn = CreateFrame("Button", "myButton", UIParent, "ActionButtonTemplate, SecureActionButtonTemplate");
btn:SetAttribute("type", "action");
btn:SetAttribute("action", 1); -- mirrors ActionButton1
This shows me the button, but it did not work like the wow ones. Also it mirror ActionButton1 because of the id 1.
So is there a tutorial or a template that is exactly like the WoW Action Buttons?
i dont want to use the hidden action buttons, i want to make
new ones, more of them. I know there are some addons that do that, but i have different ideas for them.
i just want to learn how to make them, like the existing ones.