Changeset 232 for trunk/UMapType.pas


Ignore:
Timestamp:
Sep 19, 2018, 2:34:06 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Adjusted center of Voronoi map to better place cells power text in center of polygons.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMapType.pas

    r231 r232  
    405405  end;
    406406
     407  // Adjust polygon centers
     408  for I := 0 to Cells.Count - 1 do begin
     409    Cells[I].PosPx := Cells[I].Polygon.GetCenter;
     410  end;
     411
    407412  FPixelRect := CalculatePixelRect;
    408413end;
Note: See TracChangeset for help on using the changeset viewer.