1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26:
| procedure DrawPoints(); var i, j: integer; begin with Form1.AdDraw.Canvas do begin Pen.Color := NewColor; Brush.Style := absolid; for i:= 0 to Length(MapInfo)-1 do begin for j := 0 To Length(MapInfo[i]^.ConnectedTo)-1 do Line(MapInfo[i]^.X + 174 + 3 + random(2), MapInfo[i]^.Y + 14 - 1 + random(2), MapInfo[MapInfo[i]^.ConnectedTo[j]].X + 174 + 3 + random(2), MapInfo[MapInfo[i]^.ConnectedTo[j]].Y + 14 - 1 + random(2)); if MapInfo[i].PlayerPoint <> 0 then Textout(MapInfo[i]^.X + 174 - 1, MapInfo[i].Y + 14 - 8, IntToStr(MapInfo[i].PlayerPoint)) else Rectangle(MapInfo[i]^.X + 174 + 2, MapInfo[i]^.Y + 14 - 2, MapInfo[i]^.X + 174 + 6, MapInfo[i]^.Y + 14 + 2); end;
Pen.Color := BlackColor; Brush.Style := abclear; end; end; |