Download
(53 Kb)
Download
Updated: 03/03/19 08:54 AM
Pictures
File Info
Compatibility:
Wrathstone (4.3)
Updated:03/03/19 08:54 AM
Created:03/17/14 05:59 PM
Monthly downloads:333
Total downloads:81,774
Favorites:172
MD5:
Categories:Unit Mods, Combat Mods
Slightly Improved™ Attribute Bars  Popular! (More than 5000 hits)
Version: 2.2.2
by: L8Knight, haggen
Last Update: 2.2.2 (Mar 2 2019)

• Added compatibility with API 100026.
• Fixed Target's Health Bar re-positioning - it was appearing in the middle of the screen when the option was turned on.
• Updated setting's labels and tooltip for easier comprehension.

~~~

Slightly Improved™ Attribute Bars has received a major overhaul in version 2. Besides being now compatible with the latest version of the game, it leverages new built-in features, like displaying resource values over the your attribute bars, and adds new options.

★ Subtle visual enhancements to the Magicka, Health, and Stamina bars.
★ Switch target's Health bar position to the bottom of the screen, optionally only during combat.
★ Prevent the Health bar from fading while shield or damage absorption effect are active.
★ Displace Magicka, Health, and Stamina bars either further apart or closer together.

Please use the comment section and send me your feedback.

~~~

Slightly Improved™ add-ons:

Slightly Improved™ Attribute Bars
Slightly Improved™ Experience Bar
Slightly Improved™ Dialogues
Slightly Improved™ Gameplay
Slightly Improved™ Buff Tracking

~~~

Slightly Improved™ add-ons were originally created by L8Knight who kindly allowed me to continue his legacy. None of this would be possible without the help and support of the ESOUI community, and the inspiration from players like you. Thank you.
2.2.2 (Mar 2 2019)

• Added compatibility with API 100026.
• Fixed Target's Health Bar re-positioning - it was appearing in the middle of the screen when the option was turned on.
• Updated setting's labels and tooltip for easier comprehension.

2.2.1 (Jan 26 2019)

• Added compatibility with API 100025.
• Fix Magicka and Stamina bars displacement as to never overlap and never clip out of the screen.

2.2.0 (Jul 7 2017)

• Added compatibility with API 100019.
• Added back an option in version 1.x to displace the Magicka, Health, and Stamina bars either further apart or closer together.
• Added new option to prevent your Health bar from fading while shield effects are active.
• Changed options to switch target's frame position to the bottom of screen to Never, Always, or Automatic (only during combat).
• Drop option to force attribute bars to always show, since it's now built into the game.

2.1.0 (Feb 10 2017)

• Added compatibility with API 100018.
• Expanded absolute value to show all digits.
• When showed along the absolute value, the percentage now appears inside parenthesis.
• When the bars are set to always show interface setting changes are now seen immediately.

2.0.1 (Aug 27 2016)

• Add compatibility to API 100016.
• Update LibAddonMenu to 2.0r22.
• Change license to the MIT.

2.0.0 (Jun 2 2016)

• Version 2 overhaul.
• Add compatibility to API 100015.
• New option to prevent attribute bars from fading replaces the previous fine control of opacity.
• New option to toggle target's unit frame position between Top and Bottom replaces the slider to set it's exact offset.
• Dropped the option to show text over the attribute bars (since the game now comes with this option).
• The option to display resource text over the bars now uses a slightly bigger font.
• Added a percent sign (%) after the text when it's set to show percentage only.
Optional Files (0)


Archived Files (20)
File Name
Version
Size
Uploader
Date
2.2.1
53kB
haggen
01/26/19 08:16 AM
2.2.0
48kB
haggen
07/06/17 11:08 PM
2.1.0
46kB
haggen
02/10/17 09:36 PM
2.0.1
45kB
haggen
08/28/16 02:12 PM
2.0.0
43kB
haggen
06/02/16 07:35 PM
1.15
23kB
haggen
11/21/15 07:56 PM
1.14
36kB
L8Knight
04/06/15 04:17 PM
1.13
32kB
L8Knight
11/03/14 11:58 PM
1.12
31kB
L8Knight
09/17/14 09:26 PM
1.11
30kB
L8Knight
07/03/14 09:51 AM
1.10
30kB
L8Knight
06/23/14 08:53 AM
1.9
11kB
L8Knight
05/23/14 05:43 AM
1.8
11kB
L8Knight
04/13/14 09:57 PM
1.7
11kB
L8Knight
04/13/14 09:22 AM
1.6
9kB
L8Knight
04/12/14 02:21 PM
1.5
9kB
L8Knight
04/12/14 10:55 AM
1.4
9kB
L8Knight
04/12/14 09:15 AM
1.3
9kB
L8Knight
04/06/14 06:45 PM
1.2
9kB
L8Knight
04/04/14 07:51 PM
1.1
3kB
L8Knight
03/17/14 05:59 PM


