Implement even more inventory/UI stuff
This commit is contained in:
@@ -64,8 +64,7 @@ public partial class InventoryMenu : Control, IInventoryMenu
|
||||
|
||||
public void PopulatePlayerInfo()
|
||||
{
|
||||
|
||||
FloorLabel.Text = $"Floor 0";
|
||||
FloorLabel.Text = $"Level {GameRepo.CurrentFloor:D2}";
|
||||
|
||||
var currentLevel = GameRepo.PlayerStatInfo.Value.CurrentLevel;
|
||||
CurrentLevelLabel.Text = $"Level {currentLevel:D2}";
|
||||
@@ -227,6 +226,16 @@ public partial class InventoryMenu : Control, IInventoryMenu
|
||||
ATKBonusLabel.Text = atkBonus != 0 ? $"{atkBonus:+0;-#}" : "...";
|
||||
var defBonus = GameRepo.PlayerStatInfo.Value.BonusDefense;
|
||||
DEFBonusLabel.Text = defBonus != 0 ? $"{defBonus:+0;-#}" : "...";
|
||||
|
||||
var currentHP = GameRepo.PlayerStatInfo.Value.CurrentHP;
|
||||
var maxHP = GameRepo.PlayerStatInfo.Value.MaximumHP;
|
||||
|
||||
HPValue.Text = $"{currentHP}/{maxHP}";
|
||||
|
||||
var currentVT = GameRepo.PlayerStatInfo.Value.CurrentVT;
|
||||
var maxVT = GameRepo.PlayerStatInfo.Value.MaximumVT;
|
||||
|
||||
VTValue.Text = $"{currentVT}/{maxVT}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user