![]() |
Combo box: select other tileset. - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Combo box: select other tileset. (/showthread.php?tid=1269) |
Combo box: select other tileset. - JohnY - 08-09-2007 Could anyone make a tut on how to add a Combo box to the MapEditor in wich i'm able to choose like Tiles1.bmp, Tiles2.bmp etc. untill Tiles14.bmp, I've tried without success. Re: Combo box: select other tileset. - Robin - 08-09-2007 Use the onclick event to initialise the code which switches the sheets. Re: Combo box: select other tileset. - JohnY - 08-09-2007 I haven't got any clue how this combo box works, I don't know how to make it select multiple options. Re: Combo box: select other tileset. - Robin - 08-09-2007 Add the different options in the properties then change the code accordingly. Re: Combo box: select other tileset. - JohnY - 08-09-2007 EDIT: Figured it out I believe... or maybe not. Re: Combo box: select other tileset. - JohnY - 08-09-2007 EDIT: My code: frmMirage.ListBox.ListIndex = 0 frmMirage.picMapEditor.Visible = True With frmMirage.picBackSelect .Width = 7 * PIC_X .Height = 255 * PIC_Y .Picture = LoadPicture(App.Path + GFX_PATH + frmMirage.ListBox + GFX_EXT) As soon as I select a different tilesheet it just scrolls back to the default. Any help? Re: Combo box: select other tileset. - Coke - 08-09-2007 You have to delve.. into the land.. OF DIRECT X MAUEHAUSHEUAHSEUHAUEHAUEHAUSHEUHSA -cries irl- Elysium has it, you could just rip it from there ;o Re: Combo box: select other tileset. - Matt - 08-09-2007 Using more than one tileset is a lot harder than just adding a combo box to switch between them. You have to make sure you can map with the new tileset, have to make sure the map knows which tileset to pull the tiles from when it blits, etc, etc. Just rip it from Elysium. It might be the only thing they actually did right. No offense Sean. xD Re: Combo box: select other tileset. - William - 08-09-2007 I dont see why you need more than 1 tileset =/ Re: Combo box: select other tileset. - Matt - 08-09-2007 I use a massive tileset. Which means it has to load that entire massive tileset when it loads. If you use more than one tileset at smaller sizes, you could make it not load all at once and load only the tilleset you need. Re: Combo box: select other tileset. - Robin - 08-09-2007 Cashe? o_o It's actually pretty ideal to have tilesets load and unload if you need them or not for Winds Whisper, because they're only very small and you only need one per map because they're RM2K. Re: Combo box: select other tileset. - funkynut - 08-09-2007 You'd need to add a new tile property with tileset number and new direct x surfaces to load the new tileset Then when blting the map, when checking the coords for the tile you need to draw, just check the tileset number as well Re: Combo box: select other tileset. - Xlithan - 27-09-2007 Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* :roll: Re: Combo box: select other tileset. - Matt - 27-09-2007 GameBoy Wrote:Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* How do you even know Sean ripped it at all? Re: Combo box: select other tileset. - Coke - 27-09-2007 GameBoy Wrote:Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* The Konfuze milestone forums, christmas 2006, when Storm suggested it. The idea, that is. Re: Combo box: select other tileset. - Matt - 27-09-2007 Fox Wrote:GameBoy Wrote:Yeah I wonder where Elysium ripped their multi-tile code from *COUGHMRPGECOUGH* 2006..? Konfuze was still around then..? O_o Re: Combo box: select other tileset. - Coke - 27-09-2007 2005*. |