Thread Tools Display Modes
02-01-10, 04:59 PM   #1
Chenq
A Murloc Raider
Join Date: Feb 2010
Posts: 7
oUF_Coree Help!

sup, recently started with oUF and never worked with LUA before so I have some questions.

#1 I want to color a certain text on the unitframe, I'm using oUF_Coree and I want to color the health and mana. How do I do that? I saw the level text was colored but I couldn't find the exact command to do it.


#2 Also I'm wondering how u get like a delay in your health and powerbar when they are going down, instead of jumping down like it does in every UF it should "slide" down if you know what I mean. Nurfed UI has this by default if you've ever used that.

I saw someone with a modified oUF_Coree getting this effect, heres a link: http://www.youtube.com/watch?v=wVPv9613ZQo
Watch how the bar is going down instead of jumping down.

#3 I'd also lke to know how to resize the buffs and debuffs and how to add a spell icon to my castbar.

#4 I get a red square when I enter combat, how do I remove this? Pretty annoying.

#5 I want my Raid Layout in the bottom right hand corner, what would I write?
  Reply With Quote
02-01-10, 06:05 PM   #2
Chenq
A Murloc Raider
Join Date: Feb 2010
Posts: 7
Fixed #2 and #3.

except the "how to add a spell icon to my castbar."
  Reply With Quote
02-02-10, 04:06 AM   #3
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
for #1 it is difficult to give advise without more detail on what text you want to colour, and how you want to colour it. If it is to always have the text in a specific colour it is quite easy to do, if you want dynamic colouring then it gets a little trickier.

for #3 take a look at oUF_P3lim as this includes the spell icon by the castbar.

for #4 this could be the threat indicator, in which case just comment out anything to do with self.Threat

for #5 you have 2 options:
- install oUF_MovableFrames and drag them to where you want
- look at the spawn positions in oUF_coreeR.lua and move them to your preferred location
  Reply With Quote
02-02-10, 02:36 PM   #4
Chenq
A Murloc Raider
Join Date: Feb 2010
Posts: 7
ty, fixed #3, 4 and 5.

And I want the text colour to be one color all the time.

thtat color is green
  Reply With Quote
02-03-10, 06:59 PM   #5
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
you can either use SetTextColor or an escape sequence
  Reply With Quote
02-03-10, 07:01 PM   #6
Chenq
A Murloc Raider
Join Date: Feb 2010
Posts: 7
Doesnt help much for a lua tard
  Reply With Quote
02-03-10, 07:09 PM   #7
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
something like....

Code:
self.MyFontString = self:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
self.MyFontString:SetTextColor(0, 1, 0)
self.MyFontString:SetText("This text is green.")

or....

Code:
self.MyFontString = self:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
self.MyFontString:SetText("This text is white, but |cFF00FF00this text is green|r.")
  Reply With Quote
02-04-10, 11:25 AM   #8
Chenq
A Murloc Raider
Join Date: Feb 2010
Posts: 7
Originally Posted by yj589794 View Post
something like....

Code:
self.MyFontString = self:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
self.MyFontString:SetTextColor(0, 1, 0)
self.MyFontString:SetText("This text is green.")

or....

Code:
self.MyFontString = self:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmallRight')
self.MyFontString:SetText("This text is white, but |cFF00FF00this text is green|r.")
ty! mind checking my other thread? my freakin party frames are gone.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_Coree Help!


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