| Updated: | 07-25-10 08:06 AM |
| Created: | 07-25-10 08:06 AM |
| Downloads: | 2,240 |
| Favorites: | 7 |
| MD5: |
![]() |
Comment Options |
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 3
Uploads: 0
|
Hey i have a question but not about the addon.
the question is which are the names of the other addons that appear on the screenshots?, those you use for the player and target frames, the chat box, map, buff, buttons...you know, the other ones.![]() Thanks, this is a real nice theme, i'm a big starcraft fan and really enjoy what you've done!! ![]() |
|
|
|
|
||
Code:
local function SetHealthbarColor(unit) if unit.reaction == "FRIENDLY" then return 1,1,0 -- Yellow else if unit.class and unit.class ~= "UNKNOWN" then return unit.red, unit.green, unit.blue -- Class Color PvP else return 1,0,0 -- Red end end end
Last edited by suicidalkatt : 09-13-10 at 01:10 AM.
|
||
|
|
|
|
|
|
i did this and now my freindlies are red aand my enemies are yellow with a green border. how do i switch it around??
Code:
local function SetHealthbarColor(unit) if unit.reaction == "FRIENDLY" then return 1,0,0 -- Red else if unit.class and unit.class ~= "UNKNOWN" then return unit.red, unit.green, unit.blue -- Class Color PvP else return 1,1,0 -- Yellow end end end |
|
|
|
|
|
|
|
A Murloc Raider
Forum posts: 4
File comments: 6
Uploads: 0
|
That was perfect!
Thanks for doing such a great addon! |
|
|
|
|
||
Code:
local function SetHealthbarColor(unit) if unit.reaction == "FRIENDLY" then return 1,0,0 -- Red else if unit.class and unit.class ~= "UNKNOWN" then return unit.red, unit.green, unit.blue -- Class Color PvP else return 1,1,0 -- Yellow end end end
Last edited by suicidalkatt : 08-23-10 at 07:25 PM.
|
||
|
|
|
|
|
|
A Murloc Raider
Forum posts: 4
File comments: 6
Uploads: 0
|
Cat, my bad... tried using:
Code:
if unit.reaction == "FRIENDLY" then local function SetHealthbarColor(unit) local prchp = ( unit.health / unit.healthmax ) local r = 1 - (prchp-0.5) local g = 0 local b = 0 if unit.class and unit.class ~= "UNKNOWN" then return unit.red, unit.green, unit.blue else return r,g,b end end else local function SetHealthbarColor(unit) local prchp = ( unit.health / unit.healthmax ) local r = 1 - (prchp-0.5) local g = prchp+0.3 local b = 0 if unit.class and unit.class ~= "UNKNOWN" then return unit.red, unit.green, unit.blue else return r,g,b end end end any clue?![]() Thanks! |
|
|
|
|
||
|
||
|
|
|
|
|
|
A Murloc Raider
Forum posts: 4
File comments: 6
Uploads: 0
|
Thank you again!!!!
![]() Last one (hopefully) : how do I avoid the plates being displayed on totems and pets?Gracias!!!! |
|
|
|
|
||
Code:
if unit.reaction == "FRIENDLY" then -- do stuff else -- do other stuff end |
||
|
|
|
|
|
|
A Murloc Raider
Forum posts: 4
File comments: 6
Uploads: 0
|
Thank you so much!
That did the trick ![]() Changed: local function SetHealthbarColor(unit) local prchp = ( unit.health / unit.healthmax ) local r = 1 - (prchp-0.5) ---->local g = 0 Is there any way to see friendly units in the original green, while enemies on red? Thanks again! |
|
|
|
|
||
If you want to see where to change the color for the health bar check here: Lines 188-202: Code:
----------------------------- --[[Health Bar Color Fade]]-- ----------------------------- local function SetHealthbarColor(unit) local prchp = ( unit.health / unit.healthmax ) local r = 1 - (prchp-0.5) local g = prchp+0.3 local b = 0 if unit.class and unit.class ~= "UNKNOWN" then return unit.red, unit.green, unit.blue else return r,g,b end end TidyPlatesThemeList["Starcraft"].SetHealthbarColor = SetHealthbarColor |
||
|
|
|
|
|
|
A Murloc Raider
Forum posts: 4
File comments: 6
Uploads: 0
|
Hi, thanks for the addon, love the textures!
Quick Q: How can I change the "green squares" to red instead when focused and aggro to green? just for the squares, not the border. Thanks! |
|
|
|
|
|
|
Oh well, would've been awesome. Thanks for the fast reply.
|
|
|
|
![]() |