WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 172 → Rev 174

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