How to make Frame skin in the easy way

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

traibuidoi
Just popping in
Just popping in
Posts: 13
Joined: Tue Aug 05, 2008 08:31

How to make Frame skin in the easy way

Postby traibuidoi » Thu Oct 02, 2008 09:51

Hello CEGUI community ! i'm writting my plain game and i want to change the WindowsLook/Frame skin for my GUI

But i'm a programmer so i can't use photoshop to change windowlook.tga file . You khow , draw frame left ,frame right , frame top .v.v in pixels . With me , it's too hard :lol:

The same problem is raising when i try to change the button skin . It's too complex : hoverleft ,hover right , normal left , v.ect . But i found in the wiki tuturial : "how to make image button" article . Yeah , it is the easy way to change skin - you only need 4 images : normal image , hover image.. to change button skin :P

So how to change frame skin in the same easy way ? My Frame is just game's frame window , so it does not need title bar image , active image , inactive image , .ect . I think it only need one image for the active state :twisted:

What's code need to be change in look 'n' feel file to make new frame skin with only 1 image ? Is it possible ?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Oct 06, 2008 09:19

Hi there,

First, if you don't need all the extras that come with a FrameWindow, you have to ask whether this is the correct window to be using? :)

Anyway, with regards to the titlebar and close button - these have to be provided, although can be disabled via settings on the window (or at your option, sized and positioned such that they are never seen).

As far as the rendering portions are concerned, while the Falagard renderer for the FrameWindow has various required 'states' that must be supplied, you are free to leave these empty for the states that you do not need.

The content of the ImageryComponent parts referenced can be anything you like, and you should be able to borrow some ideas from other windows / widgets (like the Buttons ;) ).

I do not have enough time right at the moment for a fully fledged example - hopefully I have put you onto the right track, however :)

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests