Cabbage Logo
Back to Cabbage Site

GUI Editor Freakout

Up until now I’ve just been manually coding in my widgets w/o using the editor - mainly because of this issue: http://recordit.co/JBkHe19wcL

Each time I click on the GUI it appends all kinds of code to the editor.

When I remove the container and open the editor, if I change a knob, then it overwrites the Macro settings of all knobs, appending the Macro value to each knob instance: http://recordit.co/SdRcG6qhBh

It’s hard to see here what is going on, but you can see it is pretty messy :wink:

Wow, that’s awful! I’ll give it my immediate attention.

Just out of curiosity, is the closing Cabbage tag, </Cabbage> on a line of its own?

[edit] looks like the culprit alright. Shouldn’t be causing such an issue. I’ll fix this now, in the meantime, put it on it’s own line. Btw, you know you can’t select individual components in edit mode if they are part of a plant?

Thanks Rory - that solved it!

if I change a knob, then it overwrites the Macro settings of all knobs, appending the Macro value to each knob instance

Perhaps it’s by design but if you

  1. open the gui editor
  2. select an rslider with a $macro
  3. change a value within the menu

then the $macro parameters get appended to the rslider’s params: http://recordit.co/3sDM8LLK5f

Not be design. Definitely makes no sense for that to happen. I’ll look into it.

Thanks.

And unrelated - is there a way to remove the bevel effect on an inner circle of an rslider? For now I just set the alpha to 0 but it would be nice to have a variant shade (not the background) as a flat circle rather than one with a 3d effect.

I think you’re on the right track, set alpha to 0 and draw an image behind it:

image bounds(12, 22, 36, 36), colour(255, 255, 0, 255), corners(35)
rslider bounds(0, 10, 60, 60) range(0, 1, 0, 1, 0.001) colour(96, 23, 23, 255, 0)
1 Like

Perfect solution. Thanks.