Thread Tools Display Modes
06-03-09, 03:48 AM   #1
clarkeyboy
A Murloc Raider
Join Date: Jun 2009
Posts: 5
Add values to health bars instead of %

Im trying to work out how to remove the %'s from health/mana bars and have the traditional values back there. also would like to lose the global cooldown line when you cast anything and the weird bars that pop up when you melee with the sliders on as I have no idea what they are.
 
06-03-09, 04:26 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,965
Could you post a screen shot of what you are talking about as the only slider that I am aware of is the healthrace bar and you can turn that off with a /nui hud healthrace toggle or something similar.

Changing the percent to the actual values on the health and mana bars may not be possible without a code change and even then not necessarily easily.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-03-09, 05:34 AM   #3
clarkeyboy
A Murloc Raider
Join Date: Jun 2009
Posts: 5
Originally Posted by Xrystal View Post
Could you post a screen shot of what you are talking about as the only slider that I am aware of is the healthrace bar and you can turn that off with a /nui hud healthrace toggle or something similar.

Changing the percent to the actual values on the health and mana bars may not be possible without a code change and even then not necessarily easily.
I think its the healthchase bars, basically when I engage a monster a bar comes up with what looks like sliders on it, but they cannot be clicked, just above the HuD at the bottom middle of the screen. I dont want them.

The %'s only bother me when im solo as I can never tell how much mana I have left.


Also I would like the Minimap in the top right, or the buffs I have up there please as there seems to be a lot of wasted space.
Thanks for the adivce

Edit: I got rid of the healthchase bars, thats great, now for the other things:



The point marked A is where I want values (xxx/xxx) instead of the percentages and blank bars, dont care in Raid UI as I just need to see health for healing there, but when in 5-10mans there is room so would like to know if I can please.

The points marked B I would just like to remove please, any help with this would be awesome

Also is there a way to get the traditional buff/debuff display back and lose those boxes on the left and right, as they are just too much information and the icons are too small.

Thank you.

Last edited by clarkeyboy : 06-03-09 at 05:51 AM.
 
06-03-09, 06:14 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,965
Ah the reason why everything is at the bottom is to free up the space above for game play or whatever else you want there.

You can turn off nUIs control of the minimap with something like /nui minimap to toggle control and it will either automatically load your UI or you will have to do it manually but once reloaded the map will appear in the top right.

The auras however cannot be moved to that position as the bars are now the standard in nUI.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-03-09, 06:29 AM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,965
Okay, took a gander in the files and found this that you could change if you were inclined and confident to do so.

File: nUI_UnitPower.lua in nUI/Units folder
Line: 890 or thereabouts

Code:
if frame.bar.enabled then
   frame.bar.updateBar( unit_info.pct_power, unit_info.power_color );
end
If you change pct_power to cur_power it looks like it will display the current power ( in your case mana ) value. Not in game at present to test it at the moment but the value should exist and thus display unless it gets overridden at a later date.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
06-03-09, 06:35 AM   #6
clarkeyboy
A Murloc Raider
Join Date: Jun 2009
Posts: 5
Originally Posted by Xrystal View Post
Okay, took a gander in the files and found this that you could change if you were inclined and confident to do so.

File: nUI_UnitPower.lua in nUI/Units folder
Line: 890 or thereabouts

Code:
if frame.bar.enabled then
   frame.bar.updateBar( unit_info.pct_power, unit_info.power_color );
end
If you change pct_power to cur_power it looks like it will display the current power ( in your case mana ) value. Not in game at present to test it at the moment but the value should exist and thus display unless it gets overridden at a later date.
Ok well im off to work now but I will try this tonight, no programming knowledge so this might be a bit over my head but I can try! Thank you so much matey.
 
06-03-09, 06:38 AM   #7
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
NO! NO! NO!

This is the *WRONG* way to make changes to nUI's layout... you never modify the executable code, only the layout files.

Do not *EVER* modify the files in [ Interface > AddOns > nUI > Units ]

If you want to display current power instead of percent power, you edit the files in [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts (or UnitPanels) > etc... ] -- In those files you'll find sections for ["Health"] and ["Power"] which control what the display of health and power bars look like. To change the power bars to display current power instead of percent power, you replace the pct_power = section with cur_power = and voila, you display current power instead of percent.

Originally Posted by Xrystal View Post
Okay, took a gander in the files and found this that you could change if you were inclined and confident to do so.

File: nUI_UnitPower.lua in nUI/Units folder
Line: 890 or thereabouts

Code:
if frame.bar.enabled then
   frame.bar.updateBar( unit_info.pct_power, unit_info.power_color );
end
If you change pct_power to cur_power it looks like it will display the current power ( in your case mana ) value. Not in game at present to test it at the moment but the value should exist and thus display unless it gets overridden at a later date.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
06-03-09, 06:51 AM   #8
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Originally Posted by clarkeyboy View Post
I think its the healthchase bars, basically when I engage a monster a bar comes up with what looks like sliders on it, but they cannot be clicked, just above the HuD at the bottom middle of the screen. I dont want them.
You can turn the healthrace bar off using '/nui hud healthrace' however, you might want to consider reading the description of what it is and how it works before you do that. You'll find the description of the health race bar in the "User Guide" section at http://www.nuiaddon.com/documentation.html

The %'s only bother me when im solo as I can never tell how much mana I have left.
As noted in my prior post, you can fix that editing [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > Solo > nUI_UnitSkins_SoloPlayer.lua ] and look for the ["Power"] section in the file. In that you'll see where it says "pct_power =" -- change that to read "cur_power =" and then save the file. When you log back into WoW or do a '/nui rl' you'll see your percent power has been replaced with the current power.

Also I would like the Minimap in the top right, or the buffs I have up there please as there seems to be a lot of wasted space.
Thanks for the adivce
You can move the minimap back up to the top right using '/nui minimap' -- however, the entire point of this UI is that you can keep all relevant information in one place where you can see it without having to move your eye all over the display space. At the same time, it keeps the field of play open. But to each their own and, thus, the option.

Edit: I got rid of the healthchase bars, thats great, now for the other things:
I still say you should really think about reading up on what the healthrace is and reconsider losing it... but, again, to each their own.


The point marked A is where I want values (xxx/xxx) instead of the percentages and blank bars, dont care in Raid UI as I just need to see health for healing there, but when in 5-10mans there is room so would like to know if I can please.
To do this you would need to edit the HUD layout player and target files for the simple HUD and add sections for ["Health"] and ["Power"] to it. I'm at work right now, so I can't work on it, but I'll post code later tonight if I don't forget.

The points marked B I would just like to remove please, any help with this would be awesome
Edit [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > NoBars > nUI_HUDSkins_NoBars_Target.lua ] and locate the section ["Range"] -- comment out that entire section by adding the part I have highlighted in blue like this...

Code:
--[[
["Range"] =
{
 ... all kind of option and achor information is in here ...
},
]]--
Also is there a way to get the traditional buff/debuff display back and lose those boxes on the left and right, as they are just too much information and the icons are too small.
Yes... download and install the nUI_AuraButtons plugin from the "nUI: Unit Frame Panels" section at http://www.wowinterface.com/downloads/cat125.html
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » Add values to health bars instead of %


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