WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 12 → Rev 13

PhanxConfig-Checkbox.lua
21,8 → 21,8
local function OnClick(self)
local checked = self:GetChecked() == 1
PlaySound(checked and "igMainMenuOptionCheckBoxOn" or "igMainMenuOptionCheckBoxOff")
if self.func then
self.func(self, checked)
if self.OnClick then
self.OnClick(self, checked)
end
end