Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-06-19, 02:11 PM   #1
D4KiR
A Defias Bandit
Join Date: Apr 2019
Posts: 2
Post WoW Action Button

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.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » WoW Action Button

Thread Tools
Display Modes

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