mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
api: update SkinArrowButton
add size argument
This commit is contained in:
+6
-1
@@ -308,7 +308,7 @@ function pfUI.api.SkinCloseButton(button, parentFrame, offsetX, offsetY)
|
||||
button.texture:SetVertexColor(1,.25,.25,1)
|
||||
end
|
||||
|
||||
function pfUI.api.SkinArrowButton(button, dir)
|
||||
function pfUI.api.SkinArrowButton(button, dir, size)
|
||||
SkinButton(button)
|
||||
|
||||
button:SetHitRectInsets(-3,-3,-3,-3)
|
||||
@@ -318,6 +318,11 @@ function pfUI.api.SkinArrowButton(button, dir)
|
||||
button:SetHighlightTexture(nil)
|
||||
button:SetDisabledTexture(nil)
|
||||
|
||||
if size then
|
||||
button:SetWidth(size)
|
||||
button:SetHeight(size)
|
||||
end
|
||||
|
||||
if not button.icon then
|
||||
button.icon = button:CreateTexture(nil, "ARTWORK")
|
||||
button.icon:SetAlpha(.8)
|
||||
|
||||
Reference in New Issue
Block a user