Hi everyone,
I'm looking for some advice for a feature I want to implement in my game. I use a simple inventory grid, with right-click to examine inventory items. At the moment each examine action shows a text description when the player right-clicks, through a dialogue action.
What I'd like to do as well is show an enlarged version of the inventory image. Ideally I'd use a single image for each inventory item, at about 1024x1024, which is automatically scaled down in the inventory grid, and then the full-size version is shown when the user right-clicks on it, along with a text description.
I can't for the life of me figure out how to go about doing this. Would this require a custom action, or is there something in the magical AC pot that can already handle this sort of thing?
I know that I could create a separate menu with individual images for each item, but that seems like a very inefficient way to go about things, especially since I aim to have about 30-40 inventory items in my game. I'd also then need to make sure that each element is hidden afterwards, which would be a somewhat nightmarish action list.
Any advice would be appreciated. Thanks!
Comments
http://www.adventurecreator.org/forum/discussion/526/solved-popup-inventory-object
void OnInventoryInteract (InvItem theItem, int cursorID)
{
if (cursorID == myLookCursorID)
{
// Item was examined
}
}