signalis-eb/godot/scenes/inventory2.tscn

115 lines
3.6 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://cn7tgd4y67wnd"]
[ext_resource type="Script" uid="uid://qvoqvonnxwfc" path="res://src/inventory_ui.gd" id="1_a0rpf"]
[ext_resource type="Script" uid="uid://bx4wxlm5mv268" path="res://src/root_control.gd" id="1_as33y"]
[ext_resource type="Resource" uid="uid://bllq6ri54q3ne" path="res://resources/player_inventory.tres" id="2_as33y"]
[ext_resource type="PackedScene" uid="uid://gn8k2ir47n1m" path="res://scenes/inventory_item.tscn" id="3_tg4gd"]
[ext_resource type="Script" uid="uid://13lxe4c4fmrp" path="res://addons/FreeControl/src/CustomClasses/Carousel/Carousel.gd" id="4_usnyx"]
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_as33y"]
size = Vector2(128, 128)
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_tg4gd"]
size = Vector2(128, 128)
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_usnyx"]
size = Vector2(128, 64)
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_sebc8"]
size = Vector2(256, 256)
[node name="Inventory" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
focus_mode = 2
script = ExtResource("1_as33y")
open_action = &"open_inventory"
close_action = &"ui_close_inventory"
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.147672, 0.147672, 0.147672, 1)
[node name="Contents" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="InventoryUI" type="Control" parent="Contents" node_paths=PackedStringArray("carousel")]
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("1_a0rpf")
inventory = ExtResource("2_as33y")
item_scene = ExtResource("3_tg4gd")
carousel = NodePath("Carousel")
metadata/_custom_type_script = "uid://qvoqvonnxwfc"
[node name="Carousel" type="Container" parent="Contents/InventoryUI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -104.0
offset_top = 5.0
offset_right = -104.0
offset_bottom = 5.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("4_usnyx")
display_range = 4
snap_behavior = 2
paging_requirement = 100
[node name="ItemDetails" type="HBoxContainer" parent="Contents"]
layout_mode = 2
size_flags_vertical = 3
[node name="PlayerInfo" type="VBoxContainer" parent="Contents/ItemDetails"]
layout_mode = 2
size_flags_horizontal = 3
[node name="TextureRect" type="TextureRect" parent="Contents/ItemDetails/PlayerInfo"]
layout_mode = 2
size_flags_horizontal = 4
texture = SubResource("PlaceholderTexture2D_as33y")
[node name="TextureRect2" type="TextureRect" parent="Contents/ItemDetails/PlayerInfo"]
layout_mode = 2
size_flags_horizontal = 4
texture = SubResource("PlaceholderTexture2D_tg4gd")
[node name="TextureRect3" type="TextureRect" parent="Contents/ItemDetails/PlayerInfo"]
layout_mode = 2
size_flags_horizontal = 4
texture = SubResource("PlaceholderTexture2D_usnyx")
[node name="Display" type="VBoxContainer" parent="Contents/ItemDetails"]
layout_mode = 2
size_flags_horizontal = 3
[node name="TextureRect" type="TextureRect" parent="Contents/ItemDetails/Display"]
layout_mode = 2
size_flags_horizontal = 4
texture = SubResource("PlaceholderTexture2D_sebc8")
[node name="Description" type="VBoxContainer" parent="Contents/ItemDetails"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="Contents/ItemDetails/Description"]
layout_mode = 2
text = "a description"