| Mirage Source http://miragesource.net/forums/ |
|
| picInventory fix http://miragesource.net/forums/viewtopic.php?f=210&t=1885 |
Page 1 of 1 |
| Author: | Braydok [ Mon May 28, 2007 3:11 pm ] |
| Post subject: | picInventory fix |
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. |
|
| Author: | Rezeyu [ Wed Aug 15, 2007 3:53 pm ] |
| Post subject: | Re: picInventory fix |
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. |
|
| Author: | Matt [ Wed Aug 15, 2007 4:20 pm ] |
| Post subject: | Re: picInventory fix |
You don't need to dim anything. Just replace the 0 with the listindex line. |
|
| Author: | Lea [ Sun Jul 13, 2008 12:53 pm ] |
| Post subject: | Re: picInventory fix |
As those reading all the new posts by me in this thread might realize, I'm working on coding again I am reluctant to test this because I am uncertain what would happen (MSE 2.3 client doesn't work for me...) but what happens if you just remove Code: frmMirage.lstInv.ListIndex = 0 from the bottom of the sub entirely?
|
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|