Imgui deactivate the use of a checkbox

hello!

I want to put some widget in IMGUI to be not usable or greyed out under certain condition. is that feasible?
for example, let’s assume I have a global ON/OFF switch. If that switch is on OFF, I want all the the sub check boxes to be visible but greyed out and not usable….

any ideas? thank you!!!

Hey,

If you enable Advanced nodes, you will find a Disabled region. If you set its input pin to True, all widgets that are inside will be disabled.

1 Like

What Sebescudie said. Also, pro tipp: Make yourself process nodes for all the common UI elements you use with ImGui. Then you can add all these options to it and re-use it everywhere. Like mentioned above I wrapped the slider in a disabled region to be able to disable it easily if I need:

So that you don’t have these super long nodes everywhere with tons of input pins, you can set most of them to be optionally visible:

Then where you use the slider you can specify which inputs to show:

This is what it looks like in the end:

custom-slider

3 Likes

thanks @sebescudie and @seltzdesign !

can’t find it even in Advanced mode…
Disable Region is not showing up for me. I got Disable node but it’s not a region
is it from a specific package? (using gamma 7.0)
I am thinking : could it be replace by a IF region? (it wouldn’t be greyed out tho)

Thanks @seltzdesign
I could use the visibility option indeed
I am not in the stage of the customization yet… (I have to get my hands dirty) but that’s and interesting option
for now, I am connecting the backend to the frontend
I will try this week!

Anyway, you guys rock!

If you go to the ImGui category and then type Disabled, it should appear.

Are you sure you have referenced the ImGui nuget?

imgui-disabled

You should have either ImGui.Skia or ImGui.Stride enabled in your Dependencies:

1 Like

ahhhhhhhhhh! I didn’t activate the Experimental option palette!
found it! thank you @seltzdesign

@sebescudie @seltzdesign
oh my goodness… Disabled Region is THE thing I was looking for
now that I am getting used to ImgUI, it works well….
thank you <3

god, I love vvvv !!!

3 Likes