WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 58 to Rev 59
    Reverse comparison

Rev 58 → Rev 59

PhanxConfig-Slider/PhanxConfig-Slider.lua
71,7 → 71,7
}
 
function lib.CreateSlider(parent, name, lowvalue, highvalue, valuestep, percent, desc)
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-Slider: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Slider: Parent is not a valid frame!" )
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
if type(lowvalue) ~= "number" then lowvalue = 0 end
PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
34,7 → 34,7
end
 
function lib.CreateCheckbox(parent, text, desc)
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-Checkbox: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Checkbox: Parent is not a valid frame!" )
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
 
PhanxConfig-Header/PhanxConfig-Header.lua
8,13 → 8,13
its internals may change at any time without notice.
----------------------------------------------------------------------]]
 
local MINOR_VERSION = tonumber( string.match( "$Revision: 28 $", "%d+" ) )
local MINOR_VERSION = tonumber( string.match( "$Revision: 29 $", "%d+" ) )
 
local lib, oldminor = LibStub:NewLibrary( "PhanxConfig-Header", MINOR_VERSION )
if not lib then return end
 
function lib.CreateHeader( parent, titleText, notesText, noPrefix )
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-Header: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "Parent is not a valid frame!" )
if type(titleText) ~= "string" then name = nil end
if type(notesText) ~= "string" then desc = nil end
 
PhanxConfig-ScrollingDropdown/PhanxConfig-ScrollingDropdown.lua
190,7 → 190,7
end
 
function lib.CreateScrollingDropdown(parent, name, items, desc)
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-ScrollingDropdown: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-ScrollingDropdown: Parent is not a valid frame!" )
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
 
PhanxConfig-Button/PhanxConfig-Button.lua
26,7 → 26,7
end
 
function lib.CreateButton( parent, name, desc )
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-Button: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Button: Parent is not a valid frame!" )
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
 
PhanxConfig-ColorPicker/PhanxConfig-ColorPicker.lua
66,7 → 66,7
end
 
function lib.CreateColorPicker(parent, name, desc)
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-ColorPicker: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-ColorPicker: Parent is not a valid frame!" )
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
 
PhanxConfig-Dropdown/PhanxConfig-Dropdown.lua
49,7 → 49,7
 
local i = 0
function lib.CreateDropdown(parent, name, init, desc)
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-Button: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Button: Parent is not a valid frame!" )
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
 
PhanxConfig-Panel/PhanxConfig-Panel.lua
19,7 → 19,7
}
 
function lib.CreatePanel(parent, width, height)
assert( type(parent) == "table" and parent.GetFrameType, "PhanxConfig-Panel: Parent is not a valid frame!" )
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Panel: Parent is not a valid frame!" )
 
local frame = CreateFrame("Frame", nil, parent)
frame:SetFrameStrata(parent:GetFrameStrata())