Thread Tools Display Modes
10-20-10, 03:14 AM   #1
yo_man
A Murloc Raider
Join Date: Sep 2008
Posts: 5
updating oUF layout

Hi all!! I need a help with updating this amazing layout:
http://www.wowinterface.com/download...reTourney.html
since addon author doesn't support it anymore. =(((

So... what i need to do first?
  Reply With Quote
10-20-10, 03:59 AM   #2
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
That's a layout written with oUF 1.4 so it' not that hard to port. If you are LUA savvy you can do it with no problem.

Start here to see the changes to the oUF API v5: http://www.wowinterface.com/forums/s...ad.php?t=35152
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-20-10, 01:25 PM   #3
yo_man
A Murloc Raider
Join Date: Sep 2008
Posts: 5
Read a changes, but i have never made oUF layouts before =(
I tried to compare with oUF_Classic, but i don't understand how to spawn player(target, party..) frames - doesn't work with oUF 1.5 with old 1.4 layout...
  Reply With Quote
10-20-10, 03:43 PM   #4
Dessembrae
A Fallenroot Satyr
 
Dessembrae's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 29
Few days ago I didn't know **** either, but after a few days of mucking around I got frames to spawn, and am now fighting with text displays

Just take the time, have a seat and read
You just need the small changes from 1.4 to 1.5.

I had to redo the whole thing from 1.3 to 1.5 (so lucky you )

And if you are stuck on small things, the community is great here.
They are a great help.
__________________
Dessembrae knows the sorrows in our souls.
He walks at the side of each mortal,
a vessel of regret on the fires of vengeance.
Dessembrae knows the sorrows,
and would now share them with us all.
  Reply With Quote
10-23-10, 01:26 AM   #5
yo_man
A Murloc Raider
Join Date: Sep 2008
Posts: 5
Trying my best, but i can't make working frames spawn
If someone could spend a bit of your time and look at layout, and give me some tips, i will be very appreciate ) Thank you.
oUF_RuptureTourney.lua
  Reply With Quote
10-23-10, 12:53 PM   #6
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
can someone help me please?
i tried to update oUF_bloo. But the frames doesnt spawn.

http://www.*****************/download-...rames.lua.html
  Reply With Quote
10-24-10, 03:03 AM   #7
yo_man
A Murloc Raider
Join Date: Sep 2008
Posts: 5
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!!!!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » updating oUF layout


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off