![]() |
picInventory fix - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: picInventory fix (/showthread.php?tid=960) |
picInventory fix - Braydok - 28-05-2007 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. Re: picInventory fix - Rezeyu - 15-08-2007 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. Re: picInventory fix - Matt - 15-08-2007 You don't need to dim anything. Just replace the 0 with the listindex line. |