Implement even more inventory/UI stuff

This commit is contained in:
2024-09-10 01:22:34 -07:00
parent 911f75da14
commit 62a9f99b81
18 changed files with 79 additions and 51 deletions

View File

@@ -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}";
}
}
}

View File

@@ -130,7 +130,7 @@ layout_mode = 2
[node name="FloorLabel" type="Label" parent="InventoryInfo/HBoxContainer/PlayerInfo/FloorBox"]
unique_name_in_owner = true
layout_mode = 2
text = "FLOOR 02"
text = "FLOOR 00"
label_settings = SubResource("LabelSettings_q0afw")
[node name="LevelBox" type="HBoxContainer" parent="InventoryInfo/HBoxContainer/PlayerInfo"]
@@ -143,7 +143,7 @@ layout_mode = 2
[node name="CurrentLevelLabel" type="Label" parent="InventoryInfo/HBoxContainer/PlayerInfo/LevelBox"]
unique_name_in_owner = true
layout_mode = 2
text = "LEVEL 4"
text = "LEVEL 0"
label_settings = SubResource("LabelSettings_yw3yo")
[node name="ReferenceRect2" type="ReferenceRect" parent="InventoryInfo/HBoxContainer/PlayerInfo"]
@@ -272,7 +272,7 @@ layout_mode = 2
[node name="ATKBonusLabel" type="Label" parent="InventoryInfo/HBoxContainer/PlayerInfo/ATKBox"]
unique_name_in_owner = true
layout_mode = 2
text = "+50"
text = "..."
label_settings = ExtResource("6_tmdno")
[node name="DEFBox" type="HBoxContainer" parent="InventoryInfo/HBoxContainer/PlayerInfo"]
@@ -329,7 +329,6 @@ unique_name_in_owner = true
custom_minimum_size = Vector2(800, 100)
layout_mode = 2
size_flags_horizontal = 0
text = "Mask of the Goddess of Destruction"
label_settings = ExtResource("6_q3oua")
autowrap_mode = 2
@@ -338,7 +337,6 @@ unique_name_in_owner = true
custom_minimum_size = Vector2(800, 200)
layout_mode = 2
size_flags_horizontal = 0
text = "Raises ATK"
label_settings = SubResource("LabelSettings_mundu")
autowrap_mode = 2