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.
editbox alpha
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
editbox alpha
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.
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 11 guests
