Jump to content

How change WidgetWindow skin


photo

Recommended Posts

Hi. I need next UI-functionality:

WidgetLabel, that change size in dependens of text size; With this changing I need equivalent change of background image size (WidgetSprite).

 

I start realize this with WidgetVBox that contains WidgetSprite and WidgetLabel, but I get problem: when I use setTransform() method to change sprite size - this transform strech all sprite and "kill" image border. I need mark image's ragions for "rigth" scaling like in manual's chapter "Skin Layout", (is it possible and how can I do this?).

Or I need use WidgetWindow instead WidgetVBox with label? If yes, how can I change window skin for my game window?

Thanks.

Link to comment
×
×
  • Create New...