Files
agame/ui/character_select.tscn
T

188 lines
6.2 KiB
Plaintext

[gd_scene load_steps=11 format=3]
[ext_resource type="Script" path="res://ui/character_select.gd" id="1_select"]
[ext_resource type="Script" path="res://character/player/face/face_rig.gd" id="7_face_rig"]
[ext_resource type="PackedScene" path="res://ui/paint_panel.tscn" id="2_paint"]
[ext_resource type="PackedScene" uid="uid://css1vk3u8gt7o" path="res://character/player/assets/mouse.glb" id="3_mouse"]
[ext_resource type="Sky" uid="uid://bi632suyifms5" path="res://world/sky/cartoon_sky.tres" id="4_sky"]
[ext_resource type="Texture2D" path="res://character/player/face/presets/face_01.png" id="5_face01"]
[ext_resource type="Texture2D" path="res://character/player/face/presets/face_02.png" id="6_face02"]
[sub_resource type="Gradient" id="Gradient_bg"]
offsets = PackedFloat32Array(0, 0.55, 1)
colors = PackedColorArray(0.09, 0.3, 0.78, 1, 0.28, 0.6, 0.95, 1, 0.78, 0.88, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_bg"]
gradient = SubResource("Gradient_bg")
width = 4
height = 512
fill_from = Vector2(0.5, 0)
fill_to = Vector2(0.5, 1)
[sub_resource type="Environment" id="Environment_preview"]
background_mode = 2
sky = ExtResource("4_sky")
ambient_light_source = 3
reflected_light_source = 2
[node name="CharacterSelect" 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_select")
[node name="Background" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = SubResource("GradientTexture2D_bg")
expand_mode = 1
[node name="Margin" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
theme_override_constants/margin_left = 48
theme_override_constants/margin_top = 40
theme_override_constants/margin_right = 48
theme_override_constants/margin_bottom = 40
[node name="Layout" type="HBoxContainer" parent="Margin"]
layout_mode = 2
mouse_filter = 2
theme_override_constants/separation = 36
[node name="Preview" type="SubViewportContainer" parent="Margin/Layout"]
custom_minimum_size = Vector2(420, 520)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
stretch = true
[node name="PreviewViewport" type="SubViewport" parent="Margin/Layout/Preview"]
own_world_3d = true
handle_input_locally = false
size = Vector2i(420, 520)
render_target_update_mode = 4
[node name="Environment" type="WorldEnvironment" parent="Margin/Layout/Preview/PreviewViewport"]
environment = SubResource("Environment_preview")
[node name="Sun" type="DirectionalLight3D" parent="Margin/Layout/Preview/PreviewViewport"]
transform = Transform3D(0.866025, -0.353553, 0.353553, 0, 0.707107, 0.707107, -0.5, -0.612372, 0.612372, 0, 3, 0)
light_energy = 1.1
[node name="PreviewCamera" type="Camera3D" parent="Margin/Layout/Preview/PreviewViewport"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.62, 1.5)
[node name="Model" type="Node3D" parent="Margin/Layout/Preview/PreviewViewport"]
unique_name_in_owner = true
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
[node name="mouse" parent="Margin/Layout/Preview/PreviewViewport/Model" instance=ExtResource("3_mouse")]
transform = Transform3D(0.18240133, 0, 0, 0, 0.18240133, 0, 0, 0, 0.18240133, 0, 0, 0)
[node name="FaceRig" type="Node" parent="Margin/Layout/Preview/PreviewViewport"]
unique_name_in_owner = true
script = ExtResource("7_face_rig")
mesh_path = NodePath("../Model/mouse/MouseRig/Skeleton3D/body_mesh")
default_preset = ExtResource("5_face01")
[node name="Right" type="VBoxContainer" parent="Margin/Layout"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 14
[node name="CharTitle" type="Label" parent="Margin/Layout/Right"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_outline_color = Color(0.05, 0.1, 0.25, 0.85)
theme_override_constants/outline_size = 10
theme_override_font_sizes/font_size = 40
text = "角色"
[node name="CharRow" type="HBoxContainer" parent="Margin/Layout/Right"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="CharButton" type="Button" parent="Margin/Layout/Right/CharRow"]
custom_minimum_size = Vector2(160, 46)
layout_mode = 2
text = "小老鼠"
[node name="Spacer" type="Control" parent="Margin/Layout/Right"]
custom_minimum_size = Vector2(0, 12)
layout_mode = 2
mouse_filter = 2
[node name="FaceTitle" type="Label" parent="Margin/Layout/Right"]
layout_mode = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_outline_color = Color(0.05, 0.1, 0.25, 0.85)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 28
text = "脸部"
[node name="PresetRow" type="HBoxContainer" parent="Margin/Layout/Right"]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 12
[node name="Preset0" type="TextureButton" parent="Margin/Layout/Right/PresetRow"]
custom_minimum_size = Vector2(96, 96)
layout_mode = 2
texture_normal = ExtResource("5_face01")
ignore_texture_size = true
stretch_mode = 5
[node name="Preset1" type="TextureButton" parent="Margin/Layout/Right/PresetRow"]
custom_minimum_size = Vector2(96, 96)
layout_mode = 2
texture_normal = ExtResource("6_face02")
ignore_texture_size = true
stretch_mode = 5
[node name="DrawButton" type="Button" parent="Margin/Layout/Right"]
unique_name_in_owner = true
custom_minimum_size = Vector2(160, 46)
layout_mode = 2
size_flags_horizontal = 0
text = "自己画"
[node name="Grow" type="Control" parent="Margin/Layout/Right"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
[node name="Bottom" type="HBoxContainer" parent="Margin/Layout/Right"]
layout_mode = 2
alignment = 2
theme_override_constants/separation = 12
[node name="BackButton" type="Button" parent="Margin/Layout/Right/Bottom"]
unique_name_in_owner = true
custom_minimum_size = Vector2(130, 46)
layout_mode = 2
text = "返回"
[node name="ConfirmButton" type="Button" parent="Margin/Layout/Right/Bottom"]
unique_name_in_owner = true
custom_minimum_size = Vector2(130, 46)
layout_mode = 2
text = "确定"
[node name="PaintPanel" parent="." instance=ExtResource("2_paint")]
visible = false