xiandie/scene/prop/prop_hud.tscn

173 lines
6.1 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=12 format=3 uid="uid://dc778gsjfr3ky"]
2024-12-23 01:29:31 +00:00
[ext_resource type="Script" path="res://scene/prop/prop_hud.gd" id="1_bbv0a"]
2025-01-17 10:45:40 +00:00
[ext_resource type="Texture2D" uid="uid://dok08tovej18w" path="res://asset/art/ui/hud/normal_left.png" id="2_bjc2b"]
[ext_resource type="PackedScene" uid="uid://c85t6stvytvjn" path="res://scene/entity/general/sfx.tscn" id="2_g6c03"]
2025-01-17 10:45:40 +00:00
[ext_resource type="Texture2D" uid="uid://c45k7ncg6xhpv" path="res://asset/art/ui/hud/pressed_left.png" id="3_fca7p"]
[ext_resource type="Texture2D" uid="uid://c2jq2neda32ix" path="res://asset/art/ui/hud/Prop.png" id="5_6tt77"]
[ext_resource type="Texture2D" uid="uid://0uwun1mo726u" path="res://asset/art/prop/c02/绳子物品.png" id="6_0m706"]
[ext_resource type="FontFile" uid="uid://dr8bp6p7byb37" path="res://asset/font/字体/方正楷体简体.TTF" id="10_mye4q"]
2025-01-17 10:45:40 +00:00
[ext_resource type="Texture2D" uid="uid://c1ogeaa836kry" path="res://asset/art/ui/hud/normal_right.png" id="10_vkaik"]
[ext_resource type="Script" path="res://scene/prop/test_hbox.gd" id="11_008sv"]
2025-01-17 10:45:40 +00:00
[ext_resource type="Texture2D" uid="uid://d03la4d2swk0k" path="res://asset/art/ui/hud/pressed_right.png" id="11_a512b"]
2024-12-23 01:29:31 +00:00
[sub_resource type="LabelSettings" id="LabelSettings_830v8"]
font = ExtResource("10_mye4q")
font_size = 36
[node name="PropHUD" type="Control"]
process_mode = 3
2025-01-07 10:54:50 +00:00
custom_minimum_size = Vector2(600, 500)
layout_mode = 3
anchors_preset = 0
offset_left = 8.0
2024-12-23 01:29:31 +00:00
offset_top = 4.0
2025-01-07 10:54:50 +00:00
offset_right = 608.0
offset_bottom = 504.0
2024-12-23 01:29:31 +00:00
scale = Vector2(0.3, 0.3)
script = ExtResource("1_bbv0a")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
offset_right = 214.0
offset_bottom = 193.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
2024-12-23 01:29:31 +00:00
2025-01-13 08:09:57 +00:00
[node name="SfxClick" parent="VBoxContainer/HBoxContainer" instance=ExtResource("2_g6c03")]
unique_name_in_owner = true
[node name="LeftMargin" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
2024-12-23 01:29:31 +00:00
layout_mode = 2
size_flags_horizontal = 0
2024-12-23 01:29:31 +00:00
theme_override_constants/margin_left = 8
[node name="LeftButton" type="TextureButton" parent="VBoxContainer/HBoxContainer/LeftMargin"]
unique_name_in_owner = true
visible = false
2024-12-23 01:29:31 +00:00
layout_mode = 2
size_flags_vertical = 4
texture_normal = ExtResource("2_bjc2b")
texture_pressed = ExtResource("3_fca7p")
stretch_mode = 5
[node name="HudRect" type="NinePatchRect" parent="VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(140, 140)
2024-12-23 01:29:31 +00:00
layout_mode = 2
size_flags_horizontal = 0
2024-12-23 01:29:31 +00:00
size_flags_vertical = 4
texture = ExtResource("5_6tt77")
region_rect = Rect2(0, 1, 139, 139)
patch_margin_left = 6
patch_margin_top = 6
patch_margin_right = 6
patch_margin_bottom = 6
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HBoxContainer/HudRect"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -70.0
offset_right = 140.0
offset_bottom = 70.0
grow_vertical = 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="PropScrollContainer" type="ScrollContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(130, 130)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
mouse_filter = 2
scroll_horizontal = 130
horizontal_scroll_mode = 3
vertical_scroll_mode = 0
[node name="PropsHBox" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/PropScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 0
theme_override_constants/separation = 0
2024-12-23 01:29:31 +00:00
[node name="Head" type="Control" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/PropScrollContainer/PropsHBox"]
custom_minimum_size = Vector2(130, 130)
layout_mode = 2
[node name="PropContainer" type="CenterContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/PropScrollContainer/PropsHBox"]
custom_minimum_size = Vector2(130, 130)
layout_mode = 2
size_flags_horizontal = 4
[node name="Control" type="Control" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/PropScrollContainer/PropsHBox/PropContainer"]
custom_minimum_size = Vector2(110, 110)
layout_mode = 2
[node name="Prop" type="TextureButton" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/PropScrollContainer/PropsHBox/PropContainer/Control"]
layout_mode = 0
offset_right = 146.0
offset_bottom = 146.0
scale = Vector2(0.75, 0.75)
texture_normal = ExtResource("6_0m706")
stretch_mode = 5
[node name="Tail" type="Control" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/PropScrollContainer/PropsHBox"]
custom_minimum_size = Vector2(130, 130)
layout_mode = 2
2024-12-23 01:29:31 +00:00
[node name="RightMargin" type="MarginContainer" parent="VBoxContainer/HBoxContainer"]
2024-12-23 01:29:31 +00:00
layout_mode = 2
size_flags_horizontal = 0
2024-12-23 01:29:31 +00:00
theme_override_constants/margin_right = 8
[node name="RightButton" type="TextureButton" parent="VBoxContainer/HBoxContainer/RightMargin"]
unique_name_in_owner = true
visible = false
2024-12-23 01:29:31 +00:00
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture_normal = ExtResource("10_vkaik")
texture_pressed = ExtResource("11_a512b")
stretch_mode = 5
[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer"]
custom_minimum_size = Vector2(170, 0)
layout_mode = 2
size_flags_horizontal = 0
mouse_filter = 2
theme_override_constants/margin_top = 8
[node name="TitleLabel" type="Label" parent="VBoxContainer/MarginContainer2"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
text = "1012钥匙"
label_settings = SubResource("LabelSettings_830v8")
[node name="TestHBox" type="HBoxContainer" parent="."]
visible = false
layout_mode = 0
offset_left = 450.0
offset_top = 476.667
offset_right = 490.0
offset_bottom = 516.667
mouse_filter = 2
script = ExtResource("11_008sv")
[node name="AddButton" type="Button" parent="TestHBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 42
text = "add_item"
[node name="RemoveButton" type="Button" parent="TestHBox"]
layout_mode = 2
theme_override_font_sizes/font_size = 42
text = "remove_item"