SOLVED: Inventory window display of items

Started by barefoot, Mon 14/02/2011 19:04:47

Previous topic - Next topic

barefoot

Hi

my custom Inventory GUI has 4 items per row showing.  If you use all the items from 1 row you get a space and have to down arrow to the next row. My question: is there away to make the next row jump up to the top as it were instead of having a blank row and scrolling down?

Spacing is 30 high and 50 wide.

As you can see, its not full size...

Here it is:



cheers

barefoot




I May Not Be Perfect but I Have A Big Heart ..

Khris

How are the items removed, i.e. what script command are you using?

Because after losing an inv item, there shouldn't be a blank spot, the other items are supposed to move up automatically.

barefoot

#2
Hi Khris

I'm simply using this command for removing items:

Code: ags
cmorgam.AddInventory(item);


Would i need to also use each items ID (inv number) ?

Code: ags
cmorgam.AddInventory(item,int);


Just a thought

cheer

barefoot
I May Not Be Perfect but I Have A Big Heart ..

barefoot

Hi

Simply Added ID for each inventory item added and now it works a treat and shows 2 rows:

Code: ags

cmorgam.AddInventory(item,int);


barefoot


I May Not Be Perfect but I Have A Big Heart ..

Khris

The communication and solution has been kinda surreal, but as long as this is solved :)

barefoot

Hi Khris

you know me, I have to find a solution one way or another... and I thank you for your help past and present.. I have come across another issue in my latest topic posted....

cheers

barefoot





I May Not Be Perfect but I Have A Big Heart ..

monkey0506

I like how you're using AddInventory to remove items instead of LoseInventory. barefoot, you are a true pioneer in ridiculously bad programming conventions. You should work for Microsoft, presumably in the "Internet Explorer" department.

SMF spam blocked by CleanTalk