WoWInterface SVN FluidFrames

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 4 to Rev 5
    Reverse comparison

Rev 4 → Rev 5

trunk/FluidFrames/FluidFrames.lua
12,6 → 12,8
$Date: 2008-04-05 19:13:33 -0500 (Sat, 05 Apr 2008) $
 
 
TODO: HideUIPanel or ShowUIPanel hook that repositions 'center' UIPanelWindows
TODO: make 'full' UIPanelWindows highlightable when UIParent is hidden. Like WorldMapFrame
]]--
 
FluidFrames = {}
165,14 → 167,16
function FluidFrames.InitTempDraggableFrames()
-- Make UIPanels temporarily draggable (position not saved)
for frameName,info in pairs(UIPanelWindows) do
local frame = getglobal(frameName)
if (frame and frame.GetTitleRegion) then
local titleRegion = frame:GetTitleRegion()
if (not titleRegion) then
titleRegion = frame:CreateTitleRegion()
if (info.area ~= "full") then
local frame = getglobal(frameName)
if (frame and frame.GetTitleRegion) then
local titleRegion = frame:GetTitleRegion()
if (not titleRegion) then
titleRegion = frame:CreateTitleRegion()
end
--titleRegion:SetAllPoints(frame)
frame:EnableMouse(1)
end
--titleRegion:SetAllPoints(frame)
frame:EnableMouse(1)
end
end
 
224,16 → 228,18
 
function FluidFrames.ToggleTempDraggableFrames(value)
for frameName,info in pairs(UIPanelWindows) do
local frame = getglobal(frameName)
if (frame and frame.GetTitleRegion) then
local titleRegion = frame:GetTitleRegion()
if (titleRegion) then
if (value) then
titleRegion:SetAllPoints(frame)
else
titleRegion:ClearAllPoints()
titleRegion:SetHeight(0)
titleRegion:SetWidth(0)
if (info.area ~= "full") then
local frame = getglobal(frameName)
if (frame and frame.GetTitleRegion) then
local titleRegion = frame:GetTitleRegion()
if (titleRegion) then
if (value) then
titleRegion:SetAllPoints(frame)
else
titleRegion:ClearAllPoints()
titleRegion:SetHeight(0)
titleRegion:SetWidth(0)
end
end
end
end
282,9 → 288,7
 
elseif (event == "VARIABLES_LOADED") then
FluidFrames.InitTempDraggableFrames()
if (Portfolio) then
FluidFrames.RegisterPortfolio()
end
--FluidFrames.RegisterPortfolio()
self:RegisterEvent("PLAYER_ENTERING_WORLD")
 
elseif (event == "PLAYER_ENTERING_WORLD") then
1416,6 → 1420,10
end
 
function FluidFrames.RegisterPortfolio()
 
local Portfolio = LibStub and LibStub("Portfolio")
if not Portfolio then return end
 
local optionTable = {
id="FluidFrames";
subText=FLUIDFRAMES_DESC_FULL;
1423,7 → 1431,6
-- Pulls the first header and helptext from the addon toc data
{
id = "TempDraggable";
tvar = "TempDraggable",
text = FLUIDFRAMES_TEMP_DRAGGABLE;
type = CONTROLTYPE_CHECKBOX;
callback = function(value)
1464,13 → 1471,14
};
};
savedVarTable = "FluidFrames_SavedVars";
loadVars = true;
}
 
Portfolio.RegisterOptionSet(optionTable)
end
 
FluidFrames.RegisterPortfolio()
 
 
----------------------------
-- OnLoad Inits
----------------------------