So, i looked at the oUF_Classic, and try to add in old layout:
Code:
--[[ Rupture Tourney layout ]]
local rt = function(self, unit, isSingle)
.....
and at the end of layout:
Code:
if(isSingle) then
self:SetSize(180, 50)
end
and... player frame is SPAWN!!!!!
but target, and party frames are not...
I don't understand how to modify spawning function, to make it work:
Code:
--[[ Spawning the frames ]]
oUF:RegisterStyle("RuptureTourney", rt)
oUF:Factory(function(self)
oUF:SetActiveStyle("RuptureTourney")
oUF:Spawn("player", "oUF_Player"):SetPoint("CENTER", cfg.playerX, cfg.playerY)
oUF:Spawn("target", "oUF_Target"):SetPoint("CENTER", cfg.targetX, cfg.targetY)
oUF:Spawn("pet", "oUF_Pet"):SetPoint("BOTTOMLEFT", oUF_Player, 3, 46)
oUF:Spawn("targettarget", "oUF_TargetTarget"):SetPoint("TOPLEFT", oUF_Target, 3, 15)
oUF:Spawn("focus", "oUF_Focus"):SetPoint("CENTER", cfg.focusX, cfg.focusY)
oUF:Spawn("focustarget", "oUF_FocusTarget"):SetPoint("TOPLEFT", oUF_Focus, 3, 15)
oUF_Player:SetScale(settings.PlayerScale)
oUF_Pet:SetScale(settings.PlayerScale)
oUF_Target:SetScale(settings.TargetScale)
oUF_TargetTarget:SetScale(settings.TargetScale)
oUF_Focus:SetScale(settings.FocusScale)
oUF_FocusTarget:SetScale(settings.FocusScale)
--[[ Party ]]
local party = self:SpawnHeader("oUF_Party", nil, visible,
"showParty", true, "yOffset", -32)
party:SetPoint("TOPLEFT", UIParent, cfg.partyX, cfg.partyY)
party:SetScale(settings.PartyScale)
local partytarget = {}
for i = 1, 4 do
partytarget[i] = oUF:Spawn("party"..i.."target", "oUF_Party"..i.."Target")
if i == 1 then
partytarget[i]:SetPoint("TOPLEFT", party, 3, 15)
else
partytarget[i]:SetPoint("TOPLEFT", partytarget[i-1], 0, -82)
end
getglobal("oUF_Party"..i.."Target"):SetScale(settings.PartyScale)
end
local partyToggle = CreateFrame("Frame")
partyToggle:RegisterEvent("PLAYER_LOGIN")
partyToggle:RegisterEvent("RAID_ROSTER_UPDATE")
partyToggle:RegisterEvent("PARTY_LEADER_CHANGED")
partyToggle:RegisterEvent("PARTY_MEMBERS_CHANGED")
partyToggle:SetScript("OnEvent", function(self)
if (InCombatLockdown()) then
self:RegisterEvent("PLAYER_REGEN_ENABLED")
else
self:UnregisterEvent("PLAYER_REGEN_ENABLED")
if not settings.HideParty then
party:Show()
else
party:Hide()
end
end
end)
end)
Please, help!!!!