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 ?
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.
Need a piece of advice : how to make an inventory ?
Moderators: CEGUI MVP, CEGUI Team
- martignasse
- 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 ?
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 ?
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 ?
Re: Need a piece of advice : how to make an inventory ?
Yes, thanks
I will try to use Drag&Drop containers, with static images in, instead of a combodroplist.
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 6 guests