ID:267862
 
I decided to do a serious update to my original On-screen Inventory system, seeing how it was horribly made. I'd like to have OSI(On-screen Inventory) Scrolling, but I'm not sure on how to go about it.

My OSI System allows you to view 10 items at one time, and I'd like scrolling to allow you to go up, and down the list one item at a time.

I'm not looking for any code, just a basic idea on how I'd go about doing it.

Thanks
I'm guessing you would just havea var telling you what the top position in the list is, then have it so that it displays the 10 objects in the inventory from that position.
Then when you want to go up/down you just increase/decrease the var then refresh the screen.
SSJ Radditz wrote:
I decided to do a serious update to my original On-screen Inventory system, seeing how it was horribly made. I'd like to have OSI(On-screen Inventory) Scrolling, but I'm not sure on how to go about it.

My OSI System allows you to view 10 items at one time, and I'd like scrolling to allow you to go up, and down the list one item at a time.

I'm not looking for any code, just a basic idea on how I'd go about doing it.

Thanks

The way I'd do it, is have an inventory list, and have a position variable. The position variable would start at 1. Every time you refresh the screen, make it loop from position, to position + 10 (As long as inventory.len is that long. Simply to this by breaking the loop if the variable is equal to inventory.len). Then just display the items on the screen. To scroll, simply add 10 to the position variable.

~>Volte
Well, after abit of thought, and thanks to your helpful ideas, I finished the Scrolling OSI. I'm quite pleased with it actually. ^^ Thanks to those that gave their helpful suggestions.