Thread Tools Display Modes
02-18-09, 09:44 AM   #741
lanacan
A Warpwood Thunder Caller
 
lanacan's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 94
Originally Posted by Wimpface View Post
Actually, Adapt's portraits are square but resized so they fit in the round texture, a round 3d portrait is not possible as far as i know.
True but if you look through Adapt's code you will see they have a Round mask used to make them fit into the default unit frames better.


I saw that when i was trying to make the portraits for oUF_Neav 3D.
__________________
Busy modifying your code for my own UI.
 
02-18-09, 10:10 AM   #742
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Originally Posted by lanacan View Post
True but if you look through Adapt's code you will see they have a Round mask used to make them fit into the default unit frames better.


I saw that when i was trying to make the portraits for oUF_Neav 3D.
Alright, i didn't know that!

Now, does anyone mind taking a look at this pastey? I'm having problems getting oUF Swing and oUF Reputation to work... It's most likely a noob error since, well, i am a noob!

http://pastey.net/108513

Any help appreciated!
__________________
All I see is strobe lights blinding me in my hindsight.
 
02-18-09, 10:24 AM   #743
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Wimpface View Post
Alright, i didn't know that!

Now, does anyone mind taking a look at this pastey? I'm having problems getting oUF Swing and oUF Reputation to work... It's most likely a noob error since, well, i am a noob!

http://pastey.net/108513

Any help appreciated!
Did you remember the toc metadata?
 
02-18-09, 10:45 AM   #744
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Originally Posted by p3lim View Post
Did you remember the toc metadata?
And that would be the thing I forget more than anything LOL
 
02-18-09, 11:07 AM   #745
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Originally Posted by p3lim View Post
Did you remember the toc metadata?
Ah no, thansk p3lim!

I knew it was a noob mistake...
__________________
All I see is strobe lights blinding me in my hindsight.
 
02-19-09, 02:53 AM   #746
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Hi ppl,

I've made my own DruidMana function, it works quite well but there is one small thing i don't understand.

Here's the function
Code:
local function UpdateDruidMana(self)
	if self.unit ~= 'player' then return end
	local num, str = UnitPowerType('player')
	if(num ~= 0) then
		local min = UnitPower('player', 0)
		local max = UnitPowerMax('player', 0)

		if(min ~= max) then
			if(self.Power.value:GetText()) then
				self.DruidMana:SetPoint('LEFT', self.Power.value, 'RIGHT', 1, 0)
				self.DruidMana:SetFormattedText('|cffD7BEA5-|r %d%%|r', (min/max)*100)
			else
				self.DruidMana:SetPoint('LEFT', 1, 1)
				self.DruidMana:SetFormattedText('%d%%', (min/max)*100)
			end
		else
			self.DruidMana:SetText()
		end

		self.DruidMana:SetAlpha(1)
	else
		self.DruidMana:SetAlpha(0)
	end
end
And then this in my updatePower
Code:
	if(self.DruidMana) then UpdateDruidMana(self) end
Everything is updating correctly while i have (for example) rage in bear form but, once i run out of rage, the DruidMana moves to the left side of the bar as expected but also stop updating. Why ?

EDIT: Nevermind, fixed
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }

Last edited by Caellian : 02-19-09 at 03:01 AM.
 
02-19-09, 08:32 AM   #747
nidraj
A Deviate Faerie Dragon
Join Date: Dec 2008
Posts: 10
Hi

I have small one questions, there would be the possibility when oUF "Reads" the Mt of Ora2? My Gm allocates Mt's via this addons, but I would like show them via oUF (appearance minimum)

