Need a piece of advice : how to make an inventory ?

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

User avatar
Ceacy
Just popping in
Just popping in
Posts: 16
Joined: Sun May 22, 2005 20:28
Location: France, Paris.
Contact:

Need a piece of advice : how to make an inventory ?

Postby Ceacy » Wed Dec 07, 2005 20:53

Hi,
I would like to make an interface for a container in a rpg, and, thus, i'm looking for a widget like a combodroplist, but with images instead of text for the items, agenced in rows and colums (like on the picture). Does this kind of widgets exist ?
Image

In addition, how can i make a menu appear when i click right onto an item, whereas another action is performed when i left click on it ?

Thanks,

Ceacy.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Need a piece of advice : how to make an inventory ?

Postby martignasse » Thu Dec 08, 2005 12:18

hi,

the widget type you'r searching for don't exist for now :(
You'll have to create it from the combodroplist by specialysing the item type.

note that if you can wait for the 0.5 version, CEGUI will be greatly extended in this erea.

For the way to manage click actions on you'r items, you have to subscribe event for these actions (leftclick and rightclic) and do what you want in there callback fonction (like puping a menu or whatever).

is it enough for a start ?

User avatar
Ceacy
Just popping in
Just popping in
Posts: 16
Joined: Sun May 22, 2005 20:28
Location: France, Paris.
Contact:

Re: Need a piece of advice : how to make an inventory ?

Postby Ceacy » Thu Dec 08, 2005 16:48

Yes, thanks ;)
I will try to use Drag&Drop containers, with static images in, instead of a combodroplist.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests