Thread Tools Display Modes
11-07-09, 05:59 PM   #1
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
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
__________________

Tukui | Github

Last edited by jasje : 11-09-09 at 09:08 AM.
  Reply With Quote
11-09-09, 09:08 AM   #2
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
anybody that could help me out here?
__________________

Tukui | Github
  Reply With Quote
11-09-09, 09:24 AM   #3
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
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..."

  Reply With Quote
11-09-09, 10:23 AM   #4
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
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?
__________________

Tukui | Github

Last edited by jasje : 11-09-09 at 10:29 AM. Reason: Another question
  Reply With Quote
11-09-09, 02:32 PM   #5
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
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.
  Reply With Quote
11-10-09, 08:02 AM   #6
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
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
__________________

Tukui | Github
  Reply With Quote
11-10-09, 12:48 PM   #7
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
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..."

  Reply With Quote
11-10-09, 02:58 PM   #8
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Code:
portrait.type = "3D"
Isn't needed. oUF figures that out by it self .
__________________
「貴方は1人じゃないよ」
  Reply With Quote
11-10-09, 05:14 PM   #9
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
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..."

  Reply With Quote
11-11-09, 12:04 PM   #10
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Just wanted to let u know that im finished with my oUF here is the final lay-out

ss:
__________________

Tukui | Github

Last edited by jasje : 11-11-09 at 03:51 PM.
  Reply With Quote
11-12-09, 08:22 AM   #11
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
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..."

  Reply With Quote
11-12-09, 09:19 AM   #12
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
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.
__________________

Tukui | Github

Last edited by jasje : 11-14-09 at 02:35 AM. Reason: Question!
  Reply With Quote

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


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