Button with transparent region

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Handy
Just popping in
Just popping in
Posts: 7
Joined: Thu Apr 09, 2009 17:02
Location: Sterling Heights, MI

Button with transparent region

Postby Handy » Wed May 19, 2010 21:48

Hi,
I am a beginner, however I love your code base. :D
Currently I can make "normal " buttons that are more or less solid throughout.
However, I am trying to make a button that only where only the edges are visible and the entire button interior is transparent.

Is their some way to define this in the looknfeel xml file?
I have made all of my own skin, looknfeel, and imageset, however I based most of it off of the Vanilla set.

Hopefully this is enough information to give me a clue. ;)

Thanks in advance.

--Handy

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

Re: Button with transparent region

Postby CrazyEddie » Thu May 20, 2010 08:55

The way to do this will depend on how your WidgetLook that defines the button is currently organised. If you have a FrameComponent to define the button imagery, you can leave out the Background image specification and the background will then be totally transparent (because no image will be drawn).

Depending how closely you followed Vanilla, since it uses a lot of 'shared' definitions, you can switch from "Frame" in the "Vanilla/Shared" definitions to "FrameOnly" and you should magically get a frame with no background ;)

CE.

Handy
Just popping in
Just popping in
Posts: 7
Joined: Thu Apr 09, 2009 17:02
Location: Sterling Heights, MI

Re: Button with transparent region

Postby Handy » Thu May 20, 2010 20:31

Thanks.
That works perfectlyl. :)


--Handy


Return to “Help”

Who is online

Users browsing this forum: No registered users and 19 guests