mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
ui-widgets: avoid ui taints of button skins
slightly changes the appearance of checked buttons from an outline of active buttons to a glow effect using class colors.
This commit is contained in:
+2
-10
@@ -625,17 +625,9 @@ function pfUI.api.SkinButton(button, cr, cg, cb, icon, disableHighlight)
|
||||
b:SetHighlightTexture("")
|
||||
b:SetPushedTexture("")
|
||||
b:SetDisabledTexture("")
|
||||
|
||||
if b.SetCheckedTexture then
|
||||
b:SetCheckedTexture(nil)
|
||||
function b.SetChecked(self, checked)
|
||||
if checked == 1 then
|
||||
self.locked = true
|
||||
self:SetBackdropBorderColor(1,1,1)
|
||||
else
|
||||
self.locked = false
|
||||
self:SetBackdropBorderColor(GetStringColor(pfUI_config.appearance.border.color))
|
||||
end
|
||||
end
|
||||
b:GetCheckedTexture():SetTexture(cr, cg, cb, .25)
|
||||
end
|
||||
|
||||
if not disableHighlight then
|
||||
|
||||
Reference in New Issue
Block a user