Exemplo n.º 1
0
 public LayMapTool(LayFile lf, LayMap lm)
 {
     Lay = lf;
     Map = lm;
 }
Exemplo n.º 2
0
        private void LoadData(EvilPlug.Filetypes.Lay.LayFile layFile)
        {
            try
            {
                m_Map = new LayMap(layFile);
            }
            catch
            {
                lblStatus.Text = "Status: Error loading map data!";
                m_Loaded = false;
                m_Loading = false;
                return;
            }
            for (int y = 0; y < m_Map.Size.Height; y++)
            {

                for (int x = 0; x < m_Map.Size.Width; x++)
                {
                    LayMapTile tile = m_Map.Tiles[x, y];
                    tile.Tag = new ExtraTileInfo(tile, Textures);
                }
            }
            WindowState = FormWindowState.Normal;
            Application.DoEvents();
            WindowState = FormWindowState.Maximized;
            m_Loaded = true;
            m_Loading = false;

            MapTools = new LayMapTool(Plugin.LayFile, m_Map);
        }