Disabling custom pushbuttons

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

User avatar
J_A_X
Quite a regular
Quite a regular
Posts: 72
Joined: Wed Jun 29, 2005 13:18
Contact:

Disabling custom pushbuttons

Postby J_A_X » Wed Aug 17, 2005 16:48

On my screen I have many custom pushbuttons that I made using different images for each state of the button. I noticed that when I disable said button, it disapears completly from the screen but when I disable normal buttons, it becomes blacker which is the effect I want to achieve with my custom buttons.

Is there an easy way to do this or do I have to change code around in the pushbutton class?

Thanks

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

Re: Disabling custom pushbuttons

Postby CrazyEddie » Thu Aug 18, 2005 13:26

Set a custom image for the disabled state (PushButton::setDisabledImage, IIRC). There are no per-state colour settings - from 0.4.0 onwards we will be pushing the "Falagard" xml skinning which allows you to do this kind of customisation much more easily.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests