mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +00:00
ui-widgets: skip skin functions on invalid frames
This commit is contained in:
@@ -730,6 +730,8 @@ end
|
|||||||
-- 'offsetX' [integer] offsets the button horizontally
|
-- 'offsetX' [integer] offsets the button horizontally
|
||||||
-- 'offsetY' [integer] offsets the button vertically
|
-- 'offsetY' [integer] offsets the button vertically
|
||||||
function pfUI.api.SkinCloseButton(button, parentFrame, offsetX, offsetY)
|
function pfUI.api.SkinCloseButton(button, parentFrame, offsetX, offsetY)
|
||||||
|
if not button then return end
|
||||||
|
|
||||||
SkinButton(button, 1, .25, .25)
|
SkinButton(button, 1, .25, .25)
|
||||||
|
|
||||||
button:SetWidth(15)
|
button:SetWidth(15)
|
||||||
@@ -748,6 +750,8 @@ function pfUI.api.SkinCloseButton(button, parentFrame, offsetX, offsetY)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.api.SkinArrowButton(button, dir, size)
|
function pfUI.api.SkinArrowButton(button, dir, size)
|
||||||
|
if not button then return end
|
||||||
|
|
||||||
SkinButton(button)
|
SkinButton(button)
|
||||||
|
|
||||||
button:SetHitRectInsets(-3,-3,-3,-3)
|
button:SetHitRectInsets(-3,-3,-3,-3)
|
||||||
|
|||||||
Reference in New Issue
Block a user