Problems with selecting inventory in the inventory GUI.

Started by DBoyWheeler, Tue 27/02/2024 22:11:33

Previous topic - Next topic

DBoyWheeler

Something really screwy is going on with my Inventory interface.

So, when I go into my inventory (and I think I fixed the code to make it select the item when I left-click), it doesn't always pick the item.  I practically have to pixel-hunt to find the "hotspot" of the item to make the action text show the item name and then it'll become active inventory when I click it.

I'd show the code snippet if I knew what code snippet to pick.  (It's my game with the special verb-coin interface I've posted of in the past.)

Crimson Wizard

Are you using standard InventoryWindow control to display items, or something else?

If the standard one, then the first thing I'd check is ItemWidth and ItemHeight properties in your InventoryWindow.

If these are not the case, then please post your on_mouse_click script where you coded item selection.

Khris

You should also check the hotspot of the relevant mouse cursor; I remember at least one being completely off when I looked over your game.
https://www.adventuregamestudio.co.uk/forums/advanced-technical-forum/changes-in-verb-coin-code/msg636658205/#msg636658205

DBoyWheeler

Quote from: Khris on Wed 28/02/2024 08:25:59You should also check the hotspot of the relevant mouse cursor; I remember at least one being completely off when I looked over your game.
https://www.adventuregamestudio.co.uk/forums/advanced-technical-forum/changes-in-verb-coin-code/msg636658205/#msg636658205

Um, for each inventory's cursor, I had a little crosshair (similar to some of AGDI's remakes of Sierra games), but I am not sure how to make my mouse cursor click on the item while in the inventory GUI.  Should I send you my game source again?

Khris

I looked at this and it was the ItemWidth and ItemHeight setting. The sprites are 100x50, the dimensions were still set to 30x20.

Open gInventoryGUI, select the InvWindow and adjust the settings accordingly.

DBoyWheeler

Thanks for pointing that out.  Got that quickly fixed.  My fingers are crossed that I don't run into any more problems after this.

SMF spam blocked by CleanTalk