2ddc77e - Remove AceTimer
[wowui.git] / libs / AceGUI-3.0 / widgets / AceGUIWidget-CheckBox.lua
index 8847ebc..b8426e3 100644 (file)
@@ -1,7 +1,7 @@
 --[[-----------------------------------------------------------------------------
 Checkbox Widget
 -------------------------------------------------------------------------------]]
 --[[-----------------------------------------------------------------------------
 Checkbox Widget
 -------------------------------------------------------------------------------]]
-local Type, Version = "CheckBox", 22
+local Type, Version = "CheckBox", 23
 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 
 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 
@@ -60,9 +60,9 @@ local function CheckBox_OnMouseUp(frame)
                self:ToggleChecked()
 
                if self.checked then
                self:ToggleChecked()
 
                if self.checked then
-                       PlaySound("igMainMenuOptionCheckBoxOn")
+                       PlaySound(PlaySoundKitID and "igMainMenuOptionCheckBoxOn" or 856) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON
                else -- for both nil and false (tristate)
                else -- for both nil and false (tristate)
-                       PlaySound("igMainMenuOptionCheckBoxOff")
+                       PlaySound(PlaySoundKitID and "igMainMenuOptionCheckBoxOff" or 857) -- SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF
                end
 
                self:Fire("OnValueChanged", self.checked)
                end
 
                self:Fire("OnValueChanged", self.checked)