Esempio n. 1
0
 private void getTilesBtn_Click(object sender, RoutedEventArgs e)
 {
     listBox1.Items.Clear();
     Objects.MiniMapTile[] MapTiles = MapReading.getMapTiles(fileName.Text);
     foreach (Objects.MiniMapTile tile in MapTiles)
     {
         listBox1.Items.Add(Convert.ToString(tile.speed) + ", " + Convert.ToString(tile.color));
     }
 }
Esempio n. 2
0
 private void readLargeMapFile(object sender, RoutedEventArgs e)
 {
     Objects.Location loc = new Objects.Location();
     loc.x = Read.X();
     loc.y = Read.Y();
     loc.z = Read.Z();
     LargeImage1.Source = loadBitmap(MapReading.getMapFileAroundMe(loc));
     LargeImage2.Source = loadBitmap(MapReading.getMapSpeedFileAroundMe(loc));
     MapReading.getMapSpeedFileAroundMe(loc).Save("SpeedFile.bmp");
     MapReading.getMapFileAroundMe(loc).Save("ColourFile.bmp");
 }
Esempio n. 3
0
        private void ReadMapImage(object sender, RoutedEventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("%APPDATA%\\Tibia\\Automap\\");
            sb.Append(Convert.ToString(Read.X() / 256));
            sb.Append(Convert.ToString(Read.Y() / 256));
            if (Read.Z() < 10)
            {
                sb.Append("0");
            }
            sb.Append(Convert.ToString(Read.Z()));
            sb.Append(".map");
            fileName.Text = sb.ToString();
            Image1.Source = loadBitmap(MapReading.getMapFile(sb.ToString()));
            Image2.Source = loadBitmap(MapReading.getMapSpeedFile(sb.ToString()));
        }
Esempio n. 4
0
        private void getMyTilesBtn_Click(object sender, RoutedEventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("%APPDATA%\\Tibia\\Automap\\");
            sb.Append(Convert.ToString(Read.X() / 256));
            sb.Append(Convert.ToString(Read.Y() / 256));
            if (Read.Z() < 10)
            {
                sb.Append("0");
            }
            sb.Append(Convert.ToString(Read.Z()));
            sb.Append(".map");
            listBox1.Items.Clear();
            Objects.MiniMapTile[] MapTiles = MapReading.getMapTiles(sb.ToString());
            foreach (Objects.MiniMapTile tile in MapTiles)
            {
                listBox1.Items.Add(Convert.ToString(tile.speed) + ", " + Convert.ToString(tile.color) + " | Pos: " + Convert.ToString(tile.x) + ", " + Convert.ToString(tile.y) + ", " + Convert.ToString(tile.z) + ".");
            }
        }
Esempio n. 5
0
 private void Button_Click_6(object sender, RoutedEventArgs e)
 {
     Image1.Source = loadBitmap(MapReading.getMapFile(fileName.Text));
     Image2.Source = loadBitmap(MapReading.getMapSpeedFile(fileName.Text));
 }