Mirage Source
http://web.miragesource.net/forums/

MS4 frmMapItem Question
http://web.miragesource.net/forums/viewtopic.php?f=193&t=4591
Page 1 of 1

Author:  deathknight [ Sun Oct 19, 2008 1:29 pm ]
Post subject:  MS4 frmMapItem Question

Can someone do me a favor and explain to me the below code? I noticed that while trying to place items on the map it would not let me scroll past item 3, and after deleting this line, it let me scroll up to the max for the scrollbar (255, default setting)

Code:
scrlItem.Max = (DDSD_Item.lHeight \ PIC_Y) - 1


I do not know much about programming yet, but as far as I can see, this is setting the max of the scroll bar to "something involving a picture or the height of something"? I'm not sure what this line does or how to get it to let me select more than the 3 items, except for deleting this line.

Author:  Rian [ Sun Oct 19, 2008 3:57 pm ]
Post subject:  Re: MS4 frmMapItem Question

Looks like it's setting the scroll bars max to be the same as your items.bmp height.

If its not working right, you could open your item sheet in paint, view the attributes, and divide it's height by 32. Then set the scroll bars max to that number

Author:  deathknight [ Sun Oct 19, 2008 9:11 pm ]
Post subject:  Re: MS4 frmMapItem Question

I really don't need to do anything with it. I don't know what it was meant to do (it came in the latest version of MS4) I just happened to notice that because of it, my max scrollbar as all messed up. I was just trying to figure out why it was put in, that way if its useless, I can just delete it without it affecting anything else.

Author:  deathknight [ Tue Oct 21, 2008 12:49 pm ]
Post subject:  Re: MS4 frmMapItem Question

Thats what I thought it was doing, but I don't know what it's based off of, and even when I add items, etc, it won't let me select them on the frmMapItem.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/