[gd_scene load_steps=17 format=3 uid="uid://bkhg56q71vsjv"] [ext_resource type="Script" uid="uid://jxkjnscuxcyi" path="res://inv_system/player_inventory.gd" id="1_vk2kx"] [ext_resource type="Script" uid="uid://c6oycdae5wvjf" path="res://inv_system/inventory.gd" id="2_hk4hx"] [ext_resource type="PackedScene" uid="uid://dgqs20xf7l8c" path="res://inv_system/item_slot.tscn" id="3_8qgtd"] [ext_resource type="Script" uid="uid://chxgum3v3d1o7" path="res://crafting/recipe book/recipie_book.gd" id="4_bdgfq"] [ext_resource type="Script" uid="uid://drm5jfhadys7l" path="res://crafting/recipe book/scavengeBook.gd" id="5_bdgfq"] [ext_resource type="Texture2D" uid="uid://cuftm024jj0o2" path="res://assets/new bubble.png" id="8_icm48"] [ext_resource type="Texture2D" uid="uid://of71gurkt2v2" path="res://assets/glyphs/keyboard_shift.png" id="12_txpda"] [ext_resource type="Texture2D" uid="uid://b6pddnr3aascg" path="res://assets/glyphs/mouse_left.png" id="13_klg10"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_txpda"] content_margin_left = 10.0 content_margin_top = 4.0 content_margin_right = 10.0 content_margin_bottom = 4.0 bg_color = Color(0.1, 0.1, 0.1, 0.6) border_color = Color(1, 1, 0, 0.7490196) corner_radius_top_left = 15 corner_radius_top_right = 15 corner_detail = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_klg10"] content_margin_left = 10.0 content_margin_top = 4.0 content_margin_right = 10.0 content_margin_bottom = 4.0 bg_color = Color(0.46963727, 0.46963727, 0.46963727, 0.6) border_width_left = 2 border_width_top = 2 border_width_right = 2 border_color = Color(1, 1, 0, 0.7490196) corner_radius_top_left = 15 corner_radius_top_right = 15 corner_detail = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xr7r7"] content_margin_left = 10.0 content_margin_top = 4.0 content_margin_right = 10.0 content_margin_bottom = 4.0 bg_color = Color(0.1, 0.1, 0.1, 0.6) border_width_left = 2 border_width_top = 2 border_width_right = 2 border_color = Color(1, 1, 0, 0.7490196) corner_radius_top_left = 15 corner_radius_top_right = 15 corner_detail = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_g2557"] content_margin_left = 10.0 content_margin_top = 4.0 content_margin_right = 10.0 content_margin_bottom = 4.0 bg_color = Color(0.6, 0.6, 0.6, 0) border_width_left = 2 border_width_top = 2 border_width_right = 2 border_color = Color(1, 1, 0, 0.7490196) corner_radius_top_left = 15 corner_radius_top_right = 15 corner_detail = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_icm48"] content_margin_left = 0.0 content_margin_top = 0.0 content_margin_right = 0.0 content_margin_bottom = 0.0 bg_color = Color(0.101960786, 0.101960786, 0.101960786, 0) corner_radius_top_left = 3 corner_radius_top_right = 3 corner_radius_bottom_right = 3 corner_radius_bottom_left = 3 corner_detail = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8qgtd"] content_margin_left = 0.0 content_margin_top = 0.0 content_margin_right = 0.0 content_margin_bottom = 0.0 bg_color = Color(0.6, 0.6, 0.6, 0) corner_radius_top_left = 3 corner_radius_top_right = 3 corner_radius_bottom_right = 3 corner_radius_bottom_left = 3 corner_detail = 5 [sub_resource type="LabelSettings" id="LabelSettings_bdgfq"] font_size = 24 font_color = Color(1, 0.7490196, 0, 1) [sub_resource type="LabelSettings" id="LabelSettings_xr7r7"] font_size = 24 [node name="PlayerInventory" type="Control" node_paths=PackedStringArray("inventory_panel", "button", "money_label", "reminder_bubble")] z_index = 2 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_vk2kx") inventory_panel = NodePath("Inventory") button = NodePath("Button") money_label = NodePath("PanelContainer/Label") reminder_bubble = NodePath("ReminderBuble") [node name="Button" type="Button" parent="."] visible = false layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_top = -31.0 offset_right = 129.0 grow_vertical = 0 text = "Show Inventory" [node name="Inventory" type="PanelContainer" parent="." node_paths=PackedStringArray("grid", "inv_label")] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 241.0 offset_top = 154.0 offset_right = -635.0 offset_bottom = -136.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("2_hk4hx") inventory_name = "Your Inventory" type = "Inventory" grid = NodePath("MarginContainer/VBoxContainer/ScrollContainer/GridContainer") inv_label = NodePath("MarginContainer/VBoxContainer/Label") [node name="MarginContainer" type="MarginContainer" parent="Inventory"] 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="Inventory/MarginContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Inventory/MarginContainer/VBoxContainer"] layout_mode = 2 text = "Inventory 1" [node name="ScrollContainer" type="ScrollContainer" parent="Inventory/MarginContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 [node name="GridContainer" type="GridContainer" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer"] layout_mode = 2 size_flags_vertical = 3 columns = 5 [node name="ItemSlot" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot2" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot3" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot4" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot5" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot6" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot7" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot8" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot9" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot10" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot11" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot12" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot13" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot14" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot15" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot16" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot17" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot18" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot19" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot20" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot21" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot22" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot23" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot24" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot25" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot26" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot27" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot28" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot29" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="ItemSlot30" parent="Inventory/MarginContainer/VBoxContainer/ScrollContainer/GridContainer" instance=ExtResource("3_8qgtd")] layout_mode = 2 [node name="TabContainer" type="TabContainer" parent="."] layout_mode = 0 offset_left = 1.0 offset_top = 2.0 offset_right = 237.0 offset_bottom = 646.0 theme_override_colors/font_selected_color = Color(0.9490196, 0.9490196, 0, 1) theme_override_colors/font_unselected_color = Color(0.99637884, 0.99637896, 0.99637896, 1) theme_override_styles/tab_unselected = SubResource("StyleBoxFlat_txpda") theme_override_styles/tab_hovered = SubResource("StyleBoxFlat_klg10") theme_override_styles/tab_selected = SubResource("StyleBoxFlat_xr7r7") theme_override_styles/tab_focus = SubResource("StyleBoxFlat_g2557") current_tab = 0 [node name="Recipe Book" type="PanelContainer" parent="TabContainer" node_paths=PackedStringArray("vbox")] layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_icm48") script = ExtResource("4_bdgfq") vbox = NodePath("MarginContainer/ScrollContainer/VBoxContainer") metadata/_tab_index = 0 [node name="MarginContainer" type="MarginContainer" parent="TabContainer/Recipe Book"] 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="ScrollContainer" type="ScrollContainer" parent="TabContainer/Recipe Book/MarginContainer"] layout_mode = 2 horizontal_scroll_mode = 0 [node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Recipe Book/MarginContainer/ScrollContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_override_constants/separation = 10 [node name="Salvage" type="PanelContainer" parent="TabContainer" node_paths=PackedStringArray("grid")] visible = false layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_8qgtd") script = ExtResource("5_bdgfq") grid = NodePath("MarginContainer/VBoxContainer/GridContainer") metadata/_tab_index = 1 [node name="MarginContainer" type="MarginContainer" parent="TabContainer/Salvage"] 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="TabContainer/Salvage/MarginContainer"] layout_mode = 2 [node name="Label" type="Label" parent="TabContainer/Salvage/MarginContainer/VBoxContainer"] layout_mode = 2 text = "Hover over an item to see what you can get from salvaging it" horizontal_alignment = 1 autowrap_mode = 2 [node name="GridContainer" type="GridContainer" parent="TabContainer/Salvage/MarginContainer/VBoxContainer"] layout_mode = 2 size_flags_horizontal = 4 columns = 4 [node name="PanelContainer" type="PanelContainer" parent="."] layout_mode = 0 offset_left = 250.0 offset_top = 525.0 offset_right = 507.0 offset_bottom = 567.0 [node name="Label" type="Label" parent="PanelContainer"] layout_mode = 2 text = "Money: $0" label_settings = SubResource("LabelSettings_bdgfq") horizontal_alignment = 1 [node name="PanelContainer2" type="PanelContainer" parent="."] layout_mode = 0 offset_left = 250.0 offset_top = 575.0 offset_right = 507.0 offset_bottom = 617.0 [node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer2"] layout_mode = 2 theme_override_constants/separation = 0 alignment = 1 [node name="Label" type="Label" parent="PanelContainer2/HBoxContainer"] layout_mode = 2 text = "Quick Move:" label_settings = SubResource("LabelSettings_xr7r7") horizontal_alignment = 1 [node name="TextureRect" type="TextureRect" parent="PanelContainer2/HBoxContainer"] layout_mode = 2 texture = ExtResource("12_txpda") expand_mode = 3 [node name="Label2" type="Label" parent="PanelContainer2/HBoxContainer"] layout_mode = 2 text = "+" label_settings = SubResource("LabelSettings_xr7r7") horizontal_alignment = 1 [node name="TextureRect2" type="TextureRect" parent="PanelContainer2/HBoxContainer"] layout_mode = 2 texture = ExtResource("13_klg10") expand_mode = 3 [node name="ReminderBuble" type="TextureRect" parent="."] self_modulate = Color(1, 0, 0.23137255, 0.6039216) layout_mode = 0 offset_left = 207.0 offset_right = 363.0 offset_bottom = 141.0 texture = ExtResource("8_icm48") expand_mode = 1 [node name="Label" type="Label" parent="ReminderBuble"] layout_mode = 0 offset_left = 39.0 offset_top = 10.0 offset_right = 144.0 offset_bottom = 129.0 text = "View your salvaging recipes here" horizontal_alignment = 1 vertical_alignment = 1 autowrap_mode = 2 [connection signal="pressed" from="Button" to="." method="_on_button_pressed"] [connection signal="tab_selected" from="TabContainer" to="." method="_on_tab_container_tab_selected"]