[gd_scene load_steps=16 format=3 uid="uid://dc778gsjfr3ky"] [ext_resource type="Script" uid="uid://ytrf63hbqa45" path="res://scene/prop/prop_hud.gd" id="1_bbv0a"] [ext_resource type="Texture2D" uid="uid://dok08tovej18w" path="res://asset/art/ui/hud/normal_left.png" id="2_bjc2b"] [ext_resource type="AudioStream" uid="uid://cvttds81trcoc" path="res://asset/audio/sfx/UI/click.wav" id="2_lom38"] [ext_resource type="AudioStream" uid="uid://bjh1761jeu3hy" path="res://asset/audio/sfx/交互/通用发现音效.wav" id="3_bn186"] [ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="3_d7vso"] [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="Texture2D" uid="uid://d4nxjk0127u23" path="res://asset/art/ui/hud/selecting_bg.png" id="6_5ixbr"] [ext_resource type="Texture2D" uid="uid://c0gjes4a8ou3b" path="res://asset/art/ui/hud/select_mark.png" id="7_53yeo"] [ext_resource type="Texture2D" uid="uid://c1ogeaa836kry" path="res://asset/art/ui/hud/normal_right.png" id="10_vkaik"] [ext_resource type="Script" uid="uid://cmpkidbjeue6p" path="res://scene/prop/test_hbox.gd" id="11_008sv"] [ext_resource type="Texture2D" uid="uid://d03la4d2swk0k" path="res://asset/art/ui/hud/pressed_right.png" id="11_a512b"] [ext_resource type="FontVariation" uid="uid://1ryw42kej6lv" path="res://config/font_ui.tres" id="13_lom38"] [sub_resource type="LabelSettings" id="LabelSettings_830v8"] font = ExtResource("13_lom38") font_size = 36 [node name="PropHUD" type="Control"] process_mode = 3 custom_minimum_size = Vector2(600, 500) layout_mode = 3 anchors_preset = 0 offset_left = 8.0 offset_top = 4.0 offset_right = 608.0 offset_bottom = 504.0 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 [node name="SfxClick" type="AudioStreamPlayer" parent="VBoxContainer/HBoxContainer"] unique_name_in_owner = true stream = ExtResource("2_lom38") bus = &"game_sfx" script = ExtResource("3_d7vso") [node name="SfxNewProp" type="AudioStreamPlayer" parent="VBoxContainer/HBoxContainer"] unique_name_in_owner = true stream = ExtResource("3_bn186") bus = &"game_sfx" script = ExtResource("3_d7vso") [node name="LeftMargin" type="MarginContainer" parent="VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 0 theme_override_constants/margin_left = 8 [node name="LeftButton" type="TextureButton" parent="VBoxContainer/HBoxContainer/LeftMargin"] unique_name_in_owner = true visible = false light_mask = 16 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) layout_mode = 2 size_flags_horizontal = 0 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="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer"] layout_mode = 2 theme_override_constants/separation = 0 [node name="PropScrollContainer" type="ScrollContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer"] 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 = 100 horizontal_scroll_mode = 3 vertical_scroll_mode = 0 [node name="PropHBox" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropScrollContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 0 theme_override_constants/separation = 0 [node name="Head" type="Control" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropScrollContainer/PropHBox"] custom_minimum_size = Vector2(130, 130) layout_mode = 2 [node name="PropContainer" type="CenterContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropScrollContainer/PropHBox"] custom_minimum_size = Vector2(130, 130) layout_mode = 2 size_flags_horizontal = 4 [node name="Control" type="Control" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropScrollContainer/PropHBox/PropContainer"] custom_minimum_size = Vector2(110, 110) layout_mode = 2 [node name="SelectingBG" type="TextureRect" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropScrollContainer/PropHBox/PropContainer/Control"] unique_name_in_owner = true self_modulate = Color(0.837083, 0.510264, 0.465919, 1) light_mask = 16 custom_minimum_size = Vector2(120, 120) layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -65.0 offset_top = -65.0 offset_right = 65.0 offset_bottom = 65.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("6_5ixbr") [node name="DiaplayProp" type="TextureButton" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropScrollContainer/PropHBox/PropContainer/Control"] unique_name_in_owner = true light_mask = 16 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/HBoxContainer/PropScrollContainer/PropHBox"] custom_minimum_size = Vector2(130, 130) layout_mode = 2 [node name="PropsBagScroll" type="ScrollContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer"] 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 horizontal_scroll_mode = 3 vertical_scroll_mode = 0 [node name="PropsBag" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropsBagScroll"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 0 theme_override_constants/separation = 0 [node name="PropContainer" type="CenterContainer" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropsBagScroll/PropsBag"] custom_minimum_size = Vector2(130, 130) layout_mode = 2 size_flags_horizontal = 4 [node name="Control" type="Control" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropsBagScroll/PropsBag/PropContainer"] custom_minimum_size = Vector2(110, 110) layout_mode = 2 [node name="Prop" type="TextureButton" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropsBagScroll/PropsBag/PropContainer/Control"] light_mask = 16 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="SelectMark" type="TextureRect" parent="VBoxContainer/HBoxContainer/HudRect/MarginContainer/HBoxContainer/PropsBagScroll/PropsBag/PropContainer/Control"] unique_name_in_owner = true light_mask = 16 custom_minimum_size = Vector2(130, 130) layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -65.0 offset_top = -65.0 offset_right = 65.0 offset_bottom = 65.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("7_53yeo") [node name="RightMargin" type="MarginContainer" parent="VBoxContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 0 theme_override_constants/margin_right = 8 [node name="RightButton" type="TextureButton" parent="VBoxContainer/HBoxContainer/RightMargin"] unique_name_in_owner = true visible = false light_mask = 16 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(165, 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"