Finish refactoring other than making sure bonuses appear on player stat side
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user