How do I specify to Falagard that it should tile the border imagery of a window?
It seems strange at best that it would allow a tiled background but not tiled edges, so surely I'm just missing something?
Tiling window edges in Falagard?
Moderators: CEGUI MVP, CEGUI Team
You mean to say that I'll need to build a window completely on my own? Using a separate image component for the main window / background, then all four edges, then all four corners (one being a close button and one being the resize point)? Effectively losing FrameWindow as a class, and having to fake it with my own images?
It seems like it would be far more efficient for me to just add the property and modify the rendering code of the window.
It seems like it would be far more efficient for me to just add the property and modify the rendering code of the window.
I think the disconnect here, is that FrameWindow and FrameComponent are only incidentally similar. FrameWindow is a widget which acts like a resizable window and which has a titlebar, a close box, and resize handles. FrameComponent is a rendering component which renders its area as corners, stretched edges, and a custom-formatted center. There's no real NEED for FrameComponent; it could easily be implemented as nine ImageryComponents instead (or three ImageryComponents and one FrameWindow, or two FrameWindows, or....), and FrameWindow doesn't care whether it's rendered as FrameComponents or ImageryComponents. In your case, if you want all four edges tiled, you'd be doing it the nine-ImageryComponents way. (Or, more likely, six ImageryComponents, and more in the close box and the titlebar.) Regardless of how you render it, though, the functionality is preserved.
Who is online
Users browsing this forum: No registered users and 13 guests