Browse Source

Minor cleanup

pull/4/head
Ryan Reed 1 month ago
parent
commit
d27cc1bb15
2 changed files with 7 additions and 2 deletions
  1. +7
    -1
      scenes/ui/inventory/inventory.tscn
  2. +0
    -1
      scenes/ui/inventory/item_rect.gd

+ 7
- 1
scenes/ui/inventory/inventory.tscn View File

@ -40,8 +40,14 @@ theme_override_constants/margin_bottom = 20
[node name="VBoxContainer" type="VBoxContainer" parent="Background/MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="Background/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"HeaderMedium"
text = "Inventory"
[node name="GridContainer" type="GridContainer" parent="Background/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/h_separation = 20
theme_override_constants/v_separation = 20
columns = 4
columns = 5

+ 0
- 1
scenes/ui/inventory/item_rect.gd View File

@ -13,7 +13,6 @@ func update_rect() -> void:
amount_label.text = "x" + str(item_resource.amount)
tooltip_text = item_resource.name + "\n" + item_resource.description
func on_stack_full(is_full: bool) -> void:
if is_full:
amount_label.add_theme_color_override("font_color", Color(1, 0, 0))


Loading…
Cancel
Save