mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 11:10:00 +00:00
ui-widgets: only set checked textures if existing
This commit is contained in:
+1
-1
@@ -639,7 +639,7 @@ function pfUI.api.SkinButton(button, cr, cg, cb, icon, disableHighlight)
|
||||
b:SetPushedTexture("")
|
||||
b:SetDisabledTexture("")
|
||||
|
||||
if b.SetCheckedTexture then
|
||||
if b.SetCheckedTexture and b:GetCheckedTexture() then
|
||||
b:GetCheckedTexture():SetTexture(cr, cg, cb, .25)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user