Last column fixed and pause in choose your seeds
This commit is contained in:
parent
bbda020a2d
commit
1ad0e18869
6 changed files with 37 additions and 28 deletions
|
|
@ -4,15 +4,16 @@ using System;
|
|||
public partial class PauseMenu : Control
|
||||
{
|
||||
private static PauseMenu Instance;
|
||||
private bool previousPaused;
|
||||
public override void _Ready()
|
||||
{
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
}
|
||||
|
||||
public void Continue()
|
||||
{
|
||||
GetParent<Control>().Visible = false;
|
||||
GetTree().Paused = false;
|
||||
GetTree().Paused = previousPaused;
|
||||
}
|
||||
public void Restart()
|
||||
{
|
||||
|
|
@ -26,6 +27,7 @@ public partial class PauseMenu : Control
|
|||
public static void Pause()
|
||||
{
|
||||
Instance.GetParent<Control>().Visible = true;
|
||||
Instance.previousPaused = Instance.GetTree().Paused;
|
||||
Instance.GetTree().Paused = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
using Godot;
|
||||
using Newlon;
|
||||
using Newlon.Components;
|
||||
using Newlon.Components.GUI.Seedpackets;
|
||||
using Newlon.Components.Plants;
|
||||
|
||||
public partial class Previewport : SubViewport
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public partial class PlantEyesightLimiter : CollisionShape2D
|
|||
{
|
||||
if (Shape is SegmentShape2D segment)
|
||||
{
|
||||
segment.B = new Vector2(Utility.RightFieldBoundary.X - GlobalPosition.X, 0);
|
||||
segment.B = new Vector2(Utility.RightFieldBoundary.X - GlobalPosition.X+Utility.TileWidth/2.0f, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue