From 169247717616aec4bf0cf22fcc17773301553db1 Mon Sep 17 00:00:00 2001 From: Rendo Date: Mon, 30 Jun 2025 14:24:08 +0500 Subject: [PATCH] Fixed focus on disabled packets --- scripts/components/gui/seedpackets/Seedpacket.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/components/gui/seedpackets/Seedpacket.cs b/scripts/components/gui/seedpackets/Seedpacket.cs index 6a158c3..3435b65 100644 --- a/scripts/components/gui/seedpackets/Seedpacket.cs +++ b/scripts/components/gui/seedpackets/Seedpacket.cs @@ -40,6 +40,14 @@ public partial class Seedpacket : TextureButton public override void _Process(double delta) { Disabled = disablePacket || _timer.TimeLeft > 0; + if (Disabled) + { + FocusMode = FocusModeEnum.None; + } + else + { + FocusMode = FocusModeEnum.All; + } if (_handler is ISeedpacketProcess processHandler) processHandler.Process(); } public void SetPlantResource( PlantResource resource )