challenge-editor/scene/select.tscn
2024-11-08 00:44:27 +08:00

598 lines
18 KiB
Plaintext

[gd_scene load_steps=28 format=3 uid="uid://33lcg23hy4mi"]
[ext_resource type="Script" path="res://scene/select.gd" id="1_cgnul"]
[ext_resource type="Texture2D" uid="uid://li8e5ntlgcpg" path="res://res/ui/ui_003_select/test.png" id="3_jw1jl"]
[ext_resource type="Texture2D" uid="uid://c6l3t83jiltjw" path="res://res/ui/ui_003_select/tuceng1.png" id="3_yij7q"]
[ext_resource type="Shader" path="res://res/shader/blur.gdshader" id="4_dco75"]
[ext_resource type="Texture2D" uid="uid://ncsff7bf6sni" path="res://res/ui/ui_003_select/tuceng25.png" id="8_6wknl"]
[ext_resource type="Texture2D" uid="uid://nht4ovhe7xvy" path="res://res/ui/ui_003_select/tuceng3.png" id="8_wqdui"]
[ext_resource type="Texture2D" uid="uid://c2trkapa6c4p8" path="res://res/ui/ui_003_select/tuceng30.png" id="9_ke4j3"]
[ext_resource type="Texture2D" uid="uid://bddj0eoytjep0" path="res://res/ui/ui_003_select/lishitubiao.png" id="9_wp7c8"]
[ext_resource type="Texture2D" uid="uid://bi8yasn7h0fie" path="res://res/ui/ui_003_select/tuceng4.png" id="10_iblo5"]
[ext_resource type="Texture2D" uid="uid://3pl6831ybap1" path="res://res/ui/ui_003_select/qihuantubiao.png" id="11_hv6di"]
[ext_resource type="Texture2D" uid="uid://sadccea3silb" path="res://res/ui/ui_003_select/tuceng22.png" id="11_tvykm"]
[ext_resource type="Texture2D" uid="uid://3j0a4ta8ww4y" path="res://res/ui/ui_003_select/xianshitubiao.png" id="12_qqyd6"]
[ext_resource type="Texture2D" uid="uid://y03c11caxq5g" path="res://res/ui/ui_003_select/moshitubiao.png" id="13_06h8p"]
[ext_resource type="Texture2D" uid="uid://cukrtaeu70hc5" path="res://res/ui/ui_003_select/jixutubiao.png" id="15_jcwu5"]
[ext_resource type="PackedScene" uid="uid://bdlo2wn4qnygv" path="res://scene/tool/tool_button.tscn" id="16_boe34"]
[ext_resource type="PackedScene" uid="uid://b84kbwrjhux1m" path="res://scene/character_select.tscn" id="17_cueqv"]
[ext_resource type="Script" path="res://class/tool/DrawerContainer.gd" id="18_qtiy2"]
[ext_resource type="Texture2D" uid="uid://bt5qrcsynsp6j" path="res://res/ui/ui_004_character_bag/tuceng231.png" id="18_qwfod"]
[ext_resource type="Texture2D" uid="uid://bdnuk1oe6bhjv" path="res://res/ui/ui_003_select/tuceng29.png" id="19_ubknp"]
[ext_resource type="PackedScene" uid="uid://c6ucq32jlpjd6" path="res://scene/difficulty_selection.tscn" id="20_168x8"]
[ext_resource type="PackedScene" uid="uid://ln0ri824gh2c" path="res://scene/save_and_load.tscn" id="21_p88u2"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ly4bd"]
resource_local_to_scene = true
shader = ExtResource("4_dco75")
shader_parameter/power = 4.0
shader_parameter/up = 0.3
shader_parameter/down = 0.3
shader_parameter/left = 1.0
shader_parameter/right = 1.0
shader_parameter/up_clip = 0.0
shader_parameter/down_clip = 0.0
shader_parameter/left_clip = 0.0
shader_parameter/right_clip = 0.0
[sub_resource type="Gradient" id="Gradient_k04ai"]
interpolation_mode = 2
offsets = PackedFloat32Array(0, 0.142857, 0.831169)
colors = PackedColorArray(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_lyq3l"]
gradient = SubResource("Gradient_k04ai")
[sub_resource type="Animation" id="Animation_icany"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("back/script_texture:material:shader_parameter/power")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [4.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("back/script_texture:material:shader_parameter/left")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("back/script_texture:material:shader_parameter/right")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.0]
}
[sub_resource type="Animation" id="Animation_elxtp"]
resource_name = "open"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("back/script_texture:material:shader_parameter/power")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.366667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [4.0, 0.8]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("back/script_texture:material:shader_parameter/left")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.366667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.0, 0.3]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("back/script_texture:material:shader_parameter/right")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.366667),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.0, 0.3]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8lk2v"]
_data = {
"RESET": SubResource("Animation_icany"),
"open": SubResource("Animation_elxtp")
}
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_cgnul")
[node name="back" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_yij7q")
expand_mode = 1
stretch_mode = 6
[node name="script_texture" type="TextureRect" parent="back"]
unique_name_in_owner = true
z_index = 1
material = SubResource("ShaderMaterial_ly4bd")
layout_mode = 2
anchor_left = 0.179688
anchor_top = 0.00185185
anchor_right = 0.775
anchor_bottom = 0.917593
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_jw1jl")
expand_mode = 1
stretch_mode = 5
metadata/_edit_use_anchors_ = true
[node name="black" type="TextureRect" parent="back/script_texture"]
show_behind_parent = true
layout_mode = 1
anchors_preset = -1
anchor_left = -0.15923
anchor_top = -0.00202224
anchor_right = 1.0
anchor_bottom = 1.09707
grow_vertical = 2
texture = SubResource("GradientTexture1D_lyq3l")
expand_mode = 1
metadata/_edit_use_anchors_ = true
[node name="btn_scroll" type="ScrollContainer" parent="."]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.0614583
anchor_top = 0.0851852
anchor_right = 0.262
anchor_bottom = 0.803
offset_right = -0.0400391
offset_bottom = -0.240051
follow_focus = true
horizontal_scroll_mode = 0
vertical_scroll_mode = 3
scroll_deadzone = 1
metadata/_edit_use_anchors_ = true
[node name="btn_add_pos" type="VBoxContainer" parent="btn_scroll"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
theme_override_constants/separation = 40
[node name="HBoxContainer" type="HBoxContainer" parent="."]
z_index = 1
layout_mode = 1
anchors_preset = -1
anchor_left = 0.028125
anchor_top = 0.887963
anchor_right = 1.0
anchor_bottom = 0.944444
offset_bottom = -60.0
theme_override_constants/separation = -29
metadata/_edit_use_anchors_ = true
[node name="history_texture" type="TextureRect" parent="HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("8_wqdui")
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/history_texture"]
layout_mode = 0
anchor_left = -0.00268097
anchor_top = -0.557377
anchor_right = 0.268097
anchor_bottom = 1.09836
offset_right = -2.97874
offset_bottom = 4.57764e-05
texture = ExtResource("9_wp7c8")
[node name="Label" type="Label" parent="HBoxContainer/history_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.292225
anchor_right = 0.86059
anchor_bottom = 1.0
theme_override_font_sizes/font_size = 30
text = "历史剧本"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="history_button" type="Button" parent="HBoxContainer/history_texture"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="fantasy_texture" type="TextureRect" parent="HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("10_iblo5")
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/fantasy_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = -0.00268097
anchor_top = -0.557377
anchor_right = 0.268097
anchor_bottom = 1.09836
offset_right = -9.76964
offset_bottom = -5.99995
texture = ExtResource("11_hv6di")
[node name="Label" type="Label" parent="HBoxContainer/fantasy_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.292225
anchor_right = 0.86059
anchor_bottom = 1.0
theme_override_font_sizes/font_size = 30
text = "奇幻剧本"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="fantasy_button" type="Button" parent="HBoxContainer/fantasy_texture"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="reality_texture" type="TextureRect" parent="HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("10_iblo5")
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/reality_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.045
anchor_top = -0.361
anchor_right = 0.268097
anchor_bottom = 1.09836
offset_left = 0.0899925
offset_top = 0.0210018
offset_right = 0.297585
offset_bottom = -6.0
texture = ExtResource("12_qqyd6")
[node name="Label" type="Label" parent="HBoxContainer/reality_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.292225
anchor_right = 0.86059
anchor_bottom = 1.0
theme_override_font_sizes/font_size = 30
text = "现实剧本"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="reality_button" type="Button" parent="HBoxContainer/reality_texture"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="eschatological_texture" type="TextureRect" parent="HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("10_iblo5")
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/eschatological_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.073
anchor_top = -0.557
anchor_right = 0.268097
anchor_bottom = 1.09836
offset_left = -0.0540104
offset_top = -0.0229988
offset_right = -0.702415
offset_bottom = 3.0
texture = ExtResource("13_06h8p")
[node name="Label" type="Label" parent="HBoxContainer/eschatological_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.292225
anchor_right = 0.86059
anchor_bottom = 1.0
theme_override_font_sizes/font_size = 30
text = "末世剧本"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="eschatological_button" type="Button" parent="HBoxContainer/eschatological_texture"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="continue_texture" type="TextureRect" parent="HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("11_tvykm")
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/continue_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.0618812
anchor_top = -0.639344
anchor_right = 0.311881
anchor_bottom = 1.01639
offset_bottom = 7.0
texture = ExtResource("15_jcwu5")
metadata/_edit_use_anchors_ = true
[node name="Label" type="Label" parent="HBoxContainer/continue_texture"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.292225
anchor_right = 0.86059
anchor_bottom = 1.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 30
text = "继续剧本"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="continue_button" type="Button" parent="HBoxContainer/continue_texture"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="NinePatchRect" type="NinePatchRect" parent="."]
z_index = 1
layout_mode = 0
anchor_left = 0.740104
anchor_top = 0.202778
anchor_right = 0.964063
anchor_bottom = 0.712963
texture = ExtResource("8_6wknl")
patch_margin_left = 43
patch_margin_top = 83
patch_margin_right = 90
patch_margin_bottom = 56
metadata/_edit_use_anchors_ = true
[node name="ScrollContainer" type="ScrollContainer" parent="NinePatchRect"]
layout_mode = 0
anchor_left = 0.116279
anchor_top = 0.137931
anchor_right = 0.797672
anchor_bottom = 0.907441
horizontal_scroll_mode = 0
metadata/_edit_use_anchors_ = true
[node name="script_introduction" type="Label" parent="NinePatchRect/ScrollContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 30
text = "剧本介绍剧本介绍
剧本介绍剧本介绍
剧本介绍剧本介绍
剧本介绍剧本介绍
剧本介绍剧本介绍
剧本介绍剧本介绍
剧本介绍剧本介绍"
horizontal_alignment = 1
autowrap_mode = 3
metadata/_edit_use_anchors_ = true
[node name="TextureRect" type="TextureRect" parent="NinePatchRect"]
layout_mode = 2
anchor_left = 0.156
anchor_right = 1.0
anchor_bottom = 0.005
offset_left = -65.08
offset_top = -217.0
offset_right = 56.0
offset_bottom = 64.245
texture = ExtResource("9_ke4j3")
expand_mode = 1
stretch_mode = 5
metadata/_edit_use_anchors_ = true
[node name="script_name" type="Label" parent="NinePatchRect/TextureRect"]
unique_name_in_owner = true
layout_mode = 0
anchor_left = 0.355372
anchor_top = 0.464789
anchor_right = 0.799587
anchor_bottom = 0.665493
theme_override_font_sizes/font_size = 37
text = "故事名字"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="back_button" type="TextureRect" parent="."]
layout_mode = 0
anchor_left = 0.00677083
anchor_top = 0.0138889
anchor_right = 0.0677083
anchor_bottom = 0.0833333
offset_right = 6.10352e-05
offset_bottom = 5.34058e-05
texture = ExtResource("18_qwfod")
[node name="ToolButton" parent="back_button" instance=ExtResource("16_boe34")]
layout_mode = 1
[node name="enter_texture" type="NinePatchRect" parent="."]
unique_name_in_owner = true
z_index = 1
layout_mode = 0
anchor_left = 0.766146
anchor_top = 0.736111
anchor_right = 0.91875
anchor_bottom = 0.815741
texture = ExtResource("19_ubknp")
patch_margin_left = 30
patch_margin_right = 30
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="enter_texture"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 30
theme_override_constants/margin_right = 30
[node name="Label" type="Label" parent="enter_texture/MarginContainer"]
layout_mode = 2
size_flags_vertical = 1
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 28
theme_override_font_sizes/font_size = 45
text = "进入剧本"
horizontal_alignment = 1
vertical_alignment = 1
[node name="enter_button" type="Button" parent="enter_texture"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="texture_animation" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_8lk2v")
}
[node name="DrawerContainer2" type="Container" parent="."]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("18_qtiy2")
button_model = 2
disable_button = true
is_open = false
rag = 1.0
[node name="difficulty_selection" parent="DrawerContainer2" instance=ExtResource("20_168x8")]
layout_mode = 2
[node name="DrawerContainer" type="Container" parent="."]
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("18_qtiy2")
is_open = false
rag = 1.0
[node name="character_select" parent="DrawerContainer" instance=ExtResource("17_cueqv")]
unique_name_in_owner = true
layout_mode = 2
[node name="save_and_load" parent="." instance=ExtResource("21_p88u2")]
unique_name_in_owner = true
visible = false
z_index = 2
layout_mode = 1
[connection signal="pressed" from="HBoxContainer/continue_texture/continue_button" to="." method="_on_continue_button_pressed"]
[connection signal="pressed" from="back_button/ToolButton" to="." method="_on_back_button_pressed"]
[connection signal="pressed" from="enter_texture/enter_button" to="." method="_on_enter_button_pressed"]
[connection signal="back" from="DrawerContainer2/difficulty_selection" to="." method="_on_difficulty_selection_back"]
[connection signal="select" from="DrawerContainer2/difficulty_selection" to="." method="_on_difficulty_selection_select"]
[connection signal="back" from="DrawerContainer/character_select" to="." method="_on_character_select_back"]
[connection signal="close" from="save_and_load" to="." method="_on_save_and_load_close"]