lars.saalbach Posted March 8, 2013 Posted March 8, 2013 Hey Unigine, stencil isn't working for sprites. <hbox stencil="1" width="10" export="1" name="statusbarLayer"> <sprite texture="imagepath.png"/> </hbox> If I'm using a label: <hbox stencil="1" width="10" export="1" name="statusbarLayer"> <label><text>012345678910111213</text></label> </hbox> it work's neither. (updated) In my opinion thats a bug isn't it? PS: I tried to set the align in texture like: align="expand" etc. and it didn't work aswell. Greetings Lars
manguste Posted March 12, 2013 Posted March 12, 2013 As far as I know, stencil is supported only for WidgetVBox and WidgetGroupBox.
lars.saalbach Posted March 12, 2013 Author Posted March 12, 2013 Hey Manguste, HBox is deduced of VBox - so this feature should be inherited there aswell like your documentation. But at all with a VBox or a GroupBox it doesn't work.
manguste Posted March 12, 2013 Posted March 12, 2013 Oops, indeed, my bad. Please send us a minimal test scene in this case.
lars.saalbach Posted March 12, 2013 Author Posted March 12, 2013 Hey Manguste, in attachment the example. Greets Lars stencil.rar
silent Posted March 12, 2013 Posted March 12, 2013 Thanks, this issue is passed to the developers. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
manguste Posted March 21, 2013 Posted March 21, 2013 Lars, The idea is as follows: if stencil is set for a container, it will cut widgets by its bounds. And that happens when its childen you want to cut have the align="overlap" flag. Children that do not have this flag set, will simply increase the container size. And since recalculated bounds include the child widget in this case, there will be absolutely no effect by setting a stencil flag.
lars.saalbach Posted March 21, 2013 Author Posted March 21, 2013 Hey Manguste, thanks for your tip, I'll test it this evening and give feedback. At all it would be cool to find such tips in the documentation. Greetings Lars
Recommended Posts