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

Create script elements on button click?

Explorer ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

I wan't to create a new panel and 2 buttons when a button is clicked, but I just can't figure out why the code I have so far doesn't work.

 

Can somebody help me out?

TOPICS
Scripting

Views

175

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

LEGEND , Jul 12, 2021 Jul 12, 2021

If I remeber correctly you have to define the layouts already at the start and then only show/ hide them. They cannot appear in nested functions because they need to register right at the start of the script. There's several threads on this as it also pertains to changing icons and button lables dynamically. Spending a bit of time with a search may dig them up.

 

Mylenium

Votes

Translate

Translate
LEGEND ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

LATEST

If I remeber correctly you have to define the layouts already at the start and then only show/ hide them. They cannot appear in nested functions because they need to register right at the start of the script. There's several threads on this as it also pertains to changing icons and button lables dynamically. Spending a bit of time with a search may dig them up.

 

Mylenium

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