WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 191 → Rev 190

PhanxConfig-Header/PhanxConfig-Header.lua
1,41 → 1,9
--[[--------------------------------------------------------------------
PhanxConfig-Header
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.
Simple options panel header generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
PhanxConfig-Button/PhanxConfig-Button.lua
1,44 → 1,12
--[[--------------------------------------------------------------------
PhanxConfig-Button
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.
Simple button widget generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 20141201
local MINOR_VERSION = 172
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Button", MINOR_VERSION)
if not lib then return end
49,9 → 17,8
 
function scripts:OnClick(button)
PlaySound("gsTitleOptionOK")
local callback = self.OnClicked
if callback then
callback(self, button)
if self.Callback then
self:Callback(button)
end
end
 
PhanxConfig-OptionsPanel/PhanxConfig-OptionsPanel.lua
1,41 → 1,9
--[[--------------------------------------------------------------------
PhanxConfig-OptionsPanel
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.
Simple options panel frame generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
108,6 → 76,7
"Header",
"KeyBinding",
"Panel",
"ScrollingDropdown",
"Slider",
}
 
PhanxConfig-ColorPicker/PhanxConfig-ColorPicker.lua
1,45 → 1,13
--[[--------------------------------------------------------------------
PhanxConfig-ColorPicker
Simple color picker widget generator. Requires LibStub.
Simple color picker widget generator.
Based on OmniCC_Options by Tuller.
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.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 20141201
local MINOR_VERSION = 176
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-ColorPicker", MINOR_VERSION)
if not lib then return end
95,7 → 63,7
self.bg:SetAlpha(a)
 
 
local callback = self.OnValueChanged
local callback = self.Callback or self.OnValueChanged
if callback then
-- Ignore updates while ColorPickerFrame:IsShown() if desired.
callback(self, r, g, b, a)
PhanxConfig-Dropdown/PhanxConfig-Dropdown.lua
1,45 → 1,13
--[[--------------------------------------------------------------------
PhanxConfig-Dropdown
Simple scrolling dropdown widget generator. Requires LibStub.
Simple scrolling dropdown widget generator.
Based on tekKonfig-Dropdown by Tekkub and OmniCC_Options by Tuller.
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.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 20141201
local MINOR_VERSION = 182
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Dropdown", MINOR_VERSION)
if not lib then return end
125,7 → 93,7
 
dropdown.valueText:SetText(self:GetText() or self.value)
 
local callback = dropdown.OnValueChanged
local callback = dropdown.OnValueChanged or dropdown.Callback
if callback then
callback(dropdown, self.value, self:GetText())
end
256,7 → 224,7
button:Hide()
end
 
local callback = dropdown.OnListButtonChanged
local callback = dropdown.OnListButtonChanged or dropdown.ListButtonCallback
if callback then
callback(dropdown, button, item, selected)
end
PhanxConfig-EditBox/PhanxConfig-EditBox.lua
1,44 → 1,12
--[[--------------------------------------------------------------------
PhanxConfig-EditBox
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.
Simple text input widget generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 20141201
local MINOR_VERSION = 176
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-EditBox", MINOR_VERSION)
if not lib then return end
92,7 → 60,7
if text:len() == 0 then text = nil end -- experimental
 
local parent = self:GetParent()
local callback = parent.OnTextChanged
local callback = parent.CallbackOnTextChanged or parent.OnTextChanged
if callback and text ~= self.currText then
callback(parent, text)
self.currText = text
105,7 → 73,7
self:ClearFocus()
 
local parent = self:GetParent()
local callback = parent.OnValueChanged
local callback = parent.Callback or parent.OnValueChanged
if callback then
callback(parent, text)
end
PhanxConfig-Panel/PhanxConfig-Panel.lua
1,41 → 1,9
--[[--------------------------------------------------------------------
PhanxConfig-Panel
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.
Simple background panel widget generator.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
PhanxConfig-Slider/PhanxConfig-Slider.lua
1,45 → 1,13
--[[--------------------------------------------------------------------
PhanxConfig-Slider
Simple slider widget generator. Requires LibStub.
Simple slider widget generator.
Based on tekKonfig-Slider and AceGUI-3.0-Slider.
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.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 20141201
local MINOR_VERSION = 176
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Slider", MINOR_VERSION)
if not lib then return end
101,7 → 69,7
 
self:SetValue(value)
 
local callback = parent.OnValueChanged
local callback = parent.OnValueChanged or parent.Callback
if callback then
callback(parent, value)
end
117,9 → 85,8
parent.valueText:SetText(value)
end
 
local callback = parent.OnValueChanged
if callback and parent.lastValue then
callback(parent, value)
if parent.lastValue and parent.Callback then
parent:Callback(value)
end
 
parent.lastValue = value
PhanxConfig-KeyBinding/PhanxConfig-KeyBinding.lua
1,42 → 1,10
--[[--------------------------------------------------------------------
PhanxConfig-KeyBinding
Key binding button widget generator. Requires LibStub.
Key binding button widget generator.
Originally based on AceGUI-3.0-Keybinding.
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.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 172
PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
1,45 → 1,13
--[[--------------------------------------------------------------------
PhanxConfig-Checkbox
Simple checkbox widget generator. Requires LibStub.
Simple checkbox widget generator.
Originally based on tekKonfig-Checkbox by Tekkub.
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.
Requires LibStub.
Copyright (c) 2009-2014 Phanx. All rights reserved.
https://github.com/phanx/PhanxConfigWidgets
----------------------------------------------------------------------]]
 
local MINOR_VERSION = 20141201
local MINOR_VERSION = 176
 
local lib, oldminor = LibStub:NewLibrary("PhanxConfig-Checkbox", MINOR_VERSION)
if not lib then return end
53,7 → 21,7
PlaySound(checked and "igMainMenuOptionCheckBoxOn" or "igMainMenuOptionCheckBoxOff")
self:GetScript("OnLeave")(self)
 
local callback = self.OnValueChanged
local callback = self.Callback or self.OnValueChanged
if callback then
callback(self, checked)
end