🚧 WIP trying to make fields have outlines again

This commit is contained in:
2025-12-15 22:45:02 +01:00
parent ce113e16da
commit abed751d29
4 changed files with 28 additions and 18 deletions
@@ -32,6 +32,7 @@ public partial class FieldActivator : Node
_field.UpdateFieldState(FieldState.Tilled);
EmitSignal(SignalName.FieldCreated, _field);
_used = true;
ToggleInteractionArea();
}
}
@@ -99,25 +99,21 @@ public partial class FieldBehaviour2D : Sprite2D, ISaveable
case FieldState.Empty:
FieldState = FieldState.Empty;
PlantingInteraction.IsActive = false;
PlantingInteraction.ProcessMode = ProcessModeEnum.Disabled;
break;
case FieldState.Tilled:
FieldState = FieldState.Tilled;
_fieldSprite.Texture = Tilled;
PlantingInteraction.IsActive = true;
PlantingInteraction.ProcessMode = ProcessModeEnum.Inherit;
break;
case FieldState.Watered:
FieldState = FieldState.Watered;
_fieldSprite.Texture = Watered;
PlantingInteraction.IsActive = true;
PlantingInteraction.ProcessMode = ProcessModeEnum.Inherit;
break;
case FieldState.Planted:
FieldState = FieldState.Planted;
_fieldSprite.Texture = Tilled;
PlantingInteraction.IsActive = false;
PlantingInteraction.ProcessMode = ProcessModeEnum.Disabled;
break;
default:
FieldState = FieldState.NotFound;