Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: bx83 on Sat 24/04/2021 05:34:20

Title: How do I make the inventory go 'up' after mass items have been removed and added
Post by: bx83 on Sat 24/04/2021 05:34:20
I remove all the items in the inventory, updateinventory(), don't show the user; add a couple of item back, updateinventory(), don't show user.

Finally, when the user clicks the inventory and makes it visible, the inventory is 'up' 1 row; it doesn't sit with the first line of items at the top, rather they are one row upwards, hidden. How can I manually update and reposition it so the first row sits flush and can be seen?
Title: Re: How do I make the inventory go 'up' after mass items have been removed and added
Post by: Slasher on Sat 24/04/2021 11:03:51
Try:

Code (ags) Select

invCustomInv.TopItem = 0;
Title: Re: How do I make the inventory go 'up' after mass items have been removed and added
Post by: bx83 on Sun 25/04/2021 00:42:35
Thank you, it works :)