| Mirage Source http://www.miragesource.net/forums/ |
|
| Setting sprite number max http://www.miragesource.net/forums/viewtopic.php?f=193&t=4555 |
Page 1 of 1 |
| Author: | GIAKEN [ Wed Oct 15, 2008 6:00 am ] |
| Post subject: | Setting sprite number max |
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() |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|