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"; }
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"; }