🚧 WIP trying to make fields have outlines again
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user