View Single Post
04/10/14, 10:38 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Kith View Post
I'm working on a mod to 'enhance' the stock UI rather than replace it for things like attribute bars and one of the options I want to offer is to set a minimum-fade (alpha) level for the bars out of combat. Now i'm aware of this function:

EVENT_MANAGER:UnregisterForUpdate("ZO_PlayerAttributeMagickaFadeUpdate")

That will stop the bars fading entirely, but then requires that I need to hook a couple of events to manually change alpha levels as I go, and also the method used by 'improvedattributebars' that runs an OnUpdate handler to constantly force the alpha back up to the desired level.

Is there anyway to find out how the FadeUpdate function is working and modify it to set a minimum alpha level, as in, does anybody have a full access to the current UI and would be willing to nudge over a snippet so I could mess with such? I'd like to maintain the current fading in/out that the UI has just without it fading entirely and I don't really want to use OnUpdate for this.
As far as I know, fading is done using animations, so you will need to try to do something with:
ZO_PlayerAttributeMagickaBar.timeline

Pawkette's "LibAnimation-1.0" could help.
  Reply With Quote