166 lines
5.6 KiB
Text
166 lines
5.6 KiB
Text
[gd_scene load_steps=6 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="Texture2D" uid="uid://v01a44neaam6" path="res://assets/bubble.png" id="5_k36n4"]
|
|
[ext_resource type="PackedScene" uid="uid://dgqs20xf7l8c" path="res://inv_system/item_slot.tscn" id="7_xersf"]
|
|
|
|
[node name="ewaste" type="Control" node_paths=PackedStringArray("bin_inventory", "loot_button", "loot_bubble")]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("1_vbegm")
|
|
bin_inventory = NodePath("BinPanel")
|
|
loot_button = NodePath("LootButton")
|
|
loot_bubble = NodePath("lootBubble")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
z_index = -3
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
texture = ExtResource("1_g14j6")
|
|
expand_mode = 3
|
|
|
|
[node name="BinPanel" type="PanelContainer" parent="." node_paths=PackedStringArray("grid", "inv_label")]
|
|
z_index = 2
|
|
layout_mode = 0
|
|
offset_left = 751.0
|
|
offset_top = 376.0
|
|
offset_right = 1027.0
|
|
offset_bottom = 630.0
|
|
script = ExtResource("1_6uqi0")
|
|
inventory_name = "E-waste Recycling Bin"
|
|
type = "Loot"
|
|
grid = NodePath("MarginContainer/VBoxContainer/ScrollContainer/GridContainer")
|
|
inv_label = NodePath("MarginContainer/VBoxContainer/Label")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="BinPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 5
|
|
theme_override_constants/margin_top = 5
|
|
theme_override_constants/margin_right = 5
|
|
theme_override_constants/margin_bottom = 5
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="BinPanel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="BinPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Inventory 1"
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="BinPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
columns = 5
|
|
|
|
[node name="ItemSlot12" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot13" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot14" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot15" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot16" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot17" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot18" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot19" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot20" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="ItemSlot21" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
|
|
layout_mode = 2
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="BinPanel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 69
|
|
|
|
[node name="Delete" type="Button" parent="BinPanel/MarginContainer/VBoxContainer"]
|
|
modulate = Color(1, 0, 0, 1)
|
|
layout_mode = 2
|
|
text = "Delete Items"
|
|
|
|
[node name="LootButton" type="Button" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 245.0
|
|
offset_top = -32.0
|
|
offset_right = 393.0
|
|
offset_bottom = 22.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Loot E-waste bins!
|
|
(Uses 10 time)"
|
|
|
|
[node name="ReturnButton" type="Button" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -42.0
|
|
offset_top = -15.5
|
|
offset_right = 120.000244
|
|
offset_bottom = 15.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Return to workshop"
|
|
|
|
[node name="lootBubble" type="TextureRect" parent="."]
|
|
self_modulate = Color(1, 0, 0.23137255, 0.6039216)
|
|
layout_mode = 0
|
|
offset_left = 762.0
|
|
offset_top = 196.0
|
|
offset_right = 998.0
|
|
offset_bottom = 286.0
|
|
mouse_filter = 2
|
|
texture = ExtResource("5_k36n4")
|
|
|
|
[node name="Label" type="Label" parent="lootBubble"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 7.0
|
|
offset_bottom = -26.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Click to get items!"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[connection signal="pressed" from="BinPanel/MarginContainer/VBoxContainer/Delete" to="." method="_on_delete_pressed"]
|
|
[connection signal="pressed" from="LootButton" to="." method="_on_loot_button_pressed"]
|
|
[connection signal="pressed" from="ReturnButton" to="." method="_on_return_button_pressed"]
|