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

Progress bar / animted elements in ECW

Community Beginner ,
Jul 04, 2024 Jul 04, 2024

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.

TOPICS
SDK

Views

106

Translate

Translate

Report

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.

Votes

Translate

Translate
Community Expert ,
Jul 04, 2024 Jul 04, 2024

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.

Votes

Translate

Translate

Report

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 Beginner ,
Jul 04, 2024 Jul 04, 2024

Copy link to clipboard

Copied

Thanks! giving it a try now.

 

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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 Beginner ,
Jul 04, 2024 Jul 04, 2024

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.

Votes

Translate

Translate

Report

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 Beginner ,
Jul 04, 2024 Jul 04, 2024

Copy link to clipboard

Copied

LATEST

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

 

Votes

Translate

Translate

Report

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