RustHacker/scenes/ewaste.tscn

145 lines
5.6 KiB
Text
Raw Normal View History

2026-01-11 16:37:57 +11:00
[gd_scene load_steps=12 format=3 uid="uid://dsfal3m4siap2"]
2026-01-10 18:05:09 +11:00
[ext_resource type="Script" uid="uid://c6oycdae5wvjf" path="res://inv_system/inventory.gd" id="1_6uqi0"]
2026-01-10 23:17:55 +11:00
[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"]
2026-01-10 18:05:09 +11:00
[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"]
2026-01-10 18:05:09 +11:00
[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"]
2026-01-10 23:17:55 +11:00
[ext_resource type="PackedScene" uid="uid://dgqs20xf7l8c" path="res://inv_system/item_slot.tscn" id="7_xersf"]
2026-01-10 18:05:09 +11:00
2026-01-11 16:37:57 +11:00
[sub_resource type="LabelSettings" id="LabelSettings_00tp4"]
font_color = Color(1, 0, 0, 0.5764706)
2026-01-11 18:11:14 +11:00
[node name="ewaste" type="Control" node_paths=PackedStringArray("bin_inventory", "loot_button")]
2026-01-10 18:05:09 +11:00
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2026-01-11 16:05:12 +11:00
mouse_filter = 2
2026-01-10 23:17:55 +11:00
script = ExtResource("1_vbegm")
bin_inventory = NodePath("BinPanel")
loot_button = NodePath("LootButton")
loot_pool = Array[ExtResource("2_ehkex")]([ExtResource("3_ykrsh"), ExtResource("5_g14j6"), ExtResource("5_00tp4"), ExtResource("6_77dp3"), ExtResource("7_5tkv4")])
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="TextureRect" type="TextureRect" parent="."]
2026-01-11 16:05:12 +11:00
z_index = -3
2026-01-10 23:17:55 +11:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2026-01-11 16:05:12 +11:00
mouse_filter = 2
2026-01-10 23:17:55 +11:00
texture = ExtResource("1_g14j6")
expand_mode = 3
[node name="BinPanel" type="PanelContainer" parent="." node_paths=PackedStringArray("grid", "inv_label")]
2026-01-11 16:05:12 +11:00
z_index = 2
2026-01-10 23:17:55 +11:00
layout_mode = 0
offset_left = 714.0
offset_top = 386.0
offset_right = 1066.0
2026-01-11 16:37:57 +11:00
offset_bottom = 587.0
2026-01-10 23:17:55 +11:00
script = ExtResource("1_6uqi0")
inventory_name = "E-waste Recycling Bin"
2026-01-11 18:11:14 +11:00
type = "Loot"
2026-01-10 23:17:55 +11:00
grid = NodePath("MarginContainer/VBoxContainer/ScrollContainer/GridContainer")
inv_label = NodePath("MarginContainer/VBoxContainer/Label")
[node name="MarginContainer" type="MarginContainer" parent="BinPanel"]
2026-01-10 18:05:09 +11:00
layout_mode = 2
2026-01-10 23:17:55 +11:00
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="VBoxContainer" type="VBoxContainer" parent="BinPanel/MarginContainer"]
layout_mode = 2
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="Label" type="Label" parent="BinPanel/MarginContainer/VBoxContainer"]
2026-01-10 18:05:09 +11:00
layout_mode = 2
2026-01-10 23:17:55 +11:00
text = "Inventory 1"
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="ScrollContainer" type="ScrollContainer" parent="BinPanel/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="GridContainer" type="GridContainer" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer"]
2026-01-10 18:05:09 +11:00
layout_mode = 2
2026-01-10 23:17:55 +11:00
size_flags_vertical = 3
columns = 5
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="ItemSlot12" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
layout_mode = 2
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="ItemSlot13" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
2026-01-10 18:05:09 +11:00
layout_mode = 2
2026-01-10 23:17:55 +11:00
[node name="ItemSlot14" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
layout_mode = 2
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="ItemSlot15" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
2026-01-10 18:05:09 +11:00
layout_mode = 2
2026-01-10 23:17:55 +11:00
[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
2026-01-10 18:05:09 +11:00
2026-01-10 23:17:55 +11:00
[node name="ItemSlot19" parent="BinPanel/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("7_xersf")]
2026-01-10 18:05:09 +11:00
layout_mode = 2
2026-01-10 23:17:55 +11:00
[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
2026-01-11 16:37:57 +11:00
[node name="Label2" type="Label" parent="BinPanel/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "(Items left here will be destroyed)"
label_settings = SubResource("LabelSettings_00tp4")
horizontal_alignment = 1
2026-01-10 23:17:55 +11:00
[node name="LootButton" type="Button" parent="."]
2026-01-10 18:05:09 +11:00
layout_mode = 1
2026-01-10 23:17:55 +11:00
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -74.0
offset_top = -15.5
offset_right = 74.0
offset_bottom = 15.5
2026-01-10 18:05:09 +11:00
grow_horizontal = 2
grow_vertical = 2
2026-01-10 23:17:55 +11:00
text = "Loot E-waste bins!"
[node name="ReturnButton" type="Button" parent="."]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -81.0
offset_top = -31.0
offset_right = 81.0
grow_horizontal = 2
grow_vertical = 0
text = "Return to workshop"
[connection signal="pressed" from="LootButton" to="." method="_on_loot_button_pressed"]
2026-01-11 17:38:55 +11:00
[connection signal="pressed" from="ReturnButton" to="." method="_on_return_button_pressed"]