xiandie/ui/hud/Inventory.tscn

101 lines
3.9 KiB
Plaintext
Raw Normal View History

2024-12-23 01:29:31 +00:00
[gd_scene load_steps=14 format=3 uid="uid://cmyxinb0ickva"]
[ext_resource type="Script" path="res://UI/Inventory.gd" id="1_gbar7"]
[ext_resource type="Texture2D" uid="uid://2jc6qio7tmuk" path="res://assets/HUD/背包按键/道具快捷栏/zz.png" id="2_c4gqh"]
[ext_resource type="Texture2D" uid="uid://dr1fvkrmtynb6" path="res://assets/HUD/背包按键/道具快捷栏/az.png" id="3_ftsid"]
[ext_resource type="Texture2D" uid="uid://b3pfdsyj0dcdb" path="res://assets/HUD/背包按键/道具快捷栏/wz.png" id="4_rn4wj"]
[ext_resource type="Texture2D" uid="uid://ykv7o43dtjn0" path="res://assets/HUD/背包按键/道具快捷栏/k.png" id="5_o2bgy"]
[ext_resource type="Texture2D" uid="uid://bgjt0y7vs5ix0" path="res://assets/HUD/背包按键/道具快捷栏/s.png" id="6_abx1s"]
[ext_resource type="Texture2D" uid="uid://ukdbwrvd8qdq" path="res://assets/HUD/背包按键/道具快捷栏/zy.png" id="7_n66je"]
[ext_resource type="Texture2D" uid="uid://sv8u083cpov6" path="res://assets/HUD/背包按键/道具快捷栏/ay.png" id="8_iym7w"]
[ext_resource type="Texture2D" uid="uid://dva4vpj5uo8td" path="res://assets/HUD/背包按键/道具快捷栏/wy.png" id="9_aoirx"]
[ext_resource type="FontFile" uid="uid://dehtmf0lanaf3" path="res://assets/HUD/字体/方正楷体简体.TTF" id="10_8p7i8"]
[sub_resource type="FontFile" id="FontFile_5oap5"]
subpixel_positioning = 0
msdf_pixel_range = 14
msdf_size = 128
cache/0/16/0/ascent = 0.0
cache/0/16/0/descent = 0.0
cache/0/16/0/underline_position = 0.0
cache/0/16/0/underline_thickness = 0.0
cache/0/16/0/scale = 1.0
cache/0/16/0/kerning_overrides/16/0 = Vector2(0, 0)
[sub_resource type="Theme" id="Theme_bioai"]
default_base_scale = 0.98
default_font = SubResource("FontFile_5oap5")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jk1w7"]
size = Vector2(83.6779, 34.3683)
[node name="Inventory" type="VBoxContainer"]
offset_left = 10.0
offset_top = 7.0
offset_right = 277.0
offset_bottom = 184.0
scale = Vector2(0.18, 0.18)
theme_override_constants/separation = 5
script = ExtResource("1_gbar7")
[node name="ItemBar" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="Prev" type="TextureButton" parent="ItemBar"]
custom_minimum_size = Vector2(60, 0)
layout_mode = 2
theme = SubResource("Theme_bioai")
texture_normal = ExtResource("2_c4gqh")
texture_pressed = ExtResource("3_ftsid")
texture_disabled = ExtResource("4_rn4wj")
stretch_mode = 3
[node name="Use" type="TextureButton" parent="ItemBar"]
layout_mode = 2
texture_normal = ExtResource("5_o2bgy")
[node name="Prop" type="Sprite2D" parent="ItemBar/Use"]
z_index = 1
position = Vector2(72, 72)
[node name="Hand" type="Sprite2D" parent="ItemBar/Use"]
z_index = 1
position = Vector2(110, 102)
texture = ExtResource("6_abx1s")
[node name="Next" type="TextureButton" parent="ItemBar"]
custom_minimum_size = Vector2(60, 0)
layout_mode = 2
texture_normal = ExtResource("7_n66je")
texture_pressed = ExtResource("8_iym7w")
texture_disabled = ExtResource("9_aoirx")
stretch_mode = 3
[node name="Area2D" type="Area2D" parent="ItemBar"]
visible = false
position = Vector2(-200, -99.9999)
scale = Vector2(3.60011, 5.23739)
[node name="CollisionShape2D" type="CollisionShape2D" parent="ItemBar/Area2D"]
position = Vector2(91.4901, 32.4589)
scale = Vector2(1, 0.999999)
shape = SubResource("RectangleShape2D_jk1w7")
one_way_collision_margin = 0.0
[node name="Label" type="Label" parent="."]
layout_mode = 2
theme_override_fonts/font = ExtResource("10_8p7i8")
theme_override_font_sizes/font_size = 35
text = "道具的描述"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Timer" type="Timer" parent="Label"]
wait_time = 1.5
one_shot = true
[connection signal="pressed" from="ItemBar/Prev" to="." method="_on_prev_pressed"]
[connection signal="pressed" from="ItemBar/Use" to="." method="_on_use_pressed"]
[connection signal="pressed" from="ItemBar/Next" to="." method="_on_next_pressed"]
[connection signal="timeout" from="Label/Timer" to="." method="_on_timer_timeout"]