( I'm a non english speaker so sorry for this bad text )
 
02-19-09, 09:15 AM   #748
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Originally Posted by nidraj View Post
Hi

I have small one questions, there would be the possibility when oUF "Reads" the Mt of Ora2? My Gm allocates Mt's via this addons, but I would like show them via oUF (appearance minimum)

( I'm a non english speaker so sorry for this bad text )
I've asked for that months ago and i've been told it would require a plugin, Coldfury once said he would write one but that never happened.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
 
02-19-09, 09:35 AM   #749
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Caellian View Post
I've asked for that months ago and i've been told it would require a plugin, Coldfury once said he would write one but that never happened.
Coldfury quit playing
 
02-19-09, 10:02 AM   #750
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Originally Posted by p3lim View Post
Coldfury quit playing
Always sad to hear, i wish i could write that plugin myself, would have done that long ago, i've even removed the MT/MA frames from my layout so much they're useless to me since it's not compatible with ora2.

Maybe one day
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
 
02-19-09, 10:44 AM   #751
nidraj
A Deviate Faerie Dragon
Join Date: Dec 2008
Posts: 10
=(

Oki , Thank you, I am going to stop searching then.
 
02-19-09, 11:26 AM   #752
TsoHG
A Kobold Labourer
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 1
I've a question whether it is posssible to display a cast-bar depending on enemy hostility at different locations - e.g. the focus castingbar near raidframes if focus is an enemy, but not if the focus is a raid player. I tried a bit to toggle this via - if UnitCanAttack("unit", "otherUnit") - and - if UnitIsEnemy("unit", "otherUnit") -, nevertheless, i did'nt managed that it worked. Any ideas ?
 
02-19-09, 02:29 PM   #753
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
Still working on getting this pvp icon to move and resize using OUF. Im very close to having this work the way I need it to. But im running into one last problem. The pvp icon will not dissapear after i unflag. also if i target a pvp flagged mob then i target an unflagged mob the pvp icon sticks and doesnt go away untill i do a /rl

I have gotten lots of help from both these forums and the wow forums but I just can't seem to get this to work. Here is a pastey if anyone wants to look.

http://www.pastey.net/108571
__________________
 
02-19-09, 02:51 PM   #754
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
Originally Posted by Elloria View Post
Still working on getting this pvp icon to move and resize using OUF. Im very close to having this work the way I need it to. But im running into one last problem. The pvp icon will not dissapear after i unflag. also if i target a pvp flagged mob then i target an unflagged mob the pvp icon sticks and doesnt go away untill i do a /rl

I have gotten lots of help from both these forums and the wow forums but I just can't seem to get this to work. Here is a pastey if anyone wants to look.

http://www.pastey.net/108571
I don't see a reason to edit the PvP.lua. Its much easier to do within the layout.
 
02-19-09, 02:54 PM   #755
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
Well I thought the best place to start would be in the pvp.lua Is it possible for me to just add my code to the main lua then? i guess im asking how would i go about doing that, or where should i put that code in.

Edit: ok nevermind. Im snooping around and i see where now. Its very clearly marked too. Hehe wish me luck!
__________________

Last edited by Elloria : 02-19-09 at 02:58 PM.
 
02-19-09, 03:17 PM   #756
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
Originally Posted by Elloria View Post
Well I thought the best place to start would be in the pvp.lua Is it possible for me to just add my code to the main lua then? i guess im asking how would i go about doing that, or where should i put that code in.

Edit: ok nevermind. Im snooping around and i see where now. Its very clearly marked too. Hehe wish me luck!
Revert the PvP.lua to its original state. Nothing in the oUF folder should have to be edited.

In the layout .lua (whatever the name depends on the original author) there is a big style function that holds most of the configurations.

From what you did in the PvP.lua, I would add something like this

Code:
local pvp = hp:CreateTexture(nil, "OVERLAY") 
if(unit=='player') then  
  pvp:SetPoint('CENTER', self, 'TOPLEFT', -13, -8)
elseif(unit=='target') then  
  pvp:SetPoint('CENTER', self, 'TOPRIGHT', 26, -5)
else
  pvp:SetPoint('CENTER', self, 'TOPLEFT', -13, -8) -- all other frames
end
pvp:SetHeight(44)
pvp:SetWidth(44)
self.PvP = pvp
also remove any pre-existing pvp code from the layout, if there was any.
 
02-19-09, 03:23 PM   #757
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
well i tried a few things before i saw you had replied but i kept getting this error

[2009/02/19 16:20:23-170-x1]: oUF_Neav\oUF_Neav.lua:237: attempt to index global 'hp' (a nil value)
oUF-1.3.4\ouf.lua:218: in function <Interface\AddOns\oUF\ouf.lua:210>
oUF-1.3.4\ouf.lua:275: in function <Interface\AddOns\oUF\ouf.lua:272>
oUF-1.3.4\ouf.lua:326: in function `Spawn'
oUF_Neav\oUF_Neav.lua:717: in main chunk

so i tried what you had mentioned and i still get similar errors.
__________________
 
02-19-09, 03:38 PM   #758
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Elloria View Post
well i tried a few things before i saw you had replied but i kept getting this error

[2009/02/19 16:20:23-170-x1]: oUF_Neav\oUF_Neav.lua:237: attempt to index global 'hp' (a nil value)
oUF-1.3.4\ouf.lua:218: in function <Interface\AddOns\oUF\ouf.lua:210>
oUF-1.3.4\ouf.lua:275: in function <Interface\AddOns\oUF\ouf.lua:272>
oUF-1.3.4\ouf.lua:326: in function `Spawn'
oUF_Neav\oUF_Neav.lua:717: in main chunk

so i tried what you had mentioned and i still get similar errors.
Think, replace 'hp' with whatever your healthbar is called as.
If you are unsure, just do 'self.Health'
 
02-19-09, 03:38 PM   #759
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
Originally Posted by Elloria View Post
well i tried a few things before i saw you had replied but i kept getting this error

[2009/02/19 16:20:23-170-x1]: oUF_Neav\oUF_Neav.lua:237: attempt to index global 'hp' (a nil value)
oUF-1.3.4\ouf.lua:218: in function <Interface\AddOns\oUF\ouf.lua:210>
oUF-1.3.4\ouf.lua:275: in function <Interface\AddOns\oUF\ouf.lua:272>
oUF-1.3.4\ouf.lua:326: in function `Spawn'
oUF_Neav\oUF_Neav.lua:717: in main chunk

so i tried what you had mentioned and i still get similar errors.
I just looked over Neav's code and he has everything already in there. You can just modify it to your needs without adding anything. The code looks to be separated by each unit frame. Search for the self.PvP:SetPoint and Height/Width in each.
 
02-19-09, 04:22 PM   #760
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
There I go again making things more complicated than they have to be. You were right. All the code is there I just needed to add what i wanted it to do. that was very easy. Thanks so much everyone got everything working!



Was able to move the timer too
__________________
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF - Layout discussion


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