Skip to main content
Shoggoths_Son
Participating Frequently
Jul 4, 2024 9:36 PM UTC
Answered

Progress bar / animted elements in ECW

Is there a canonical way to make sure an ecw element receives draw calls? It seems like warp stabilizer just updates the label of a button repeatedly. I just don't know how to make sure an effect plugin consistently receives UI interaction commands.

This topic is closed to new replies. Start a new post to keep the conversation going.
shachar carmiCorrect answer
Community Expert
Jul 4, 2024 10:06 PM UTC

so...

you'll need to leech off of idle calls to do that. ECW ui bits get idle calls only when the cursor is within thier borders, so if that's good enough for you, you're good to go.

if you need the ecw to redraw regardless of the cursor position, you'll need to register an idle_hook, and during that event trigger a redraw using PF_RefreshAllWindows(). it's brutal, but will get the job done.

5 replies

shachar carmiCommunity ExpertCorrect answer
Community Expert
Jul 4, 2024 10:06 PM UTC

so...

you'll need to leech off of idle calls to do that. ECW ui bits get idle calls only when the cursor is within thier borders, so if that's good enough for you, you're good to go.

if you need the ecw to redraw regardless of the cursor position, you'll need to register an idle_hook, and during that event trigger a redraw using PF_RefreshAllWindows(). it's brutal, but will get the job done.

Translate
Shoggoths_Son
Participating Frequently
Jul 4, 2024 10:08 PM UTC

Thanks! giving it a try now.

 

Translate
Community Expert
Jul 4, 2024 10:15 PM UTC

of course if you're using the native ECW idle calls you're better off using softer redraw methods such as PF_InvalidateRect or perhaps PF_UpdateParamUI (it's been a while, so forgive me if i got one of these wrong...).

Translate