Post A Reply Comment Options
Unread 04/15/14, 12:08 AM  
givver

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Adjust Y location

Originally Posted by L8Knight
Originally Posted by givver
Would it be possible to move the Y offset of the Magick and Stamina bars above the health bar and move them closer together. I made this modification myself in an early version of your addon but I can't figure out how to do it in the current version.

I would like to position the bars as follows.

XXXXMagickaXXXX XXXXStaminaXXXX
. . . . . . . .XXXXXHealthXXXXX

Great Addon!
This request I'm not sure about. I think it gets away from the simplified nature of the addon. I'll keep it on my todo list though.

If you want to venture out into the land of lua, the function to look at is SIAB.RefreshAttributeBars(). If you change the X and Y offsets for the SetAnchor() calls that should be you what you want, I think. If you do end up making changes or have a screenshot handy of your old setup I'd be interested in seeing it.
.
Here is a screenshot of my old setup.



Here is how I modified the old code to put the Attribute Bars in those locations.

Lua Code:
  1. local isValidAnchor, point, relativeTo, relativePoint, offsetX, offsetY = parent:GetAnchor(0)
  2.             local healthBar = _G["ZO_PlayerAttributeHealth"]
  3.             -- Adjust both bars to the left/right by half of the width of the health bar
  4.             -- local shiftAmount = healthBar:GetWidth() - healthBar:GetWidth() - ( healthBar:GetWidth() / 2.5)
  5.             local shiftAmount =  -(healthBar:GetWidth() / 2.5)
  6.             local shiftYAmount = - healthBar:GetHeight()
  7.             if (stats[i] == "Magicka") then
  8.                 offsetX =  -shiftAmount
  9.                 offsetY = shiftYAmount * 1.45
  10.                 parent:ClearAnchors()
  11.                 -- Set a new anchor point relative to the health bar in the center
  12.                 parent:SetAnchor(point, healthBar, relativePoint, offsetX, offsetY)
  13.             elseif (stats[i] == "Stamina") then
  14.                 offsetX =shiftAmount
  15.                 offsetY = shiftYAmount * 1.45
  16.                 parent:ClearAnchors()
  17.                 -- Set a new anchor point relative to the health bar in the center
  18.                 parent:SetAnchor(point, healthBar, relativePoint, offsetX, offsetY)
  19.             end
Report comment to moderator  
Reply With Quote
Unread 04/13/14, 05:59 PM  
Giznat

Forum posts: 0
File comments: 14
Uploads: 0
Thank you for the option to not move target reticle!
Report comment to moderator  
Reply With Quote
Unread 04/13/14, 02:00 PM  
L8Knight
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 83
Uploads: 4
Re: Adjust Y location

Originally Posted by givver
Would it be possible to move the Y offset of the Magick and Stamina bars above the health bar and move them closer together. I made this modification myself in an early version of your addon but I can't figure out how to do it in the current version.

I would like to position the bars as follows.

XXXXMagickaXXXX XXXXStaminaXXXX
. . . . . . . .XXXXXHealthXXXXX

Great Addon!
This request I'm not sure about. I think it gets away from the simplified nature of the addon. I'll keep it on my todo list though.

If you want to venture out into the land of lua, the function to look at is SIAB.RefreshAttributeBars(). If you change the X and Y offsets for the SetAnchor() calls that should be you what you want, I think. If you do end up making changes or have a screenshot handy of your old setup I'd be interested in seeing it.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 10:54 PM  
givver

Forum posts: 0
File comments: 2
Uploads: 0
Adjust Y location

Would it be possible to move the Y offset of the Magick and Stamina bars above the health bar and move them closer together. I made this modification myself in an early version of your addon but I can't figure out how to do it in the current version.

I would like to position the bars as follows.

XXXXMagickaXXXX XXXXStaminaXXXX
. . . . . . . .XXXXXHealthXXXXX

Great Addon!
Last edited by givver : 04/13/14 at 10:39 AM.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 10:23 PM  
L8Knight
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 83
Uploads: 4
Originally Posted by Giznat
Seems to option to position the target bar back to the top of the screen under the compass is missing. Can we have it back pretty please I do notice there is a slider, what was the default value if this is the route we're going to have (going forward in updates)?
Looks like everyone just wants everything. I have something working that will allow the original position or any customizable vertical position. That should accommodate everyone. Right? I was testing it when the servers went down. I'll have to finish it up tomorrow.
Last edited by L8Knight : 04/12/14 at 10:23 PM.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 07:47 PM  
Giznat

Forum posts: 0
File comments: 14
Uploads: 0
Seems to option to position the target bar back to the top of the screen under the compass is missing. Can we have it back pretty please I do notice there is a slider, what was the default value if this is the route we're going to have (going forward in updates)?
Last edited by Giznat : 04/12/14 at 07:49 PM.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 02:44 PM  
L8Knight
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 83
Uploads: 4
Re: target reticle

