eugene.litvinov Posted January 17, 2011 Share Posted January 17, 2011 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
eugene.litvinov Posted January 19, 2011 Author Share Posted January 19, 2011 Decision: I divide background sprite to 3 parts: top, middle and bottom, and change height only for middle part. Link to comment
Recommended Posts