api: update SkinCheckbox

This commit is contained in:
Artur Morozov
2019-03-31 14:59:21 +02:00
committed by shagu
parent 8d02b7ebfd
commit 154df24293
+6 -5
View File
@@ -408,15 +408,16 @@ function pfUI.api.SetAllPointsOffset(frame, parent, offset)
frame:SetPoint("BOTTOMRIGHT", parent, "BOTTOMRIGHT", -offset, offset) frame:SetPoint("BOTTOMRIGHT", parent, "BOTTOMRIGHT", -offset, offset)
end end
function pfUI.api.SkinCheckbox(frame) function pfUI.api.SkinCheckbox(frame, size)
frame:SetNormalTexture("") frame:SetNormalTexture("")
frame:SetPushedTexture("") frame:SetPushedTexture("")
frame:SetHighlightTexture("") frame:SetHighlightTexture("")
frame:SetWidth(18) if size then
frame:SetHeight(18) frame:SetWidth(size)
frame:SetHeight(size)
end
CreateBackdrop(frame) CreateBackdrop(frame)
frame.backdrop:SetPoint("TOPLEFT", frame, "TOPLEFT", 4, -4) SetAllPointsOffset(frame.backdrop, frame, 4)
frame.backdrop:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -4, 4)
end end
function pfUI.api.SkinDropDown(frame, cr, cg, cb) function pfUI.api.SkinDropDown(frame, cr, cg, cb)