t
This commit is contained in:
parent
e016dde468
commit
daf02bad9d
@ -14,7 +14,7 @@ namespace Excavator.CollectionGenericObjects;
|
||||
public class Garage(int picWidth, int picHeight, ICollectionGenericObjects<DrawningTrackedVehicle> collection) : AbstractCompany(picWidth, picHeight, collection)
|
||||
{
|
||||
Graphics g;
|
||||
|
||||
int t = 5;
|
||||
protected override void DrawBackgound(Graphics g)
|
||||
{
|
||||
Pen pen = new(Color.Black, 3);
|
||||
@ -44,7 +44,7 @@ public class Garage(int picWidth, int picHeight, ICollectionGenericObjects<Drawn
|
||||
int r = i / width;
|
||||
int s = width - 1 - (i % width);
|
||||
excavator.SetPictureSize(_pictureWidth, _pictureHeight);
|
||||
excavator.SetPosition(s * _placeSizeWidth, (r * _placeSizeHeight * 2)+ 5);
|
||||
excavator.SetPosition(s * _placeSizeWidth + t, (r * _placeSizeHeight * 2)+ t);
|
||||
excavator.DrawTransport(g);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user