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
ID:267862
![]() Nov 18 2003, 4:15 pm
|
|
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. 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 |
Then when you want to go up/down you just increase/decrease the var then refresh the screen.