|
| 1 | +[gd_scene load_steps=3 format=3 uid="uid://fxio0pfqwmn6"] |
| 2 | + |
| 3 | +[ext_resource type="Script" uid="uid://dkuui4eib1q3e" path="res://Scenes/UI/Options/Scripts/OptionsMenu.cs" id="1_bykv1"] |
| 4 | +[ext_resource type="Script" uid="uid://cery6g5ojnl16" path="res://Scenes/UI/Options/Scripts/LanguageSelection.cs" id="2_rqxu7"] |
| 5 | + |
| 6 | +[node name="OptionsMenu" type="CanvasLayer" node_paths=PackedStringArray("_focused", "_volumeSlider", "_closeButton", "_controlsButton", "_creditsButton", "_highContrastToggle", "_howToPlayButton")] |
| 7 | +process_mode = 3 |
| 8 | +script = ExtResource("1_bykv1") |
| 9 | +_focused = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/HBoxContainer/CheckBox") |
| 10 | +_volumeSlider = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/Container/Volume") |
| 11 | +_closeButton = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/TitleButton") |
| 12 | +_controlsButton = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/ControlsButton") |
| 13 | +_creditsButton = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/CreditsButton") |
| 14 | +_highContrastToggle = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/HBoxContainer/CheckBox") |
| 15 | +_howToPlayButton = NodePath("Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/HowToPlayButton") |
| 16 | + |
| 17 | +[node name="Control" type="Control" parent="."] |
| 18 | +layout_mode = 3 |
| 19 | +anchors_preset = 15 |
| 20 | +anchor_right = 1.0 |
| 21 | +anchor_bottom = 1.0 |
| 22 | +offset_top = -55.0 |
| 23 | +grow_horizontal = 2 |
| 24 | +grow_vertical = 2 |
| 25 | +size_flags_horizontal = 3 |
| 26 | +size_flags_vertical = 3 |
| 27 | + |
| 28 | +[node name="ColorRect" type="ColorRect" parent="Control"] |
| 29 | +layout_mode = 1 |
| 30 | +anchors_preset = 15 |
| 31 | +anchor_right = 1.0 |
| 32 | +anchor_bottom = 1.0 |
| 33 | +grow_horizontal = 2 |
| 34 | +grow_vertical = 2 |
| 35 | +color = Color(0.133, 0.133, 0.133, 1) |
| 36 | + |
| 37 | +[node name="CenterContainer" type="CenterContainer" parent="Control"] |
| 38 | +layout_mode = 1 |
| 39 | +anchors_preset = 15 |
| 40 | +anchor_right = 1.0 |
| 41 | +anchor_bottom = 1.0 |
| 42 | +grow_horizontal = 2 |
| 43 | +grow_vertical = 2 |
| 44 | + |
| 45 | +[node name="MarginContainer" type="MarginContainer" parent="Control/CenterContainer"] |
| 46 | +layout_mode = 2 |
| 47 | + |
| 48 | +[node name="ColorRect" type="ColorRect" parent="Control/CenterContainer/MarginContainer"] |
| 49 | +layout_mode = 2 |
| 50 | +color = Color(0.24, 0.24, 0.24, 0.854902) |
| 51 | + |
| 52 | +[node name="MarginContainer" type="MarginContainer" parent="Control/CenterContainer/MarginContainer"] |
| 53 | +layout_mode = 2 |
| 54 | +theme_override_constants/margin_left = 0 |
| 55 | +theme_override_constants/margin_top = 0 |
| 56 | +theme_override_constants/margin_right = 0 |
| 57 | +theme_override_constants/margin_bottom = 0 |
| 58 | + |
| 59 | +[node name="VBoxContainer" type="VBoxContainer" parent="Control/CenterContainer/MarginContainer/MarginContainer"] |
| 60 | +custom_minimum_size = Vector2(240, 0) |
| 61 | +layout_mode = 2 |
| 62 | +size_flags_horizontal = 0 |
| 63 | +theme_override_constants/separation = 16 |
| 64 | +alignment = 1 |
| 65 | + |
| 66 | +[node name="Title" type="Label" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 67 | +layout_mode = 2 |
| 68 | +text = "TITLE_OPTIONS" |
| 69 | +horizontal_alignment = 1 |
| 70 | + |
| 71 | +[node name="HSeparator" type="HSeparator" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 72 | +layout_mode = 2 |
| 73 | + |
| 74 | +[node name="HBoxContainer" type="HBoxContainer" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 75 | +layout_mode = 2 |
| 76 | +alignment = 1 |
| 77 | + |
| 78 | +[node name="CheckBox" type="CheckBox" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/HBoxContainer"] |
| 79 | +layout_mode = 2 |
| 80 | + |
| 81 | +[node name="Label" type="Label" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/HBoxContainer"] |
| 82 | +layout_mode = 2 |
| 83 | +size_flags_horizontal = 8 |
| 84 | +text = "OPTIONS_CONTRAST_LABEL" |
| 85 | +horizontal_alignment = 1 |
| 86 | + |
| 87 | +[node name="Container" type="VBoxContainer" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 88 | +layout_mode = 2 |
| 89 | +theme_override_constants/separation = 0 |
| 90 | + |
| 91 | +[node name="Label" type="Label" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/Container"] |
| 92 | +layout_mode = 2 |
| 93 | +text = "OPTIONS_VOLUME_LABEL" |
| 94 | +horizontal_alignment = 1 |
| 95 | + |
| 96 | +[node name="Volume" type="HSlider" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer/Container"] |
| 97 | +layout_mode = 2 |
| 98 | +tooltip_text = "OPTIONS_VOLUME_LABEL" |
| 99 | +max_value = 1.0 |
| 100 | +step = 0.01 |
| 101 | +value = 1.0 |
| 102 | + |
| 103 | +[node name="LanguageSelection" type="OptionButton" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 104 | +unique_name_in_owner = true |
| 105 | +layout_mode = 2 |
| 106 | +item_count = 2 |
| 107 | +popup/item_0/text = "English" |
| 108 | +popup/item_0/id = 0 |
| 109 | +popup/item_1/text = "中文" |
| 110 | +popup/item_1/id = 1 |
| 111 | +script = ExtResource("2_rqxu7") |
| 112 | + |
| 113 | +[node name="ControlsButton" type="Button" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 114 | +layout_mode = 2 |
| 115 | +text = "TITLE_CONTROLS" |
| 116 | + |
| 117 | +[node name="HowToPlayButton" type="Button" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 118 | +layout_mode = 2 |
| 119 | +text = "HOW_TO_PLAY" |
| 120 | + |
| 121 | +[node name="TitleButton" type="Button" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 122 | +layout_mode = 2 |
| 123 | +text = "CONTROLS_RETURN_BUTTON" |
| 124 | + |
| 125 | +[node name="CreditsButton" type="Button" parent="Control/CenterContainer/MarginContainer/MarginContainer/VBoxContainer"] |
| 126 | +layout_mode = 2 |
| 127 | +text = "CREDITS_BUTTON" |
0 commit comments