Пример #1
0
        private void NewCellSeen(object sender, EventArgs e)
        {
            var cellGrid = (CellGrid)sender;

            var createdImage = MinimapHandler.Create(cellGrid);

            AssetsManager.Instance.AddTexture("MapImage", createdImage);
            var mapImage = (Image)Controls["frmHudView.frmMinimap.imgMinimap"];

            mapImage.TextureNormal = "MapImage";
        }
Пример #2
0
        internal void LoadContent(ContentManager content)
        {
            Controls.LoadContent(content, true);

            var createdImage = MinimapHandler.Create(WorldView.CellGrid);

            AssetsManager.Instance.AddTexture("MapImage", createdImage);
            var mapImage = (Image)Controls["frmHudView.frmMinimap.imgMinimap"];

            mapImage.TextureNormal = "MapImage";
        }