mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 10:40:48 +00:00
api: add HandleIcon
This commit is contained in:
@@ -249,6 +249,13 @@ function pfUI.api.SetHighlight(frame, cr, cg, cb)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function pfUI.api.HandleIcon(frame, icon)
|
||||||
|
if not frame or not icon then return end
|
||||||
|
|
||||||
|
SetAllPointsOffset(icon, frame, 3)
|
||||||
|
icon:SetTexCoord(.08, .92, .08, .92)
|
||||||
|
end
|
||||||
|
|
||||||
-- [ Skin Button ]
|
-- [ Skin Button ]
|
||||||
-- Applies pfUI skin to buttons:
|
-- Applies pfUI skin to buttons:
|
||||||
-- 'button' [frame/string] the button that should be skinned.
|
-- 'button' [frame/string] the button that should be skinned.
|
||||||
|
|||||||
Reference in New Issue
Block a user