Jump to content

[LE] SkyUI Widget help, how to do a fade out for a widget


Confessoru

Recommended Posts

I have a widget mod that displays current health, stamina and magica with a custom swf file, it's always visible. In the widget script I have a snippet from SKI_WidgetBase



function fadeTo(float a_alpha, float a_duration)
float[] args = new float[2]
args[0] = a_alpha
args[1] = a_duration
UI.InvokeFloatA(HUD_MENU, WidgetRoot + ".fadeOut", args)
endFunction

I need the widget icons to fade out when one of those 3 corresponding attributes is full, like with the vanilla meters. I tried doing it with PlayerRef.GetActorValuePercentage, but that means constant registering for updates, I couldn't figure out how to set it up properly. Is there a way to call directly on the vanilla meters like iHUD does it and then use FadeTo for it?


Edited by Confessoru
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...