libzeug icon indicating copy to clipboard operation
libzeug copied to clipboard

Add an annotation to make properties invisible in GUI

Open rlux opened this issue 11 years ago • 4 comments

rlux avatar Oct 21 '13 15:10 rlux

is this still needed? you could just remove the property from the group.

mjendruk avatar Jul 23 '14 13:07 mjendruk

Yes, it's still needed. Sometimes, we want a property to be accessible, e.g. via scripting, but not visible in the UI (e.g., for debug purposes). This should just be a hint to the UI, not to show a widget for the property

sbusch42 avatar Jul 23 '14 13:07 sbusch42

you could put the property in two different groups. the first one is used for the ui, the second could be for scripting.

mjendruk avatar Jul 23 '14 13:07 mjendruk

Yes, I could do that, but that would be overly complicated. I organize properties in a way that they belong to an object, and then I just pass that object to the UI, the scripting etc. I don't want to have to maintain different sets of property groups for GUI and scripting. Please keep in mind that there are different styles of using properties here ...

sbusch42 avatar Jul 23 '14 13:07 sbusch42