WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 161 to Rev 162
    Reverse comparison

Rev 161 → Rev 162

trunk/PhanxConfig-Dropdown/PhanxConfig-Dropdown.lua
22,9 → 22,7
container:OnEnter()
elseif container.tooltipText then
GameTooltip:SetOwner(container, "ANCHOR_RIGHT")
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
123,8 → 121,8
------------------------------------------------------------------------
 
local i = 0
function lib:New(parent, name, tooltip, menu)
assert(type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Dropdown: Parent is not a valid frame!")
function lib:New(parent, label, tooltip, menu)
assert(type(parent) == "table" and type(rawget(parent, 0)) == "userdata", "PhanxConfig-Dropdown: parent must be a frame")
 
i = i + 1
local NAME = "PhanxConfigDropdown" .. i
173,7 → 171,7
frame[name] = func
end
 
frame:SetLabel(name)
frame:SetLabel(label)
frame:SetTooltip(tooltip)
 
if menu then
trunk/PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
30,9 → 30,7
function scripts:OnEnter()
if self.tooltipText then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
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
102,6 → 100,7
check:SetMotionScriptsWhileDisabled(true)
for name, func in pairs(scripts) do
check:SetScript(name, func)
check[name] = func
end
for name, func in pairs(methods) do
check[name] = func
trunk/PhanxConfig-Header/PhanxConfig-Header.lua
14,7 → 14,7
if not lib then return end
 
function lib:New(parent, titleText, notesText, noPrefix)
assert(type(parent) == "table" and parent.CreateFontString, "Parent is not a valid frame!")
assert(type(parent) == "table" and type(rawget(parent, 0)) == "userdata", "PhanxConfig-Header: parent must be a frame")
if type(titleText) ~= "string" then titleText = nil end
if type(notesText) ~= "string" then notesText = nil end
 
trunk/PhanxConfig-ScrollingDropdown/PhanxConfig-ScrollingDropdown.lua
311,7 → 311,7
------------------------------------------------------------------------
 
function lib:New(parent, name, tooltipText, items)
assert(type(parent) == "table" and parent.CreateFontString, "PhanxConfig-ScrollingDropdown: Parent is not a valid frame!")
assert(type(parent) == "table" and type(rawget(parent, 0)) == "userdata", "PhanxConfig-ScrollingDropdown: parent must be a frame")
 
local dropdown = CreateFrame("Frame", nil, parent)
dropdown:SetSize(186, 42)