View Full Version : Changing HUD colors
Cirin
10-08-2006, 04:46 AM
So, I did use the search function but wading through all the different color things that came up really didn't help.
I just want to change the color of the bars themselves to fit the look of my UI. I've looked in layout.lua and the only thing I've seen is the VertexColor which seems to have no effect when I change it. I also want to disable the bars changing color based on health percentage.
Thanks very much in advance for your help.
Blasph
10-09-2006, 02:47 PM
So, I did use the search function but wading through all the different color things that came up really didn't help.
I just want to change the color of the bars themselves to fit the look of my UI. I've looked in layout.lua and the only thing I've seen is the VertexColor which seems to have no effect when I change it. I also want to disable the bars changing color based on health percentage.
Thanks very much in advance for your help.
The only way I know of is to edit the colors for your Unit frames.
unit frames/layout.lua and nurfed utility/nurfed_units.lua
It changes for the hud as well.
Cirin
10-09-2006, 08:21 PM
Thanks, actually figured it out. I don't use nurfed anything but the HUD, General and Utility. It's in Utility/Unit Frames
Check it out ;)
Big thanks mostly to shoefly and all the people he credited with helping him for giving me the nice HUD to edit.
http://img.photobucket.com/albums/v609/cirin/updated_ui.jpg
mo3cht3g3rn
10-12-2006, 09:20 AM
I got the same Problem. I got a hud with a horible health color and i want change it. I tryed your Tipps but it didnt work or i didnt find the right one.
Can u discribe it better where i found it please?
ty
btw: I dont speak english very well, how u see, but i didnt find a german forum to ask sorry :-P
Cirin
10-12-2006, 12:04 PM
Here's some SS's for ya.
For editing mana:
http://img160.imageshack.us/img160/5089/editmanago5.th.jpg (http://img160.imageshack.us/my.php?image=editmanago5.jpg)
For editing health:
http://img171.imageshack.us/img171/7743/edithealthqq1.th.jpg (http://img171.imageshack.us/my.php?image=edithealthqq1.jpg)
Hope that helps.
**EDIT**
Oh yeah, once you click on the thumbnail above make sure you click on the picture to zoom it to the full size or else you won't be able to read the text. You can see the full path in windows explorer and the file I'm editing is highlighted as well. Just find those spots in the file and make them the color you prefer.
Blasph
10-12-2006, 01:44 PM
function Nurfed_Units:GetHealth(unit)
local currhp, maxhp = UnitHealth(unit), UnitHealthMax(unit);
if (not UnitIsConnected(unit)) then
currhp = 0;
end
local perc = currhp/maxhp;
local color = {};
if(perc > 0.6) then
color.r = (101/255);
color.g = (131/255);
color.b = (41/255);
else
if(perc > 0.2) then
color.r = (225/225);
color.g = (225/225);
color.b = (64/225);
else
color.r = (255/255);
color.g = (0/255);
color.b = (0/255);
end
end
perc = format("%.0f", floor(perc * 100));
return currhp, maxhp, perc, color;
end
The mana color is located in Nurfed_unitframes/Layout.lua, and looks like
ManaBarColor[0] = { r = (141/255), g = (185/255), b = (111/255), prefix = TEXT(MANA) }; -- mana
ManaBarColor[1] = { r = (230/255), g = (030/255), b = (030/255), prefix = TEXT(MANA) }; -- rage
ManaBarColor[2] = { r = (160/255), g = (170/255), b = (185/255), prefix = TEXT(MANA) }; -- focus
ManaBarColor[3] = { r = (230/255), g = (230/255), b = (030/255), prefix = TEXT(MANA) }; -- energy
ManaBarColor[4] = { r = (160/255), g = (170/255), b = (185/255), prefix = TEXT(MANA) }; -- happiness
the numbers may be different on yours cause these are from my edited files but yeah. :]
if you dont used nurfed unitframes then the mana is located in the same file as the health right below it [/QUOTE]
mo3cht3g3rn
10-14-2006, 04:42 AM
Thank you, thats helped much :-)
Spader
10-19-2006, 06:24 PM
There is no file named Layout.lua in the Nurfed_UnitFrames folder (and I've downloaded the latest version of nurfed).
So, I went along and checked ALL .lua-files in all the Nurfed folders for the keyword "color.b" but I couldnt find anything about how the variables color.r color.b and color.g are defined.
I also did a search in all the lua files for the "ManaBarColor" definitions without any luck. So how do I change the mana/energy/rage/happiness bars?
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.