Krumelz Posted December 24, 2010 Author Share Posted December 24, 2010 With this code you can add a simple worldmap to your game.First add a Picturebox on your picscreen.Set its name to picworldmap, AutoSize to true and visible = false,now doubleclick it and add;```picworldmap.visible = false```so it closes when you click on it.you could also add another pic or command button in it and insert the code there.in frmmaingame search for Form_Load()after:```picCurrency.Top = txtMyChat.Top```add:```PicWorldMap.Picture = LoadPicture(App.Path & "\data files\graphics\worldmap.bmp")```next search for```Select Case Command(0)```or```Select Case LCase$(Command(0))```right under it add:```Case "/worldmap" If frmMainGame.PicWorldMap.Visible = False Then frmMainGame.PicWorldMap.Visible = True Else frmMainGame.PicWorldMap.Visible = False End If```now you only need to put your worldmap image, which has to be a .bmp and be called worldmap as long as you dont change the code, into your client/data files/graphics folder, where the blood.bmp and misc.bmp should be.If it doesnt work just report to me.~Krumelz Link to comment Share on other sites More sharing options...
Bafoon Posted December 24, 2010 Share Posted December 24, 2010 frmMainGame vairable not defined =X Link to comment Share on other sites More sharing options...
Yxxe Posted December 24, 2010 Share Posted December 24, 2010 @Ninja:> frmMainGame vairable not defined =X:O Link to comment Share on other sites More sharing options...
Krumelz Posted December 24, 2010 Author Share Posted December 24, 2010 what version of eclipse/origins are you using?also, did you put the Picturebox at FrmMainGame/onto the picscreen? Link to comment Share on other sites More sharing options...
Bafoon Posted December 24, 2010 Share Posted December 24, 2010 Yes I did, an im using Winds Nocturne engine. Link to comment Share on other sites More sharing options...
Krumelz Posted December 24, 2010 Author Share Posted December 24, 2010 hm, ok. Maybe the frmMainGame has a different name there.Whats the Form called where the picscreen etc. are on? Link to comment Share on other sites More sharing options...
Bafoon Posted December 24, 2010 Share Posted December 24, 2010 frmMain Link to comment Share on other sites More sharing options...
Krumelz Posted December 24, 2010 Author Share Posted December 24, 2010 k, replace the frmmaingame in my code with frmmain. Link to comment Share on other sites More sharing options...
Bafoon Posted December 24, 2010 Share Posted December 24, 2010 it works now, tysm. Link to comment Share on other sites More sharing options...
Ertzel Posted December 24, 2010 Share Posted December 24, 2010 Why not already have the worldmap.bmp set as the pictureboxes background so that way you don't have to store it in the game files and load it up each time… Link to comment Share on other sites More sharing options...
Krumelz Posted December 24, 2010 Author Share Posted December 24, 2010 @Ninja:> it works now, tysm.np. Happy that i could help you. ^^@Ertzel:> Why not already have the worldmap.bmp set as the pictureboxes background so that way you don't have to store it in the game files and load it up each time…well, you'd have to update the client each time you made changes to the worldmap, which takes longer than updating a .bmp. Link to comment Share on other sites More sharing options...
evilbunnie Posted December 24, 2010 Share Posted December 24, 2010 @Krumelz:> @Ninja:> > > it works now, tysm.> > np. Happy that I could help you. ^^> > @Ertzel:> > > Why not already have the worldmap.bmp set as the pictureboxes background so that way you don't have to store it in the game files and load it up each time…> > well, you'd have to update the client each time you made changes to the worldmap, which takes longer than updating a .bmp.Make it load up in the Sub Main() Link to comment Share on other sites More sharing options...
Krumelz Posted December 24, 2010 Author Share Posted December 24, 2010 @Captain:> @Krumelz:> > > @Ninja:> > > > > it works now, tysm.> > > > np. Happy that I could help you. ^^> > > > @Ertzel:> > > > > Why not already have the worldmap.bmp set as the pictureboxes background so that way you don't have to store it in the game files and load it up each time…> > > > well, you'd have to update the client each time you made changes to the worldmap, which takes longer than updating a .bmp.> > Make it load up in the Sub Main()hm, good idea. Guess i'll do that. Updating main post. ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now