From db97c868c16f5e4fb7351cdaddb8bf58a9722b4a Mon Sep 17 00:00:00 2001 From: Artur Morozov Date: Mon, 4 Mar 2019 17:08:36 +0300 Subject: [PATCH] api: add HandleIcon --- api/ui-widgets.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index 357f6a3b..76592e84 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -249,6 +249,13 @@ function pfUI.api.SetHighlight(frame, cr, cg, cb) 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 ] -- Applies pfUI skin to buttons: -- 'button' [frame/string] the button that should be skinned.