Changeset 268 for trunk/UGame.pas


Ignore:
Timestamp:
Jan 20, 2019, 9:32:16 PM (6 years ago)
Author:
chronos
Message:
  • Added: New menu action show/hide map grid lines.
  • Modified: Draw cell polygons without a gap so it can be drawn as solid surface without grid lines.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r265 r268  
    2323    class procedure TextOutEx(Canvas: TCanvas; X,Y: Integer; const Text: string; MovePen: Boolean = True);
    2424    class procedure PolygonEx(Canvas: TCanvas; const Points: array of Classes.TPoint; Winding: Boolean);
     25    class procedure PolyLineEx(Canvas: TCanvas; const Points: array of Classes.TPoint);
    2526  end;
    2627
     
    180181end;
    181182
     183class procedure TCanvasEx.PolyLineEx(Canvas: TCanvas;
     184  const Points: array of Classes.TPoint);
     185begin
     186  LCLIntf.Polyline(Canvas.Handle, @Points[0], Length(Points));
     187end;
     188
    182189{ TGame }
    183190
Note: See TracChangeset for help on using the changeset viewer.