WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 190 to Rev 191
    Reverse comparison

Rev 190 → Rev 191

PhanxConfig-Header/PhanxConfig-Header.lua
1,9 → 1,41
--[[--------------------------------------------------------------------
PhanxConfig-Header
Simple options panel header generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
Simple options panel header generator. Requires LibStub.
https://github.com/Phanx/PhanxConfig-Header
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
PhanxConfig-Button/PhanxConfig-Button.lua
1,12 → 1,44
--[[--------------------------------------------------------------------
PhanxConfig-Button
Simple button widget generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
Simple button widget generator. Requires LibStub.
https://github.com/Phanx/PhanxConfig-Button
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
local MINOR_VERSION = 20141201
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Button", MINOR_VERSION)
if not lib then return end
17,8 → 49,9
 
function scripts:OnClick(button)
PlaySound("gsTitleOptionOK")
if self.Callback then
self:Callback(button)
local callback = self.OnClicked
if callback then
callback(self, button)
end
end
 
PhanxConfig-OptionsPanel/PhanxConfig-OptionsPanel.lua
1,9 → 1,41
--[[--------------------------------------------------------------------
PhanxConfig-OptionsPanel
Simple options panel frame generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
Simple options panel frame generator. Requires LibStub.
https://github.com/Phanx/PhanxConfig-OptionsPanel
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
76,7 → 108,6
"Header",
"KeyBinding",
"Panel",
"ScrollingDropdown",
"Slider",
}
 
PhanxConfig-ColorPicker/PhanxConfig-ColorPicker.lua
1,13 → 1,45
--[[--------------------------------------------------------------------
PhanxConfig-ColorPicker
Simple color picker widget generator.
Simple color picker widget generator. Requires LibStub.
Based on OmniCC_Options by Tuller.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
https://github.com/Phanx/PhanxConfig-ColorPicker
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 176
local MINOR_VERSION = 20141201
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-ColorPicker", MINOR_VERSION)
if not lib then return end
63,7 → 95,7
self.bg:SetAlpha(a)
 
 
local callback = self.Callback or self.OnValueChanged
local callback = self.OnValueChanged
if callback then
-- Ignore updates while ColorPickerFrame:IsShown() if desired.
callback(self, r, g, b, a)
PhanxConfig-Dropdown/PhanxConfig-Dropdown.lua
1,13 → 1,45
--[[--------------------------------------------------------------------
PhanxConfig-Dropdown
Simple scrolling dropdown widget generator.
Simple scrolling dropdown widget generator. Requires LibStub.
Based on tekKonfig-Dropdown by Tekkub and OmniCC_Options by Tuller.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
https://github.com/Phanx/PhanxConfig-Dropdown
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 182
local MINOR_VERSION = 20141201
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Dropdown", MINOR_VERSION)
if not lib then return end
93,7 → 125,7
 
dropdown.valueText:SetText(self:GetText() or self.value)
 
local callback = dropdown.OnValueChanged or dropdown.Callback
local callback = dropdown.OnValueChanged
if callback then
callback(dropdown, self.value, self:GetText())
end
224,7 → 256,7
button:Hide()
end
 
local callback = dropdown.OnListButtonChanged or dropdown.ListButtonCallback
local callback = dropdown.OnListButtonChanged
if callback then
callback(dropdown, button, item, selected)
end
PhanxConfig-EditBox/PhanxConfig-EditBox.lua
1,12 → 1,44
--[[--------------------------------------------------------------------
PhanxConfig-EditBox
Simple text input widget generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
Simple text input box widget generator. Requires LibStub.
https://github.com/Phanx/PhanxConfig-EditBox
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 176
local MINOR_VERSION = 20141201
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-EditBox", MINOR_VERSION)
if not lib then return end
60,7 → 92,7
if text:len() == 0 then text = nil end -- experimental
 
local parent = self:GetParent()
local callback = parent.CallbackOnTextChanged or parent.OnTextChanged
local callback = parent.OnTextChanged
if callback and text ~= self.currText then
callback(parent, text)
self.currText = text
73,7 → 105,7
self:ClearFocus()
 
local parent = self:GetParent()
local callback = parent.Callback or parent.OnValueChanged
local callback = parent.OnValueChanged
if callback then
callback(parent, text)
end
PhanxConfig-Panel/PhanxConfig-Panel.lua
1,9 → 1,41
--[[--------------------------------------------------------------------
PhanxConfig-Panel
Simple background panel widget generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
Simple background panel widget generator. Requires LibStub.
https://github.com/Phanx/PhanxConfig-Panel
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
PhanxConfig-Slider/PhanxConfig-Slider.lua
1,13 → 1,45
--[[--------------------------------------------------------------------
PhanxConfig-Slider
Simple slider widget generator.
Simple slider widget generator. Requires LibStub.
Based on tekKonfig-Slider and AceGUI-3.0-Slider.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
https://github.com/Phanx/PhanxConfig-Slider
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 176
local MINOR_VERSION = 20141201
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Slider", MINOR_VERSION)
if not lib then return end
69,7 → 101,7
 
self:SetValue(value)
 
local callback = parent.OnValueChanged or parent.Callback
local callback = parent.OnValueChanged
if callback then
callback(parent, value)
end
85,8 → 117,9
parent.valueText:SetText(value)
end
 
if parent.lastValue and parent.Callback then
parent:Callback(value)
local callback = parent.OnValueChanged
if callback and parent.lastValue then
callback(parent, value)
end
 
parent.lastValue = value
PhanxConfig-KeyBinding/PhanxConfig-KeyBinding.lua
1,10 → 1,42
--[[--------------------------------------------------------------------
PhanxConfig-KeyBinding
Key binding button widget generator.
Key binding button widget generator. Requires LibStub.
Originally based on AceGUI-3.0-Keybinding.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
https://github.com/Phanx/PhanxConfig-KeyBinding
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
1,13 → 1,45
--[[--------------------------------------------------------------------
PhanxConfig-Checkbox
Simple checkbox widget generator.
Simple checkbox widget generator. Requires LibStub.
Originally based on tekKonfig-Checkbox by Tekkub.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
https://github.com/Phanx/PhanxConfig-Checkbox
 
Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved.
 
Permission is granted for anyone to use, read, or otherwise interpret
this software for any purpose, without any restrictions.
 
Permission is granted for anyone to embed or include this software in
another work not derived from this software that makes use of the
interface provided by this software for the purpose of creating a
package of the work and its required libraries, and to distribute such
packages as long as the software is not modified in any way, including
by modifying or removing any files.
 
Permission is granted for anyone to modify this software or sample from
it, and to distribute such modified versions or derivative works as long
as neither the names of this software nor its authors are used in the
name or title of the work or in any other way that may cause it to be
confused with or interfere with the simultaneous use of this software.
 
This software may not be distributed standalone or in any other way, in
whole or in part, modified or unmodified, without specific prior written
permission from the authors of this software.
 
The names of this software and/or its authors may not be used to
promote or endorse works derived from this software without specific
prior written permission from the authors of this software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 176
local MINOR_VERSION = 20141201
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Checkbox", MINOR_VERSION)
if not lib then return end
21,7 → 53,7
PlaySound(checked and "igMainMenuOptionCheckBoxOn" or "igMainMenuOptionCheckBoxOff")
self:GetScript("OnLeave")(self)
 
local callback = self.Callback or self.OnValueChanged
local callback = self.OnValueChanged
if callback then
callback(self, checked)
end