Finish refactoring other than making sure bonuses appear on player stat side

This commit is contained in:
2024-09-12 04:26:29 -07:00
parent b4662a0c7b
commit af384d3ddb
11 changed files with 204 additions and 127 deletions

View File

@@ -67,9 +67,14 @@ public partial class PlayerInfoUI : Control, IPlayerInfoUI
HPNumber.Text = $"{obj}/{GameRepo.PlayerData.MaximumHP.Value}";
}
public void DisplayInventoryFullMessage(string rejectedItemName)
public async void DisplayInventoryFullMessage(string rejectedItemName)
{
var newLabel = new Label() { Text = $"Could not pick up {rejectedItemName}.", LabelSettings = _labelSettings };
PlayerInfo.AddChild(newLabel);
GetTree().CreateTimer(5f).Timeout += () =>
{
PlayerInfo.RemoveChild(newLabel);
};
}
}