Чуть пофиксила

This commit is contained in:
Alenka 2023-10-27 08:32:54 +04:00
parent 842e5a8ca4
commit 735492bfe2

View File

@ -18,9 +18,9 @@ namespace Monorail.Generics
private readonly int _pictureHeight;
private readonly int _placeSizeWidth = 133;
private readonly int _placeSizeWidth = 210;
private readonly int _placeSizeHeight = 50;
private readonly int _placeSizeHeight = 90;
private readonly SetGeneric<T> _collection;
@ -90,7 +90,7 @@ pos)
{
int inRow = _pictureWidth / _placeSizeWidth;
// monorail.SetPosition(i % inRow * _placeSizeWidth, _pictureHeight - _pictureHeight % _placeSizeHeight - (i / inRow + 1) * _placeSizeHeight + 5);
monorail.SetPosition((i % inRow) * _placeSizeWidth + _placeSizeWidth / 50, _placeSizeHeight * (i / inRow) + _placeSizeHeight / 20);
monorail.SetPosition((i % inRow) * (_placeSizeWidth) + _placeSizeWidth / 20, _placeSizeHeight * (i / inRow) + _placeSizeHeight / 20);
monorail.DrawTransport(g);
}