Add support for hiding unit frames in raid groups
This commit is contained in:
@@ -46,31 +46,28 @@ function CreateRaidFrames(left, top, width, height)
|
||||
frame:SetPosition(left + (j-2)*width, top - i*height)
|
||||
end
|
||||
end
|
||||
|
||||
local player = UnitFrame:new("player", width, height)
|
||||
player:SetPosition(left-3*width - 50, top)
|
||||
local target = UnitFrame:new("target", width, height)
|
||||
target:SetPosition(left+3*width + 50, top)
|
||||
end
|
||||
|
||||
function CreatePartyFrames(left, top, width, height)
|
||||
local player = UnitFrame:new("player", width, height)
|
||||
local player = UnitFrame:new("player", width, height, true)
|
||||
player:SetPosition(-2*width, top)
|
||||
for i=1,4 do
|
||||
local frame = UnitFrame:new("party" .. i, width, height)
|
||||
local frame = UnitFrame:new("party" .. i, width, height, true)
|
||||
frame:SetPosition((i-2)*width, top)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function CreateTargetFrames(left, top, width, height)
|
||||
local target = UnitFrame:new("target", width, height)
|
||||
target:SetPosition(3*width + 50, top)
|
||||
target:SetPosition(left, top)
|
||||
local focus = UnitFrame:new("focus", width, height)
|
||||
focus:SetPosition(3*width + 50, top - height)
|
||||
focus:SetPosition(left, top-height)
|
||||
end
|
||||
|
||||
function CreateFrames()
|
||||
CreatePartyFrames(0, -290, 110, 45)
|
||||
--CreateRaidFrames(-850, 400, 110, 45)
|
||||
--CreateRaidFrames(0, -290, 100, 45)
|
||||
CreateRaidFrames(0, -290, 110, 45)
|
||||
CreateTargetFrames(110*3+50, -290, 110, 45)
|
||||
HideBlizzardFrames()
|
||||
end
|
||||
omif.SetEventHandler("OMICRON_LOADING", CreateFrames)
|
||||
|
Reference in New Issue
Block a user