WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 173 to Rev 174
    Reverse comparison

Rev 173 → Rev 174

PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
18,7 → 18,7
local scripts = {}
 
function scripts:OnClick()
local checked = self:GetChecked() == 1
local checked = not not self:GetChecked() -- WOD: won't need typecasting
PlaySound(checked and "igMainMenuOptionCheckBoxOn" or "igMainMenuOptionCheckBoxOff")
self:GetScript("OnLeave")(self)
if self.Callback then