FrameComponent tiling not only for background

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

TomasRiker
Just popping in
Just popping in
Posts: 1
Joined: Sat Jan 20, 2007 15:45

FrameComponent tiling not only for background

Postby TomasRiker » Sat Jan 20, 2007 16:29

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

LennyH
Quite a regular
Quite a regular
Posts: 92
Joined: Thu Nov 30, 2006 20:50

Postby LennyH » Mon Jan 22, 2007 15:17

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 :)


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 5 guests