mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +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:SetPushedTexture("")
|
||||||
b:SetDisabledTexture("")
|
b:SetDisabledTexture("")
|
||||||
|
|
||||||
if b.SetCheckedTexture then
|
if b.SetCheckedTexture and b:GetCheckedTexture() then
|
||||||
b:GetCheckedTexture():SetTexture(cr, cg, cb, .25)
|
b:GetCheckedTexture():SetTexture(cr, cg, cb, .25)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user