правки
This commit is contained in:
parent
11306c4491
commit
50b8f8e872
@ -37,7 +37,7 @@ namespace ProjectRoadTrain.CollectionGenericObjects;
|
|||||||
int width = _pictureWidth / _placeSizeWidth;
|
int width = _pictureWidth / _placeSizeWidth;
|
||||||
int height = _pictureHeight / _placeSizeHeight;
|
int height = _pictureHeight / _placeSizeHeight;
|
||||||
|
|
||||||
int curWidth = width - 1;
|
int curWidth = 0;
|
||||||
int curHeight = 0;
|
int curHeight = 0;
|
||||||
|
|
||||||
for (int i = 0; i < (_collection?.Count ?? 0); i++)
|
for (int i = 0; i < (_collection?.Count ?? 0); i++)
|
||||||
@ -48,11 +48,11 @@ namespace ProjectRoadTrain.CollectionGenericObjects;
|
|||||||
_collection.Get(i).SetPosition(_placeSizeWidth * curWidth + 10, curHeight * _placeSizeHeight + 10);
|
_collection.Get(i).SetPosition(_placeSizeWidth * curWidth + 10, curHeight * _placeSizeHeight + 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curWidth > 0)
|
if (curWidth < width -1)
|
||||||
curWidth--;
|
curWidth++;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
curWidth = width - 1;
|
curWidth = 0;
|
||||||
curHeight++;
|
curHeight++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user