Originally Posted by chazz422
Hope to see this change incorporated in your next release .

BTW, excellent addon. Simple, yet elegant.
You bet. Thanks for the contribution and compliment.

Report comment to moderator  
Reply With Quote
Unread 04/12/14, 02:37 PM  
chazz422

Forum posts: 1
File comments: 10
Uploads: 0
target reticle

I made another change to the lua to prevent moving the target reticle if the offset is zero. This way, the addon would allow the system to position the reticle itself when I prefer the default position. Some addons will auto adjust the reticle to move it down the screen some when needed (wykkyd's framework info bar does this). Here is the change I made:

On line 115, I changed:

Code:
offsetY = SIAB.vars.targetReticleOffset
To this:

Code:
if (SIAB.vars.targetReticleOffset > 0) then
	offsetY = SIAB.vars.targetReticleOffset
end
Now, I'm able to set the offset to zero in the settings and have it where the system places it instead of absolute zero coord at the top of the screen. Hope to see this change incorporated in your next release .

BTW, excellent addon. Simple, yet elegant.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 02:18 PM  
L8Knight
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 83
Uploads: 4
Originally Posted by Flak
Originally Posted by L8Knight
If you want to help debug it, it would be helpful to see what's in your saved variables file. That variable was renamed in 1.4, but the :NewAccountWide() API should have talked care of adding the new variable from the defaults. I must not understand how that function works.

If you don't want to help, that's cool. If you delete the saved variables for this addon it should fix the problem. Make sure the game is completely shutdown when you remove the file.

<Elder Scrolls Online>/live/SavedVariables/SlightlyImprovedAttributeBars.lua

Edit: or you should be able to go into the configuration window and adjust the "Attribute Bar Transparency" to a different value (say 9). That should cause that variable to be set. You can then go and set it back to 10 if you want.
I delete my saved variables everytime I update an addon. That error message occurred before and after the saved variables were deleted.
I figured it out. I made a typo. Too much copying code between addons. If you run my Slightly Improved Experience Bar it should fix the error. Otherwise, I'll upload a fix soon.

Edit: Yes, what @chazz422 said.
Last edited by L8Knight : 04/12/14 at 02:19 PM.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 02:17 PM  
chazz422

Forum posts: 1
File comments: 10
Uploads: 0
typo in lua

The latest NIL bug is a result of a typo in the LUA on line 225

Code:
if (SIEB.vars.attributeBarAlpha == 0.0) then return end
... should be ...

Code:
if (SIAB.vars.attributeBarAlpha == 0.0) then return end
It seems SIEB is the typo and causing the null pointer exception.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 01:37 PM  
Flak

Forum posts: 0
File comments: 46
Uploads: 0
Originally Posted by L8Knight
If you want to help debug it, it would be helpful to see what's in your saved variables file. That variable was renamed in 1.4, but the :NewAccountWide() API should have talked care of adding the new variable from the defaults. I must not understand how that function works.

If you don't want to help, that's cool. If you delete the saved variables for this addon it should fix the problem. Make sure the game is completely shutdown when you remove the file.

<Elder Scrolls Online>/live/SavedVariables/SlightlyImprovedAttributeBars.lua

Edit: or you should be able to go into the configuration window and adjust the "Attribute Bar Transparency" to a different value (say 9). That should cause that variable to be set. You can then go and set it back to 10 if you want.
I delete my saved variables everytime I update an addon. That error message occurred before and after the saved variables were deleted.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 01:02 PM  
L8Knight
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 83
Uploads: 4
If you want to help debug it, it would be helpful to see what's in your saved variables file. That variable was renamed in 1.4, but the :NewAccountWide() API should have talked care of adding the new variable from the defaults. I must not understand how that function works.

If you don't want to help, that's cool. If you delete the saved variables for this addon it should fix the problem. Make sure the game is completely shutdown when you remove the file.

<Elder Scrolls Online>/live/SavedVariables/SlightlyImprovedAttributeBars.lua

Edit: or you should be able to go into the configuration window and adjust the "Attribute Bar Transparency" to a different value (say 9). That should cause that variable to be set. You can then go and set it back to 10 if you want.
Last edited by L8Knight : 04/12/14 at 01:27 PM.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 12:45 PM  
Flak

Forum posts: 0
File comments: 46
Uploads: 0
Also getting the error with 1.5.. except in 1.5 it has changed to line 225. NA Client, English language

Last edited by Flak : 04/12/14 at 12:49 PM.
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 11:25 AM  
rajamakii
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 37
Uploads: 1
still having issue with 1.5? anything i should try?
Report comment to moderator  
Reply With Quote
Unread 04/12/14, 10:57 AM  
L8Knight
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 83
Uploads: 4
Yes, I uploaded 1.5 to fix this. Thanks for the reports. The update callback fires much faster on Windows versions it seems. Looks like it can fire even before variables are loaded.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: