editbox alpha

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
placebo
Just popping in
Just popping in
Posts: 3
Joined: Wed Jan 12, 2005 12:06

editbox alpha

Postby placebo » Wed Dec 01, 2004 16:15

Hi,

I have an editbox, I want to set alpha to this editbox, but I don't want that the text entered in this editbox is affect by the alpha. How can I do that ?
Thanks.

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

editbox alpha

Postby CrazyEddie » Thu Dec 02, 2004 10:17

Hi,

Presently there is no discreet setting for the text alpha; it is tied to that of the windget itself.

There are two possible solutions, although, depending upon your exact requirements, neither may be ideal.

1) Modify the imageset image file and set the alpha for the editbox components to whatever you want. Run the window with 1.0f alpha; the container will get its alpha from the imagery and the text will get it's alpha from the window setting.

2) Modify the code for the concrete editbox type to render the text with 1.0f alpha.

As I say, neither of these are ideal. A setting to allow better control may be introduced at some stage...

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests