/
--[[-------------------------------------------------------------------- |
PhanxConfig-ScrollingDropdown |
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. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
Requires PhanxConfig-Dropdown. |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(strmatch("$Revision$", "%d+")) |
self:OnEnter() |
elseif self.tooltipText then |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT") |
GameTooltip:SetText(self.tooltipText, nil, nil, nil, nil, true) |
GameTooltip:AddLine(self.labelText:GetText(), nil, nil, nil, true) |
GameTooltip:AddLine(self.tooltipText, 1, 1, 1, true) |
GameTooltip:SetMinimumWidth(GameTooltipTextLeft1:GetStringWidth() + 21) |
GameTooltip:Show() |
end |
end |
PhanxConfig-Button |
Simple button widget generator. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(string.match("$Revision$", "%d+")) |
PhanxConfig-OptionsPanel |
Simple options panel frame generator. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(string.match("$Revision$", "%d+")) |
Simple color picker widget generator. |
Based on OmniCC_Options by Tuller. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) |
Simple color picker widget generator. |
Based on tekKonfig-Dropdown by Tekkub. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(strmatch("$Revision$", "%d+")) |
container:OnEnter() |
elseif container.tooltipText then |
GameTooltip:SetOwner(container, "ANCHOR_RIGHT") |
GameTooltip:SetText(container.tooltipText, nil, nil, nil, nil, true) |
GameTooltip:AddLine(container.tooltipText, 1, 1, 1, true) |
GameTooltip:Show() |
end |
end |
## Interface: 50400 |
## Version: 5.4.2.wowi:revision |
## Title: Lib: PhanxConfigWidgets |
## Notes: Simple GUI configuration widgets. |
## Author: Phanx |
## X-Email: addons@phanx.net |
## X-License: Public Domain |
## OptionalDependencies: LibStub |
PhanxConfig-EditBox |
Simple text input widget generator. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(string.match("$Revision$", "%d+")) |
function scripts:OnEnter() |
local container = self:GetParent() |
if container.tooltipText then |
local text = container.tooltipText |
if text then |
GameTooltip:SetOwner(container, "ANCHOR_RIGHT") |
GameTooltip:SetText(container.tooltipText, nil, nil, nil, nil, true) |
GameTooltip:AddLine(container.labelText:GetText(), nil, nil, nil, true) |
GameTooltip:AddLine(container.tooltipText, 1, 1, 1, true) |
GameTooltip:SetMinimumWidth(GameTooltipTextLeft1:GetStringWidth() + 21) |
GameTooltip:Show() |
end |
end |
local function OnLeave() |
--[[-------------------------------------------------------------------- |
PhanxConfig-Panel |
Simple background panel widget generator. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
Simple background panel widget generator. Requires LibStub. |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(strmatch("$Revision$", "%d+")) |
Based on tekKonfig-Slider and AceGUI-3.0-Slider. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(strmatch("$Revision$", "%d+")) |
local text = container.tooltipText |
if text then |
GameTooltip:SetOwner(container, "ANCHOR_RIGHT") |
GameTooltip:SetText(container.tooltipText, nil, nil, nil, nil, true) |
GameTooltip:AddLine(container.labelText:GetText(), nil, nil, nil, true) |
GameTooltip:AddLine(container.tooltipText, 1, 1, 1, true) |
GameTooltip:SetMinimumWidth(GameTooltipTextLeft1:GetStringWidth() + 21) |
GameTooltip:Show() |
end |
end |
Key binding button widget generator. |
Based on AceGUI-3.0-Keybinding. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local PhanxConfigButton = LibStub:GetLibrary("PhanxConfig-Button", true) |
function scripts:OnEnter() |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT") |
if self.tooltipText then |
GameTooltip:SetText(self.tooltipText, nil, nil, nil, nil, true) |
local text = self.tooltipText |
if text then |
GameTooltip:SetText(text, nil, nil, nil, nil, true) |
elseif self.waitingForKey then |
GameTooltip:SetText(HINT_TEXT_ACTIVE, nil, nil, nil, nil, true) |
else |
--[[-------------------------------------------------------------------- |
PhanxConfig-Checkbox |
Simple checkbox widget generator. |
Originally based on tekKonfig-Checkbox by Tekkub. |
Based on tekKonfig-Checkbox by Tekkub. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(strmatch("$Revision$", "%d+")) |
function scripts:OnEnter() |
if self.tooltipText then |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT") |
GameTooltip:SetText(self.tooltipText, nil, nil, nil, nil, true) |
GameTooltip:AddLine(self.tooltipText, 1, 1, 1, true) |
GameTooltip:Show() |
end |
end |
function scripts:OnLeave() |
PhanxConfig-Header |
Simple options panel header generator. |
Requires LibStub. |
Written by Phanx <addons@phanx.net> |
https://github.com/phanx/PhanxConfigWidgets |
This is free and unencumbered software released into the public domain. |
However, if you make any modifications, you are strongly encouraged |
to give your version a different name, so that you do not break |
addons using the original version, or vice versa. |
And finally, I wrote this library for my own use in my own addons. |
No support of any kind will be provided for use by anyone else, |
and its internals may change at any time without any warning. |
This library is not intended for use by other authors. Absolutely no |
support of any kind will be provided for other authors using it, and |
its internals may change at any time without notice. |
----------------------------------------------------------------------]] |
local MINOR_VERSION = tonumber(strmatch("$Revision$", "%d+")) |