Thread Tools Display Modes
11-07-10, 04:32 PM   #1
Typh00n
A Deviate Faerie Dragon
 
Typh00n's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 11
Resurrecting oUF_Hypocrisy

Since Hypocrisy probably isnt playing the game anymore and I really enjoy using that layout I figured I could
make an effort trying to resurrect it and get it into working condition again.
The problem is, my LUA knowledge is limited and ive never tried anything similar. Doing some simple text-addons, yes. Doing a complete oUF Layout? No way.

I could really use some guidence/help to get it to working condition. Im really keen to get to learn how this works.

Here is the link to the layout
http://www.wowinterface.com/download...Hypocrisy.html

Ive only tried it once since 4.0.1 hit and it didnt work at all. Im trying to find out why the frames etc isnt spawning.
Wich is my first goal, then to make it fit into 4.0.1 with soul shards/holy power and all the good stuff.

So, im asking you guys. Where shall i start?
  Reply With Quote
11-07-10, 05:19 PM   #2
Zilver
A Fallenroot Satyr
 
Zilver's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 29
http://www.wowinterface.com/forums/s...ad.php?t=33563
Might be off help and ofc:
http://www.wowinterface.com/forums/s...ad.php?t=35152

hope this helps you out

Zilver
  Reply With Quote
11-11-10, 12:19 PM   #3
Typh00n
A Deviate Faerie Dragon
 
Typh00n's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 11
Originally Posted by Zilver View Post
Seems like I have bitten off more then I could chew here.
Looking through the code of oUF_Hypocrisy and comparing it to other layout's I cant seem to find anything similar.
Wich makes this really hard, and doing a layout from the beginning isnt that tempting either..
  Reply With Quote
11-11-10, 06:28 PM   #4
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
The "old" way should still work. You mainly have to use

Code:
self:SetSize(width, height)
instead of

Code:
self:SetAttribute('initial-height', height)
self:SetAttribute('initial-width', width)
and update the spawn function. That's where I would start with.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
11-24-10, 04:28 PM   #5
Typh00n
A Deviate Faerie Dragon
 
Typh00n's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 11
Originally Posted by Dawn View Post
The "old" way should still work. You mainly have to use

Code:
self:SetSize(width, height)
instead of

Code:
self:SetAttribute('initial-height', height)
self:SetAttribute('initial-width', width)
and update the spawn function. That's where I would start with.
Been really busy with some schools projects involving Arduino so I havent had the time to crunch some free-time code.

As far as i can tell. The functions can be written in quite a few ways.

As of now the frames appearance is like so:

Code:
        
self:SetWidth(180)
self.Title:SetWidth(137)
self.Health:SetWidth(137)
self.Power:SetWidth(137)
Would that work?

And the player/target spawn
Code:
local player = oUF:Spawn("player", "oUF_Player")
player:SetPoint("CENTER", -320, -126)
local target = oUF:Spawn("target", "oUF_Target")
target:SetPoint("TOPLEFT",player,"TOPRIGHT", 5, 0)
Wich is clearly not working. Im reading the wiki(it doesnt involve the basics..) and trying to apply other programming logic to this.
But I cant get away from being new to LUA, and could use some tips to get started.

I would love to get this going wich might lead to an oUF layout that Im willing to maintain
  Reply With Quote
11-24-10, 06:58 PM   #6
Dessembrae
A Fallenroot Satyr
 
Dessembrae's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 29
Question Try this (for frame spawning)

I'm no expert by any means (I just had a look at my own layout for comparison).

Try this for the frames:
Code:
	-- ======================================================
	-- Register the Style(s) to use
	-- ======================================================
oUF:RegisterStyle("Hypocrisy", function(self, ...)
    SetStyle(self, ...)
	-- ======================================================
end)

	-- ======================================================
	-- Frame Factory
	-- ======================================================
oUF:Factory(function(self)
    self:SetActiveStyle("Hypocrisy")
	-- ======================================================
	-- Player and Target
	-- ======================================================
	local player = self:Spawn("player", "oUF_Player")
	player:SetPoint("CENTER", -320, -126)
	local target = self:Spawn("target", "oUF_Target")
	target:SetPoint("TOPLEFT",player,"TOPRIGHT", 5, 0)
	-- ======================================================
	-- Pet and Pet Target
	-- ======================================================
	local pet = self:Spawn("pet", "oUF_Pet")
	pet:SetPoint("BOTTOMLEFT", player, 0, -22 - petshift)
	local pettarget = self:Spawn("pettarget", "oUF_PetTarget")
	pettarget:SetPoint("BOTTOMRIGHT", player, 0, -22 - petshift)
	-- ======================================================
	-- Target of Target
	-- ======================================================
	local tot = self:Spawn("targettarget", "oUF_TargetTarget")
	tot:SetPoint("TOPLEFT",target,"TOPRIGHT", 5, 0)
	-- ======================================================
	-- Focus and Focus Target
	-- ======================================================
	local focus = self:Spawn("focus", "oUF_Focus")
	focus:SetPoint("TOPLEFT", 284, -200)
	local focustarget = self:Spawn("focustarget", "oUF_FocusTarget")
	focustarget:SetPoint("TOPLEFT", focus, "TOPRIGHT", 5, 0)
	-- ======================================================
	-- Party Frames
	-- ======================================================
	local party = self:Spawn("header", "oUF_Party")
	party:SetManyAttributes("showParty", true, "yOffset", -50)
	party:SetPoint("TOPLEFT", 15, -40)
	party:Show()
	-- ======================================================
	-- Frame Scales
	-- ======================================================
	oUF_Player:SetScale(scale)
	oUF_Pet:SetScale(scale)
	oUF_PetTarget:SetScale(scale)
	oUF_Target:SetScale(scale)
	oUF_TargetTarget:SetScale(scale)
	oUF_Focus:SetScale(scale)
	oUF_FocusTarget:SetScale(scale)
	oUF_Party:SetScale(scale)
	-- ======================================================
end)
__________________
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
11-25-10, 12:53 AM   #7
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
And this is how I do my spawning

Code:
oUF:RegisterStyle('alekk', Shared)

oUF:Factory(function(self) -- the new "where stuff goes method
	oUF:SetActiveStyle('alekk')

	oUF:Spawn("player"):SetPoint("CENTER", -305, -92)
	oUF:Spawn("target"):SetPoint("CENTER", 305, -92)
	oUF:Spawn("pet"):SetPoint("TOPLEFT", oUF.units.player, "BOTTOMLEFT", 0, -45)
	oUF:Spawn("targettarget"):SetPoint("TOPRIGHT", oUF.units.target, "BOTTOMRIGHT", 0, -1)
	oUF:Spawn("focus"):SetPoint("TOPLEFT", oUF.units.player, "BOTTOMLEFT", 0, -1)
	oUF:Spawn("focustarget"):SetPoint("TOPLEFT", oUF.units.focus, "TOPRIGHT", 5, 0)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Resurrecting oUF_Hypocrisy


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