WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 174 → Rev 173

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