Hi
I m reletively new to CEGUI so need a lil help.
I basically want to create 2 different buttons, such that both have different images (each for normal, hover, pushed state). I have tried out that through the scheme & imageset files but to no avail. I'll be grateful if anyone cud give a solution.
2 buttons with different images
Moderators: CEGUI MVP, CEGUI Team
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: 2 buttons with different images
PushButton has support for custom imagery.
Take a look here http://www.cegui.org.uk/api_reference/c ... utton.html for a list of the PushButton functions.
The ones you're interested in are: get/setHoverImage etc.
and setCustomImageryEnabled and ...AutoSized
Maybe you don't want the standard imagery. Then setStandardImageryEnabled might be of interest too...
HTH
(I'm a little in a hurry, therefore the not-so-detailed reply...)
Take a look here http://www.cegui.org.uk/api_reference/c ... utton.html for a list of the PushButton functions.
The ones you're interested in are: get/setHoverImage etc.
and setCustomImageryEnabled and ...AutoSized
Maybe you don't want the standard imagery. Then setStandardImageryEnabled might be of interest too...
HTH
(I'm a little in a hurry, therefore the not-so-detailed reply...)
Re: 2 buttons with different images
Please see my post:
http://www.cegui.org.uk/modules/newbb/v ... umpost4673
The example is by Lua Script but it shows you how it can be done on a per button basis.
You could always subclass and create default images in the const section as well.
How this helps.
http://www.cegui.org.uk/modules/newbb/v ... umpost4673
The example is by Lua Script but it shows you how it can be done on a per button basis.
You could always subclass and create default images in the const section as well.
How this helps.
[font=Verdana][size=xx-small]"It's not hard to stand out when the general level of competence is so low" -EMH[/size][/font]
namik@flashmail.com
namik@flashmail.com
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests