Mirage Source

Free ORPG making software.
It is currently Tue Jun 04, 2024 8:19 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Oct 15, 2008 6:00 am 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
This could be a little useful for handling scroll bars in editors for choosing sprites. To get the total number of sprites this is what I did:

Make a picture box 1x1, set it to appearance-flat, border style-none, autosize-true, and visible = false, and name it picGetSize and place it in frmMainMenu or wherever...

Code:
frmMainMenu.picGetSize.Picture = LoadPicture(App.Path & "/Gfx/Sprites.bmp")

SPRITE_COUNT = (frmMainMenu.picGetSize.Height \ 32) - 1

frmMainMenu.picGetSize.Picture = LoadPicture()

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


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