Page 1 of 1

FrameComponent tiling not only for background

Posted: Sat Jan 20, 2007 16:29
by TomasRiker
Hi,

I noticed that the FrameComponent does tiling (if you set <HorzFormat type="Stretched" /> and <VertFormat type="Stretched" />) only for the background image.

This is very restricting to skin designers. Often we want some kind of repeating pattern on a button or a window's frame, not only for the background but also for the left, right, top and bottom edges. In it's current version, CEGUI does a stretch operation for all edges, no matter what formatting you choose. As a result, you can only use images or edges that don't contain much visible detail on the one axis, because it would just look blurred when stretched.

I know that this would be an easy thing to add, since it is also possible for the background image, but I'm not very familiar with CEGUI yet.

David

Posted: Mon Jan 22, 2007 15:17
by LennyH
Indeed, you are correct in regards to that behavior. Frustrating, isn't it? While I wish I could say there was a simple property/setting that could help you out, I know of no such thing.

However, the link I'll give you here provides a solution to this problem as well as another that you may not even be aware of yet =p The downside ( or, if you like, the upside ) is that it'll take you a little deeper into manipulating the looknfeel file.

http://www.cegui.org.uk/phpBB2/viewtopic.php?t=2146

Have at it. Bump that topic with questions if you like, or post here :)