Question About RegisterForUpdate
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. |
It looks like this feature is already in this addon: http://www.esoui.com/downloads/info7...ibuteBars.html
/edit: you can see how they managed to do it |
Quote:
|
Quote:
ZO_PlayerAttributeMagickaBar.timeline Pawkette's "LibAnimation-1.0" could help. |
Finally figured this one out, and it was simple enough i'm annoyed at myself for not looking before. Each of the attributes does use animations to fade as Garkin said, so I looked into the metadata in ZGoo, found the timeline and was as simple as setting the alpha for the animations.
Lua Code:
|
All times are GMT -6. The time now is 08:58 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI