Disable a GUI dynamically

For general discussion related FlowStone
Post Reply
chjan
Posts: 30
Joined: Wed Oct 22, 2008 3:15 pm

Disable a GUI dynamically

Post by chjan »

I want the user to select number of instances of a GUI-containing object.

A GUI object can be set to Visible or Invisible. How do you do the same thing dynamically, i.e. per user action?
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Disable a GUI dynamically

Post by Tepeix »

Hi,

Not sure it's the best method but here is one.
Maybe it's better to modify all control with a boolean input and use a selector and a redraw inside them.
But this way the controls could be not modified but just placed in a module.
(Don't know if there's some drawback like loosing time to redraw on base of a ghost v input ??

Edit: Finally i think that the method is ok.
This version is more similar to what is done when modifying one control.
(just connecting nothing to the v selector for the first input us another module)
Attachments
Control Visibility3.fsm
Edit: visible when inside another module
(74.07 KiB) Downloaded 328 times
Last edited by Tepeix on Mon May 20, 2024 5:50 pm, edited 1 time in total.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Disable a GUI dynamically

Post by RJHollins »

That works nice.

Thanks !
chjan
Posts: 30
Joined: Wed Oct 22, 2008 3:15 pm

Re: Disable a GUI dynamically

Post by chjan »

Perfect! I tried something very similar yesterday but did not work. I suspect I forgot the redraw feature. This variant could easily be part of the standard module as I see it. Very handy.

Thanks.
Post Reply