Mirage Source

Free ORPG making software.
It is currently Thu May 23, 2024 6:49 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: MS4 frmMapItem Question
PostPosted: Sun Oct 19, 2008 1:29 pm 
Offline
Regular

Joined: Wed Jan 16, 2008 8:50 pm
Posts: 60
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.


Top
 Profile  
 
PostPosted: Sun Oct 19, 2008 3:57 pm 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com
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

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
PostPosted: Sun Oct 19, 2008 9:11 pm 
Offline
Regular

Joined: Wed Jan 16, 2008 8:50 pm
Posts: 60
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.


Top
 Profile  
 
PostPosted: Tue Oct 21, 2008 12:49 pm 
Offline
Regular

Joined: Wed Jan 16, 2008 8:50 pm
Posts: 60
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group