WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Suggestion Box (https://www.wowinterface.com/forums/forumdisplay.php?f=91)
-   -   HUD life % (https://www.wowinterface.com/forums/showthread.php?t=21039)

Intravires 03-11-09 02:51 PM

HUD life %
 
Is there an option to see your target's health % is near the top and the target of targets % near the bottom?

spiel2001 03-11-09 04:34 PM

I'm not sure what you're asking for here... are you asking if there's an option to move where the % health is located? If that's what you're asking, then the only way to do that would be to edit the file [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > {HUD mode} > nUI_HUDSkin_{HUD mode}_Target.lua ] and look for the section "pct_health =" -- you'll find two values in there: xOfs and yOfs which are the X and Y offsets of the text for the percent health... change those to change the location of the text.

Intravires 03-12-09 03:12 PM

how do I know what the X and Y axis are to where I want them?

spiel2001 03-12-09 03:38 PM

Quote:

Originally Posted by Intravires (Post 119955)
how do I know what the X and Y axis are to where I want them?

Well... yOfs moves it up (larger numbers) and down (smaller numbers) on the screen and xOfs moves it left (smaller numbers) and right (larger numbers) on the screen. What number to use I couldn't begin to tell you because it depends entirely on where you want it.

You can do this while you're logged into WoW... just run WoW in windowed mode and full screen, then switch out and open the layout file in your text editor. Try increasing the yOfs number by some amount and save the file, then switch back to WoW and do '/nui rl' and nUI will re-run the layout. Then you can see how much the value moved on the screen and decide how much more or less you need to move it. Try another value, save it, reload the screen again and keep repeating until you get the value where you want it on the screen.

Intravires 03-22-09 08:45 AM

If I change it like this, every time an update comes out I will have to edit it back to where I want right?

spiel2001 03-22-09 09:27 AM

Quote:

Originally Posted by Intravires (Post 121457)
If I change it like this, every time an update comes out I will have to edit it back to where I want right?

Unfortunately, until I get the custom skins code finished, yes.

But it's really a very trivial change. If you know where you're making the change and what values you're using, it takes like 30 seconds to complete.

Intravires 03-22-09 11:45 AM

It is more than just that file I have to edit. It doesn't keep the % of health or mana in the same place. It is dependent on if they have a target or if they don't. Any ideas?

spiel2001 03-22-09 11:57 AM

Quote:

Originally Posted by Intravires (Post 121479)
It is more than just that file I have to edit. It doesn't keep the % of health or mana in the same place. It is dependent on if they have a target or if they don't. Any ideas?

Now you're confusing me.

nUI does not move where the health data is (or any data) based on whether or not the target has a target.

The target's health is in one place and one place only in the HUD. It's the big numbers. The target-of-target's health is in the small numbers below the bars. Neither one ever moves.

From the FAQ page (http://www.wowinterface.com/forums/s...ad.php?t=21108)...



Intravires 03-22-09 08:14 PM

Go into wow, find somebody who is at 100% health target them, then find somebody who targeting another player. If I edited those files like you said, the placement % of health/mana jumps around. I'll edit the file tomorrow again and upload you a screen shot.

spiel2001 03-22-09 08:29 PM

Quote:

Originally Posted by Intravires (Post 121630)
Go into wow, find somebody who is at 100% health target them, then find somebody who targeting another player. If I edited those files like you said, the placement % of health/mana jumps around. I'll edit the file tomorrow again and upload you a screen shot.

There's a failure to communicate somewhere. I definitely want to see the screen caps.

Target health/mana % exists in one place and one place only on the HUD (in any one HUD mode). Target-of-target health/mana % also exists in one place and only one place on the HUD for any one mode. It never moves unless you change modes. If the target health is moving when you switch between a target that has a target and a target that doesn't then something WAY screwy is going on... I know... I wrote the code ~smile~

Intravires 03-23-09 05:18 PM

I got it working tonight. I edited some file I shouldn't have...but it is fixed now.

spiel2001 03-23-09 05:21 PM

/happydance

~smile~


All times are GMT -6. The time now is 11:16 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI