Last column fixed and pause in choose your seeds

This commit is contained in:
Rendo 2025-07-12 21:12:01 +05:00
commit 1ad0e18869
6 changed files with 37 additions and 28 deletions

View file

@ -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;
}
}

View file

@ -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
{

View file

@ -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);
}
}
}