mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
addonbuttons: add more positions
* add top and right position * use native arrow button skin * remove old button backdrop
This commit is contained in:
+2
-1
@@ -379,11 +379,12 @@ function pfUI.api.SkinArrowButton(button, dir)
|
||||
|
||||
if not button.icon then
|
||||
button.icon = button:CreateTexture(nil, "ARTWORK")
|
||||
button.icon:SetTexture("Interface\\AddOns\\pfUI\\img\\" .. dir)
|
||||
button.icon:SetAlpha(.8)
|
||||
SetAllPointsOffset(button.icon, button, 3)
|
||||
end
|
||||
|
||||
button.icon:SetTexture("Interface\\AddOns\\pfUI\\img\\" .. dir)
|
||||
|
||||
if not button.pfScripted then
|
||||
local enable = button.Enable
|
||||
local disable = button.Disable
|
||||
|
||||
Reference in New Issue
Block a user