WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 175 → Rev 176

PhanxConfig-Checkbox.lua
21,8 → 21,10
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
self:Callback(checked)
 
local callback = self.Callback or self.OnValueChanged
if callback then
callback(self, checked)
end
end