Greetings Fellow Developers,
I just started using the 9 Verb Interface for AC in 3D mode and I love it! It is so nostalgic and makes creating an adventure game simple and fun!
I have created 10+ inventory items with icons. When these inventory items are added to the original AC inventory, they display the item icon and the item stack amount/number at the center of the item's icon. However, now that I've implemented the Nine Verbs Interface, the item's stack number/amount only displays when the item's icon is clicked, and the stack number follows the cursor instead of appearing stationary on the item's icon in its designated inventory slot.
I'd like the item stack/number to display while items are stacked and inactive in the Nine Verb Interface. I do not want the item stack amount/number to display on the cursor or follow the cursor.
Please let me know of any solutions to this issue, I am working on finding solutions of my own as well, but I would greatly appreciate the support from the AC creators and developer community.
Thank you!!
_"7 of Summers is creating interesting, innovative, interactive art that inspires." _
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @7ofSummers.
The stack amount from the cursor can be removed from the cursor by going to the Cursor Manager's "Count display style" field and setting the Size to 0.
To show this count within the Inventory menu, you'll need to go to the Menu Manager, select the Verbs menu, then the Inventory element within it, and set its Display type to Icon And Text.
As this Menu relies on Unity UI, you'll then also need to update its associated UI Canvas prefab - VerbsUI - by attaching Text components to children of each Item slot in the Hierarchy (or TextMesh Pro U GUI components if the Menu relies on TextMesh Pro).
Thank you for your swift reply, Chris! I was able to remove the counter from the cursor using your instructions, but I am still having trouble with showing the count within the inventory menu.
I attached a TextMeshPro Text UI element to the slot, but it is not dynamic, meaning the text displayed does not update with the item count. Do I need to create a script to handle this item-counting function or is there a setting through AC that will handle this?
So long as each slot has the component, and you've updated the element to make use of text, that should be enough.
Could you share screenshots of your Menu and Inventory in the Menu Manager, as well as how the TMPro Text UI components have been added to the VerbUI prefab's Hierarchy? I'll see if I can spot what's wrong.
https://docs.google.com/presentation/d/1SaWKJQB5Iwg628KyXK7YEnOqTGXUe0G0etO2JAxw9vg/edit?usp=sharing
The photos of my game's heriarcy has are in this secure google doc.
Thanks - looks like there are two culprits:
That worked! Thank you very much!!!