WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PhanxConfig-Checkbox
    from Rev 36 to Rev 37
    Reverse comparison

Rev 36 → Rev 37

PhanxConfig-Checkbox.lua
38,8 → 38,6
check:SetWidth(size or 26)
check:SetHeight(size or 26)
 
check:SetHitRectInsets(0, -100, 0, 0)
 
check:SetNormalTexture("Interface\\Buttons\\UI-CheckBox-Up")
check:SetPushedTexture("Interface\\Buttons\\UI-CheckBox-Down")
check:SetHighlightTexture("Interface\\Buttons\\UI-CheckBox-Highlight")
56,10 → 54,8
 
check.label = label
 
local width = label:GetStringWidth()
if width > 100 then
check:SetHitRectInsets(0, -width, 0, 0)
end
local width = math.max( label:GetStringWidth(), 100 )
check:SetHitRectInsets(0, -width, 0, 0)
 
return check
end
\ No newline at end of file