Skip to main content
Shoggoths_Son
Participating Frequently
July 4, 2024
Answered

Progress bar / animted elements in ECW

  • July 4, 2024
  • 1 reply
  • 724 views

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 has been closed for replies.
Correct answer shachar carmi

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.

1 reply

shachar carmiCorrect answer
Braniac
July 4, 2024

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.

Shoggoths_Son
Participating Frequently
July 4, 2024

Thanks! giving it a try now.

 

Braniac
July 4, 2024

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...).