Reply
 
Thread Tools Display Modes
Old 11-07-2009, 06:59 PM   #1
jasje
A Theradrim Guardian
 
jasje's Avatar
Interface Author - Click to view interfaces
Join Date: Jul 2008
Posts: 60
need some help here

how do i add borders around my castbar icon?
its round now but i want them to be square

EDIT: i found a way to add borders only the question is now why are they looking not right
did i do something wrong cause they seem a little blurry to me.
what should i do to make them to have a little bit more quality like the castbar itself, or btr to have the same color as the unitframe(greyish)

Here is a picture of how it looks now
__________________

Last edited by jasje : 11-09-2009 at 10:08 AM.
jasje is offline   Reply With Quote
Old 11-09-2009, 10:08 AM   #2
jasje
A Theradrim Guardian
 
jasje's Avatar
Interface Author - Click to view interfaces
Join Date: Jul 2008
Posts: 60
anybody that could help me out here?
__________________
jasje is offline   Reply With Quote
Old 11-09-2009, 10:24 AM   #3
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces
Join Date: May 2006
Posts: 183
I use castbar icon borders and backgrounds in oUF_viv's castbar code. You can take that as a reference.
__________________
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..."
Dawn is offline   Reply With Quote
Old 11-09-2009, 11:23 AM   #4
jasje
A Theradrim Guardian
 
jasje's Avatar
Interface Author - Click to view interfaces
Join Date: Jul 2008
Posts: 60
i will definitly take a look at that ty!

EDIT:2
Also while were at it(dont wanna make a new tread for it)
how do i add a portrait's to a oUF i dont like them much but a guildie of mine does...
he just dont want my interface cause it hasnt got portraits( yeah tell me about it!)
so i looked at other oUF lay-outs but didnt got any wiser on where to add a code for that

help?
__________________

Last edited by jasje : 11-09-2009 at 11:29 AM. Reason: Another question
jasje is offline   Reply With Quote
Old 11-09-2009, 03:32 PM   #5
wurmfood
A Wyrmkin Dreamwalker
Interface Author - Click to view interfaces
Join Date: Apr 2009
Posts: 59
Portrait code is pretty easy. I think I took most of mine from oUF_Caellian. Just look for self.Portrait. Really, though, you just have to make a player model frame (so CreateFrame('PlayerModel', someName, self)) and assign it to self.Portrait for any unit you want to have one. Set a height and width and you're set.
wurmfood is online now   Reply With Quote
Old 11-10-2009, 09:02 AM   #6
jasje
A Theradrim Guardian
 
jasje's Avatar
Interface Author - Click to view interfaces
Join Date: Jul 2008
Posts: 60
Quote:
Originally Posted by wurmfood View Post
Portrait code is pretty easy. I think I took most of mine from oUF_Caellian. Just look for self.Portrait. Really, though, you just have to make a player model frame (so CreateFrame('PlayerModel', someName, self)) and assign it to self.Portrait for any unit you want to have one. Set a height and width and you're set.
uhmz not getting any wiser from that..
ive tryed to copy some code and place it in my own layout but without succes
__________________
jasje is offline   Reply With Quote
Old 11-10-2009, 01:48 PM   #7
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces
Join Date: May 2006
Posts: 183
Code:
		local portrait = CreateFrame("PlayerModel", nil, self)
		portrait:SetScript("OnShow", function(self) self:SetCamera(0) end)
		--portrait:SetPoint("TOPLEFT", self.Health, "TOPRIGHT", 4, 0)

		portrait.type = "3D"
		self.Portrait = portrait
		--portrait:SetFrameStrata("LOW")		
		--portrait:SetFrameLevel(11)		
		--portrait:SetAlpha(1)
This is all you need. Commented lines are optional. You have to tell the layout for which frames (like player, target, ....) it should spawn the portrait, though.
__________________
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..."
Dawn is offline   Reply With Quote
Old 11-10-2009, 03:58 PM   #8
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 349
Code:
portrait.type = "3D"
Isn't needed. oUF figures that out by it self .
__________________
I've made you a drawing of a giraffe boinking an elephant. Notice how his mustache looks just like mine.
私に任せて先に行け~!
壊してあげる!
haste is offline   Reply With Quote
Old 11-10-2009, 06:14 PM   #9
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces
Join Date: May 2006
Posts: 183
Ah, ok.
__________________
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..."
Dawn is offline   Reply With Quote
Old 11-11-2009, 01:04 PM   #10
jasje
A Theradrim Guardian
 
jasje's Avatar
Interface Author - Click to view interfaces
Join Date: Jul 2008
Posts: 60
Just wanted to let u know that im finished with my oUF here is the final lay-out

ss:
__________________

Last edited by jasje : 11-11-2009 at 04:51 PM.
jasje is offline   Reply With Quote
Old 11-12-2009, 09:22 AM   #11
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces
Join Date: May 2006
Posts: 183
Looks very nice. Does it also show HPPerc on target (to estimate when it's about time for execute, hammer of wrath, etc.)?
__________________
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..."
Dawn is offline   Reply With Quote
Old 11-12-2009, 10:19 AM   #12
jasje
A Theradrim Guardian
 
jasje's Avatar
Interface Author - Click to view interfaces
Join Date: Jul 2008
Posts: 60
No i havnt got anything out of the ordinaire..
As said im just starting with this so dont rly know how to do that... Yet!

EDIT:
Yes the HPPerc is in the lay_out now.
__________________

Last edited by jasje : 11-14-2009 at 03:35 AM. Reason: Question!
jasje is offline   Reply With Quote
Reply

Go BackWoWInterface » Featured Projects » oUF (Otravi Unit Frames) » need some help here

Thread Tools
Display Modes

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




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.