Beispiel #1
0
 //this is running in the Map Update Thread.
 void mapupdate()
 {
     while (mapEnabled)
     {
         if (gui.isMapTabSelected() && !mutex)
         {
             gui.check_bounds(x_offset, y_offset);
             if (worldchunk != null)
             {
                 worldchunk.Dispose();
             }
             worldchunk            = Map.API.Mapper.map(x1, y1, x2, y2);
             mutex                 = true;
             delegate_for_updating = new UpdateMapGui(updategui);
             gui.pictureBox1.Invoke(delegate_for_updating);
         }
         Thread.Sleep(10);
     }
 }
Beispiel #2
0
 //this is running in the Map Update Thread.
 void mapupdate()
 {
     while(mapEnabled)
     {
         if (gui.isMapTabSelected() && !mutex)
         {
             gui.check_bounds(x_offset,y_offset);
             if(worldchunk != null)
             {
                 worldchunk.Dispose();
             }
             worldchunk = Map.API.Mapper.map(x1, y1, x2, y2);
             mutex = true;
             delegate_for_updating = new UpdateMapGui(updategui);
             gui.pictureBox1.Invoke(delegate_for_updating);
         }
         Thread.Sleep(10);
     }
 }