Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Eo] Simple world map


Krumelz
 Share

Recommended Posts

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

@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

@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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...