переправка вставки обьекта
This commit is contained in:
parent
a1f80b6ca7
commit
9daa025f96
@ -21,6 +21,7 @@ public class AirCraftAngar : AbstractCompany
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="g">Графика</param>
|
/// <param name="g">Графика</param>
|
||||||
int pamat_i = 0;
|
int pamat_i = 0;
|
||||||
|
int pamat_j = 0;
|
||||||
protected override void DrawBackgound(Graphics g)
|
protected override void DrawBackgound(Graphics g)
|
||||||
{
|
{
|
||||||
Pen pen = new(Color.Black, 4);
|
Pen pen = new(Color.Black, 4);
|
||||||
@ -29,6 +30,7 @@ public class AirCraftAngar : AbstractCompany
|
|||||||
pamat_i = i;
|
pamat_i = i;
|
||||||
for (int j = 0; j < _pictureHeight / _placeSizeHeight; j++)
|
for (int j = 0; j < _pictureHeight / _placeSizeHeight; j++)
|
||||||
{
|
{
|
||||||
|
pamat_j = j;
|
||||||
g.DrawLine(pen, new(_placeSizeWidth * i, _placeSizeHeight * j), new((int)(_placeSizeWidth * (i + 0.5f)), _placeSizeHeight * j));
|
g.DrawLine(pen, new(_placeSizeWidth * i, _placeSizeHeight * j), new((int)(_placeSizeWidth * (i + 0.5f)), _placeSizeHeight * j));
|
||||||
g.DrawLine(pen, new(_placeSizeWidth * i, _placeSizeHeight * j), new(_placeSizeWidth * i, _placeSizeHeight * (j + 1)));
|
g.DrawLine(pen, new(_placeSizeWidth * i, _placeSizeHeight * j), new(_placeSizeWidth * i, _placeSizeHeight * (j + 1)));
|
||||||
}
|
}
|
||||||
@ -43,7 +45,7 @@ public class AirCraftAngar : AbstractCompany
|
|||||||
protected override void SetObjectsPosition()
|
protected override void SetObjectsPosition()
|
||||||
{
|
{
|
||||||
int currentIndex = -1;
|
int currentIndex = -1;
|
||||||
for (int j = 0 ; j < _pictureHeight / _placeSizeHeight; j++)
|
for (int j = pamat_j; j >= 0; j--)
|
||||||
{
|
{
|
||||||
for (int i = pamat_i; i >= 0; i--)
|
for (int i = pamat_i; i >= 0; i--)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user