But this is hidden in my hud. (Also it will mirror the first action button)
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.
btn:SetWidth(width) // Set button's width
btn:SetHeight(height) // Set button's height
btn:SetSize(width, height) // Set button's size, alternative way
You also need to set button’s possition relative to it’s parent frame.
btn:SetPoint("ANCHOR", x, y) // Puts the button's anchor point at the (x, y) position
There are 9 values for anchor points:
CENTER
BOTTOM
TOP
LEFT
RIGHT
BOTTOMLEFT
BOTTOMRIGHT
TOPLEFT
TOPRIGHT
If it still doesn’t show then you can also call the Show method:
btn:Show()
Also if you want to make more of the buttons you should make a parent frame for them. It makes it easier to move it around. And you can define their positions relative to that frame instead of the screen.
As for tutorial, you could look for Blizzard UI code and check how blizzard does their action buttons.