jsebens Posted May 15, 2015 Posted May 15, 2015 It would make consistent styling within UI elements a lot simpler if this were possible: <variable name="myPadding" value="5"/> <hbox padding="myPadding"></hbox> <hbox padding="myPadding"></hbox> It would be even better if CSS-style classes were available.
unclebob Posted May 19, 2015 Posted May 19, 2015 Thanks for the suggestion, Jeremy! I'll talk with the team yet can't guarantee it'll be in the next SDK release as we have tasks with higher priority now.
unclebob Posted May 19, 2015 Posted May 19, 2015 By the way, you can try to use reference feature which allows you to make pre-made ui templates and re-use them. They won't solve your problem completely but at least they might be handy. Here's the article about them: https://developer.unigine.com/en/docs/1.0/code/gui/ui#reference
Recommended Posts