Hello everyone,
I was wondering if there was a way to scroll (jump) straight to the top item in an inventory window. I'm aware of InventoryWindow1.ScrollUp() but I'm looking for a way to jump straight to the first item every time you open up the inventory. Any help would be greatly appreciated
EDIT: All good, solved it myself. Was having a major mental block haha! :S
Code: ags
I was wondering if there was a way to scroll (jump) straight to the top item in an inventory window. I'm aware of InventoryWindow1.ScrollUp() but I'm looking for a way to jump straight to the first item every time you open up the inventory. Any help would be greatly appreciated

EDIT: All good, solved it myself. Was having a major mental block haha! :S
if (InventoryWindow1.TopItem > 0)
{
InventoryWindow1.ScrollUp();
}