private void tileChange(IMap_Base mapFile,SelectedTileChangedEventArgs e)// MapLocation newCoords) { MapLocation newCoords = e.MapLocation; clickPointx = new Point(newCoords.Col,newCoords.Row); flipLock=true; if(!drawAll && !flipLock2) map[newCoords.Row, newCoords.Col, map.CurrentHeight].DrawAbove = !map[newCoords.Row, newCoords.Col, map.CurrentHeight].DrawAbove; //if(ViewClicked!=null) //{ // Args a = new Args(ArgType.MapClicked); // a.Location = new MapLocation(newCoords.Col, newCoords.Row, map.CurrentHeight); // ViewClicked(this,a); //} flipLock=false; }
public override void SelectedTileChanged(IMap_Base sender, SelectedTileChangedEventArgs e) { mapTile = (XCMapTile)e.SelectedTile; lastLoc = e.MapLocation; Refresh(); }
public override void SelectedTileChanged(IMap_Base sender, SelectedTileChangedEventArgs e) { //bottom.Tile = (XCMapTile)e.SelectedTile; MapLocation pt = e.MapLocation; Text = "r: " + pt.Row + " c: " + pt.Col; int xc = (pt.Col - pt.Row) * hWidth; int yc = (pt.Col + pt.Row) * hHeight; selected.Reset(); selected.AddLine(xc, yc, xc + hWidth, yc + hHeight); selected.AddLine(xc + hWidth, yc + hHeight, xc, yc + 2 * hHeight); selected.AddLine(xc, yc + 2 * hHeight, xc - hWidth, yc + hHeight); selected.CloseFigure(); viewDrag(null, null); Refresh(); }
public virtual void SelectedTileChanged(IMap_Base sender, SelectedTileChangedEventArgs e) { Refresh(); }
/*public IMapFile Map { set { if (map != null) { map.HeightChanged -= new HeightChangedDelegate(heightChanged); map.SelectedTileChanged -= new SelectedTileChangedDelegate(tileChanged); } if (value is XCMapFile) map = (XCMapFile)value; else return; rmpPanel.Map = map; if (rmpPanel.Map != null) { currEntry = ((XCMapTile)map[clickRow, clickCol]).Rmp; fillGUI(); cbRank1.Items.Clear(); if (map.Tiles[0][0].Palette == Palette.UFOBattle) cbRank1.Items.AddRange(RmpFile.UnitRankUFO); else cbRank1.Items.AddRange(RmpFile.UnitRankTFTD); Text = string.Format("RmpView: r:{0} c:{1} h:{2}", rmpPanel.Map.MapSize.Rows, rmpPanel.Map.MapSize.Cols, rmpPanel.Map.MapSize.Height); rmpPanel.Map.HeightChanged += new HeightChangedDelegate(heightChanged); rmpPanel.Map.SelectedTileChanged += new SelectedTileChangedDelegate(tileChanged); } OnResize(null); } }*/ public override void SelectedTileChanged(IMap_Base sender, SelectedTileChangedEventArgs e) { this.Text = string.Format("RmpView: r:{0} c:{1} ", e.MapLocation.Row, e.MapLocation.Col); }