/trunk
--[[-------------------------------------------------------------------- |
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 |
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 |
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 |
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 |
"Header", |
"KeyBinding", |
"Panel", |
"ScrollingDropdown", |
"Slider", |
} |
--[[-------------------------------------------------------------------- |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
self:SetValue(value) |
local callback = parent.OnValueChanged or parent.Callback |
local callback = parent.OnValueChanged |
if callback then |
callback(parent, value) |
end |
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 |
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 |
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 |
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 |