Fixed focus on disabled packets
This commit is contained in:
parent
6d96b1e6bd
commit
1692477176
1 changed files with 8 additions and 0 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue