In Verse, how do I create editable props that are conditional upon checkboxes?

I’d like to create a property that is only used if a checkbox is toggled on. I’ve seen this in existing devices where you click a checkbox and a nested property is made available.

Ex:
@editable CustomSkin : creative_prop = creative_prop{}

pseudo code:

if(UseCustomSkin = true){
...use CustomSkin
}

I found this old post that does what I want, but it is not shown in Verse…

Is this possible in Verse and if so then what is the syntax?

You can use a logic editable

@editable
    SomeValue:logic = false

and then when you instatiate the prop you can pass that in? Or if it’s a verse device, then that editable will apply to that device.

Hey, no I don’t think this feature exists yet.
I’d like to have that too, maybe you can still build something clean by using child classes and exposing different variables in those classes :man_shrugging:

But it really depends on what you’re going for exactly

Configuring how a team wins a round can be tricky when just using exiting devices and if there are multiple teams… I am trying to create a custom “Team” class that has props like “Can Team Win”? … and if the prop is true then expose nested props like… “Team Wins with (X) Elims:” or “Team Wins if survive to (X) Minutes:” … something like that… I realize I can just add all those props, but then at design time, it can be confusing to see props that really have no affect unless a prerequisite is toggled on.

Also, does anyone know how to give an editable prop a custom name or help text?

… and I tried creating an editable as a tuple… not supported.