Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
picInventory fix
#1
Well, I noticed that in the unedited MS, when you use/drop an item using the picInventory, it always goes back to the beginning. That can be very annoying if you have a very full inventory.
So, I made a little fix:

In modGameLogic, find:
Code:
Public Sub UpdateInventory()

Then, under Dim i as long, add:
Code:
Dim Place

Then, before:
Code:
frmMirage.lstInv.Clear

Add:
Code:
Place = frmMirage.lstInv.ListIndex

Then, right before End Sub, change
Code:
frmMirage.lstInv.ListIndex = "0"

To:
Code:
frmMirage.lstInv.ListIndex = Place

That will save your place in the picInventory.

If you have any problems, please tell me.
Reply
#2
I just noticed this, I always bypassed it because I thought it was a repost of the pic for the item editor from the old forums.

It's pretty neat, never thought of that before.
Reply
#3
You don't need to dim anything. Just replace the 0 with the listindex line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)