Changeset 166 for trunk/UMap.pas
- Timestamp:
- Nov 23, 2017, 12:14:15 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMap.pas
r165 r166 298 298 LeftText: string; 299 299 RightText: string; 300 NeighborCell: TCell; 300 301 begin 301 302 Clear; … … 374 375 LeftCell := Cell.Neighbors[I]; 375 376 RightCell := Cell.Neighbors[(I + 1) mod Cell.Neighbors.Count]; 376 LeftText := LeftCell.Neighbors.ToString;377 RightText := RightCell.Neighbors.ToString;377 //LeftText := LeftCell.Neighbors.ToString; 378 //RightText := RightCell.Neighbors.ToString; 378 379 LeftIndex := LeftCell.Neighbors.IndexOf(Cell); 379 380 RightIndex := RightCell.Neighbors.IndexOf(Cell); … … 424 425 Polygon := TPolygon.Create(Rect(0, 0, 425 426 Size.X * DefaultCellSize.X, Size.Y * DefaultCellSize.Y)); 426 for I := 0 to Cell.Neighbors.Count - 1 do begin 427 LinkLine := TLine.Create(Cell.PosPx, 428 Cell.Neighbors[I].PosPx); 427 for NeighborCell in Cell.Neighbors do begin 428 LinkLine := TLine.Create(Cell.PosPx, NeighborCell.PosPx); 429 429 LinkLine.Distance := LinkLine.Distance - 4; 430 430 MP := LinkLine.GetMiddle;
Note:
See TracChangeset
for help on using the changeset viewer.