Add pictures and words

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

zhk450861222
Just popping in
Just popping in
Posts: 6
Joined: Wed Oct 14, 2009 10:21

Add pictures and words

Postby zhk450861222 » Mon Dec 21, 2009 07:03

CE:
Thank you to the answer before.
Now I want to achieve in the list box add pictures and words within a Item.
How to do?
Hope to obtain your help!

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

Re: Add pictures and words

Postby CrazyEddie » Tue Dec 22, 2009 10:14

I'm not sure how this question differs from the previous time you asked (viewtopic.php?t=4405).

Or are you now talking about the ListboxItem based Listbox as opposed to the ItemListbox? If this is the case, then you might be able to use the formatting tags if you're using 0.7.x, if you're using 0.6.x or earlier then you'd need to create a custom ListboxItem class.

CE.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: Add pictures and words

Postby scriptkid » Tue Dec 22, 2009 10:31

Indeed, like this one: http://www.cegui.org.uk/wiki/index.php/ ... istboxItem

Just replace 'checkbox' with 'image' ;)
Check out my released snake game using Cegui!

zhk450861222
Just popping in
Just popping in
Posts: 6
Joined: Wed Oct 14, 2009 10:21

Re: Add pictures and words

Postby zhk450861222 » Wed Dec 23, 2009 09:59

Thanks to reply!
The last is simply add pictures,
Now is to achieve images and text in the same Item.

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

Re: Add pictures and words

Postby CrazyEddie » Thu Dec 24, 2009 08:40

If you're using 0.7.x you can embed images using the control tags being discussed elsewhere, for example, set the item text to:

Code: Select all

"This is an item [image='set:TaharezLook image:MouseArrow'] with an embedded image"


If you're not using 0.7.x, then you have to create your own solution!!

CE.

zhk450861222
Just popping in
Just popping in
Posts: 6
Joined: Wed Oct 14, 2009 10:21

Re: Add pictures and words

Postby zhk450861222 » Thu Dec 24, 2009 09:50

Thanks!
I tried to do it.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 10 guests