Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks! giving it a try now.
Copy link to clipboard
Copied
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...).
Copy link to clipboard
Copied
I tried calling invalidate rect (null ptr), and attaching the immediate redraw flag, and I wasn't getting the same UI polling I expected, but the idle hook method totally worked a few seconds ago.
Copy link to clipboard
Copied
i'll try update paramui, that seems far less taxxing.