Transpirity of a part of a widget

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

RecyclingDuck
Just popping in
Just popping in
Posts: 13
Joined: Tue May 15, 2007 20:17
Contact:

Transpirity of a part of a widget

Postby RecyclingDuck » Sat Jun 02, 2007 14:40

Hi Guys!

I've go a question:
Is there a snug way of changing the transpirity of a part of a widget - for example of the "ClientBrush" (of TaharezLook) ?

My will is, that the border of a window are still total visible (Aplha/Transpirity=1) and that the background is e.g Alpha = 0.5.

Hope u understand me ;)
- Note: I'm from Germany, please tell me if i make some mistakes - that would help me ;)

Thanks!

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Sat Jun 09, 2007 11:14

In code, I don't see a possibility to do this. What you can do, is to change the background image to be transparent already.

daves
Home away from home
Home away from home
Posts: 253
Joined: Thu Feb 02, 2006 20:12

Postby daves » Tue Jun 12, 2007 12:50

I have the same need, assuming that I understand what you are looking for.

If indeed you want the frame to be alpha = 1, and the inside of the frame to be translucent (alpha < 1) then I think this is achievable for all frames (other windows would be similar in nature) through an appropriate looknfeel modification (which I believe can be done programattically).

See the following image for an example of a frame that is not transparent and yet the inside of the frame is:

Image

and here you see that you even have control over the transparency of the frame and the titlebar (though its hard to see given its width that the red frame is actually alpha<1)

Image

daves
Home away from home
Home away from home
Posts: 253
Joined: Thu Feb 02, 2006 20:12

Postby daves » Tue Jun 12, 2007 13:28

How does one get access to, and modify, the looknfeel programmatically?


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 18 guests