Skip to content

Commit

Permalink
Update check button API
Browse files Browse the repository at this point in the history
  • Loading branch information
siweia committed Aug 2, 2020
1 parent b18e692 commit 6078983
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Interface/AddOns/NDui/Core/Functions.lua
Expand Up @@ -1057,16 +1057,16 @@ do
function B:ReskinCheck(forceSaturation)
self:SetNormalTexture("")
self:SetPushedTexture("")
self:SetHighlightTexture(DB.bdTex)
local hl = self:GetHighlightTexture()
hl:SetPoint("TOPLEFT", 5, -5)
hl:SetPoint("BOTTOMRIGHT", -5, 5)
hl:SetVertexColor(cr, cg, cb, .25)

local bg = B.CreateBDFrame(self, 0, true)
bg:SetPoint("TOPLEFT", 4, -4)
bg:SetPoint("BOTTOMRIGHT", -4, 4)

self:SetHighlightTexture(DB.bdTex)
local hl = self:GetHighlightTexture()
hl:SetInside(bg)
hl:SetVertexColor(cr, cg, cb, .25)

local ch = self:GetCheckedTexture()
ch:SetTexture("Interface\\Buttons\\UI-CheckBox-Check")
ch:SetTexCoord(0, 1, 0, 1)
Expand Down

0 comments on commit 6078983

Please sign in to comment.