Hey guys. I am trying to make an application that's supposed to be used as a "map viewer" for a 2D game. I took screen shots from the 2D game, and put them in the resources of the project.
The GUI looks like this :
You can see all the maps of the 2D game here:
The radiobutton is selected on startup, and when it is active, this code runs:
mapBox.Image = My.Resources.kalm2 mapTxt.Text = "Kalm Inn and Bank"
That works fine. The picturebox changes the image to kalm2 and the label changes to "Kalm Inn and Bank" which are the houses on the map (Kalm is the village name ^.^).
I have the 4 buttons that I want to use as navigation (north, south, east, west)
Obviously if I just set the map to change to a specific map, when clicking one of those, it would be messed up, cause they have to change map, depending on which map they're on.
I started out by adding code to when north is clicked:
mapBox.Image = My.Resources.kalm1 mapTxt.Text = "North Entrance Kalm" east.hide north.hide west.hide
This worked, the map changed to kalm1 and all the navigation buttons, except south were hidden.
Now to the problem: The problem is that, I don't know how to change what happens when clicking south, I don't even know if I'm supposed to put all this code in under the event of clicking north.
I think I tried something like adding
If south_Click then mapBox.image = My.Resources.kalm1 mapTxt.Text = "Kalm Inn and Bank"
This did not work.. I have been thinking about this for a long time, but I just can't come up with a solution =/.
Please help me ..
This post has been edited by Mommy: 07 August 2008 - 07:00 AM