SpielBackupAlt/Inventory.tscn

197 lines
5.2 KiB
Plaintext
Raw Permalink Normal View History

2024-12-26 14:54:06 +00:00
[gd_scene load_steps=13 format=2]
[ext_resource path="res://Inventory.gd" type="Script" id=1]
[ext_resource path="res://Tooltip.gd" type="Script" id=2]
[ext_resource path="res://images/tooltip.png" type="Texture" id=3]
[ext_resource path="res://CharacterPanel.gd" type="Script" id=4]
[ext_resource path="res://DraggableBar.gd" type="Script" id=5]
[ext_resource path="res://ItemSlot.gd" type="Script" id=6]
[ext_resource path="res://InventoryManager.gd" type="Script" id=7]
[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0.203922, 0.203922, 0.203922, 1 )
[sub_resource type="Environment" id=6]
ambient_light_color = Color( 1, 1, 1, 1 )
[sub_resource type="World" id=5]
environment = SubResource( 6 )
[sub_resource type="CapsuleMesh" id=3]
[sub_resource type="CubeMesh" id=4]
[node name="Inventory" type="Node"]
script = ExtResource( 7 )
[node name="CharacterPanel" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -80.0
margin_top = -50.0
margin_right = 80.0
mouse_filter = 1
script = ExtResource( 4 )
[node name="Grid" type="GridContainer" parent="CharacterPanel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 158.0
margin_bottom = 50.0
custom_constants/vseparation = 4
columns = 3
[node name="Slot1" type="Panel" parent="CharacterPanel/Grid"]
margin_right = 50.0
margin_bottom = 50.0
rect_min_size = Vector2( 50, 50 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Slot2" type="Panel" parent="CharacterPanel/Grid"]
margin_left = 54.0
margin_right = 104.0
margin_bottom = 50.0
rect_min_size = Vector2( 50, 50 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Slot3" type="Panel" parent="CharacterPanel/Grid"]
margin_left = 108.0
margin_right = 158.0
margin_bottom = 50.0
rect_min_size = Vector2( 50, 50 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Inventory" type="Panel" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = 154.0
margin_top = -104.0
margin_right = 404.0
margin_bottom = 128.0
mouse_filter = 1
script = ExtResource( 1 )
[node name="TopBar" type="Panel" parent="Inventory"]
anchor_left = -0.023
anchor_right = 1.023
anchor_bottom = 0.109
margin_left = -0.25
margin_right = -1.75
margin_bottom = -0.288
mouse_filter = 1
custom_styles/panel = SubResource( 2 )
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Inventory/TopBar"]
anchor_right = 1.0
anchor_bottom = 1.0
text = "Inventory"
align = 1
valign = 1
[node name="SlotsContainer" type="ScrollContainer" parent="Inventory"]
anchor_right = 1.0
anchor_bottom = 0.887
margin_left = 3.0
margin_top = 28.0
margin_right = -7.0
margin_bottom = 0.215988
scroll_horizontal_enabled = false
[node name="Slots" type="GridContainer" parent="Inventory/SlotsContainer"]
custom_constants/vseparation = 1
custom_constants/hseparation = 1
columns = 5
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SortRarityButton" type="Button" parent="Inventory"]
margin_left = 0.739502
margin_top = 210.26
margin_right = 96.7395
margin_bottom = 230.26
text = "Sort by Rarity"
[node name="Tooltip" type="NinePatchRect" parent="."]
visible = false
margin_left = 535.0
margin_top = 235.0
margin_right = 663.0
margin_bottom = 363.0
texture = ExtResource( 3 )
patch_margin_left = 4
patch_margin_top = 4
patch_margin_right = 4
patch_margin_bottom = 4
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Item Name" type="Label" parent="Tooltip"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -59.0
margin_top = 8.0
margin_right = 59.0
margin_bottom = 23.0
text = "Item Name"
align = 1
[node name="Item Value" type="Label" parent="Tooltip"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -59.0
margin_top = 31.5323
margin_right = 59.0
margin_bottom = 46.5323
text = "Value: 0"
[node name="ViewportContainer" type="ViewportContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
input_pass_on_modal_close_click = false
stretch = true
[node name="Viewport" type="Viewport" parent="ViewportContainer"]
size = Vector2( 1920, 1080 )
own_world = true
world = SubResource( 5 )
transparent_bg = true
handle_input_locally = false
render_target_update_mode = 3
[node name="Camera" type="Camera" parent="ViewportContainer/Viewport"]
[node name="Weapons" type="Spatial" parent="ViewportContainer/Viewport"]
[node name="Screwdriver" type="MeshInstance" parent="ViewportContainer/Viewport/Weapons"]
transform = Transform( 0.0987691, 0, 0, 0, 0.00283189, -0.153783, 0, 0.0987285, 0.00441104, 0.456545, 0.0318416, -1.60922 )
visible = false
mesh = SubResource( 3 )
[node name="Cube" type="MeshInstance" parent="ViewportContainer/Viewport/Weapons"]
transform = Transform( 0.0987691, 0, 0, 0, 0.00283189, -0.153783, 0, 0.0987285, 0.00441104, 0.456545, 0.0318416, -1.60922 )
visible = false
mesh = SubResource( 4 )
[connection signal="pressed" from="Inventory/SortRarityButton" to="Inventory" method="_on_SortRarityButton_pressed"]