From 385fbbe6bf988664140d6af8b13319c101fc4d4f Mon Sep 17 00:00:00 2001 From: Bo Thompson Date: Thu, 28 Aug 2025 10:16:19 -0400 Subject: [PATCH] More work on items for quests and display --- data/items/item.gd | 2 ++ templates/item_display_window.tscn | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/data/items/item.gd b/data/items/item.gd index 59127b8..8869e73 100644 --- a/data/items/item.gd +++ b/data/items/item.gd @@ -6,3 +6,5 @@ class_name Item extends Resource @export var brief : String @export var quantity : int = 1 @export var max_quantity : int = 1 +@export var varies : bool +@export var per : bool diff --git a/templates/item_display_window.tscn b/templates/item_display_window.tscn index 9da8925..4a8f768 100644 --- a/templates/item_display_window.tscn +++ b/templates/item_display_window.tscn @@ -6,7 +6,7 @@ [node name="Item Display Window" type="Window"] oversampling_override = 1.0 -size = Vector2i(300, 300) +size = Vector2i(300, 400) borderless = true popup_window = true script = ExtResource("1_n2g4t") @@ -27,6 +27,19 @@ theme_override_constants/margin_bottom = 0 [node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"] layout_mode = 2 +[node name="ColorRect" type="ColorRect" parent="Panel/MarginContainer/VBoxContainer"] +custom_minimum_size = Vector2(0, 30) +layout_mode = 2 +color = Color(0.2558804, 0.37977988, 0.7036519, 1) + +[node name="Button" type="Button" parent="Panel/MarginContainer/VBoxContainer/ColorRect"] +custom_minimum_size = Vector2(30, 0) +layout_mode = 0 +offset_left = 268.0 +offset_right = 298.0 +offset_bottom = 31.0 +text = "X" + [node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"] layout_mode = 2