enough for tonight, thinking about adding a custom tooltip but maybe i should focus on other things
This commit is contained in:
parent
76c957236b
commit
270dd2a6f6
15 changed files with 213 additions and 5 deletions
24
test.tscn
24
test.tscn
|
|
@ -1,12 +1,16 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://dsfal3m4siap2"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://dsfal3m4siap2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c6oycdae5wvjf" path="res://inv_system/inventory.gd" id="1_6uqi0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dj487wauiay6i" path="res://assets/ewase bins.png" id="1_g14j6"]
|
||||
[ext_resource type="Script" uid="uid://dal8g1ce37r3w" path="res://demo_scene.gd" id="1_vbegm"]
|
||||
[ext_resource type="Script" uid="uid://dccraom7a7e8d" path="res://inv_system/item_data.gd" id="2_ehkex"]
|
||||
[ext_resource type="Resource" uid="uid://bepkdyf7dn1y0" path="res://items/hdd_item.tres" id="3_ykrsh"]
|
||||
[ext_resource type="Resource" uid="uid://bcteljob51wfj" path="res://items/battery_item.tres" id="5_00tp4"]
|
||||
[ext_resource type="Resource" uid="uid://c2wbqelme8vy1" path="res://items/ram_item.tres" id="5_g14j6"]
|
||||
[ext_resource type="Resource" uid="uid://88v5bcyrgpob" path="res://items/large_psu_item.tres" id="6_77dp3"]
|
||||
[ext_resource type="Resource" uid="uid://swd1m0hvep4c" path="res://items/small_psu_item.tres" id="7_5tkv4"]
|
||||
[ext_resource type="PackedScene" uid="uid://dgqs20xf7l8c" path="res://inv_system/item_slot.tscn" id="7_xersf"]
|
||||
[ext_resource type="Script" uid="uid://cbta38dhunndc" path="res://tooltip.gd" id="11_77dp3"]
|
||||
|
||||
[node name="Control" type="Control" node_paths=PackedStringArray("bin_inventory", "loot_button")]
|
||||
layout_mode = 3
|
||||
|
|
@ -18,7 +22,7 @@ grow_vertical = 2
|
|||
script = ExtResource("1_vbegm")
|
||||
bin_inventory = NodePath("BinPanel")
|
||||
loot_button = NodePath("LootButton")
|
||||
loot_pool = Array[ExtResource("2_ehkex")]([ExtResource("3_ykrsh"), ExtResource("5_g14j6")])
|
||||
loot_pool = Array[ExtResource("2_ehkex")]([ExtResource("3_ykrsh"), ExtResource("5_g14j6"), ExtResource("5_00tp4"), ExtResource("6_77dp3"), ExtResource("7_5tkv4")])
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
|
|
@ -66,7 +70,6 @@ columns = 5
|
|||
|
||||
[node name="ItemSlot" parent="InventoryPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
||||
layout_mode = 2
|
||||
item = ExtResource("3_ykrsh")
|
||||
|
||||
[node name="ItemSlot2" parent="InventoryPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
||||
layout_mode = 2
|
||||
|
|
@ -189,4 +192,19 @@ grow_horizontal = 2
|
|||
grow_vertical = 0
|
||||
text = "Return to workshop"
|
||||
|
||||
[node name="Tooltip" type="PanelContainer" parent="." node_paths=PackedStringArray("tooltip_label")]
|
||||
layout_mode = 1
|
||||
offset_right = 161.0
|
||||
offset_bottom = 40.0
|
||||
mouse_filter = 2
|
||||
script = ExtResource("11_77dp3")
|
||||
tooltip_label = NodePath("VBoxContainer/Label")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Tooltip"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Tooltip/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Item Name"
|
||||
|
||||
[connection signal="pressed" from="LootButton" to="." method="_on_loot_button_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue