removed unnecessary icons from farming controls
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Babushka.scripts.CSharp.Common.Inventory;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
@@ -7,9 +6,6 @@ namespace Babushka.scripts.CSharp.Common.Farming;
|
||||
[GlobalClass]
|
||||
public partial class FarmingControls2D : Node2D
|
||||
{
|
||||
[Export] private Sprite2D _hoeSprite;
|
||||
[Export] private Sprite2D _wateringCanEmptySprite;
|
||||
[Export] private Sprite2D _wateringCanFilledSprite;
|
||||
[Export] private PackedScene _fieldPrefab;
|
||||
[Export] private Node2D _movingPlayer;
|
||||
[Export] private Camera2D _camera;
|
||||
@@ -49,28 +45,6 @@ public partial class FarmingControls2D : Node2D
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
switch (toolId)
|
||||
{
|
||||
case 0:
|
||||
_hoeSprite.Visible = activate;
|
||||
break;
|
||||
case 1:
|
||||
if (activate)
|
||||
{
|
||||
_wateringCanEmptySprite.Visible = true;
|
||||
GD.Print("Activating empty Watering can sprite.");
|
||||
}
|
||||
else
|
||||
{
|
||||
_wateringCanEmptySprite.Visible = false;
|
||||
_wateringCanFilledSprite.Visible = false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
_toolId = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
_toolId = activate ? toolId : -1;
|
||||
return activate;
|
||||
@@ -99,9 +73,6 @@ public partial class FarmingControls2D : Node2D
|
||||
{
|
||||
if (_toolId == 1 )
|
||||
{
|
||||
GD.Print("Watering can in hand, filling.");
|
||||
_wateringCanEmptySprite.Visible = !fillUp;
|
||||
_wateringCanFilledSprite.Visible = fillUp;
|
||||
_wateringCanFilled = fillUp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user