Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Progress bar / animted elements in ECW

Explorer ,
Jul 04, 2024 Jul 04, 2024

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.

TOPICS
SDK
658
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 04, 2024 Jul 04, 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.

Translate
Community Expert ,
Jul 04, 2024 Jul 04, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 04, 2024 Jul 04, 2024

Thanks! giving it a try now.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 04, 2024 Jul 04, 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...).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 04, 2024 Jul 04, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 04, 2024 Jul 04, 2024
LATEST

i'll try update paramui, that seems far less taxxing.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines