[gd_scene load_steps=6 format=2] [ext_resource path="res://login_scene/character_creation_box.gd" type="Script" id=1] [ext_resource path="res://assets/GUI/fonts/ryzom.ttf" type="DynamicFontData" id=2] [sub_resource type="Gradient" id=1] offsets = PoolRealArray( 0 ) colors = PoolColorArray( 0, 0, 0, 1 ) [sub_resource type="GradientTexture" id=2] flags = 4 gradient = SubResource( 1 ) width = 2048 [sub_resource type="DynamicFont" id=3] size = 18 use_mipmaps = false use_filter = true font_data = ExtResource( 2 ) _sections_unfolded = [ "Extra Spacing", "Font", "Settings" ] [node name="character_creation_box" type="MarginContainer"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 220.0 margin_right = 1024.0 margin_bottom = 380.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 6 custom_constants/margin_right = 8 custom_constants/margin_top = 8 custom_constants/margin_left = 8 custom_constants/margin_bottom = 8 script = ExtResource( 1 ) _sections_unfolded = [ "Material", "Size Flags", "custom_constants" ] [node name="nine_patch_rect" type="NinePatchRect" parent="." index="0"] modulate = Color( 1, 1, 1, 0.752941 ) anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 8.0 margin_top = 8.0 margin_right = 1016.0 margin_bottom = 210.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 texture = SubResource( 2 ) _sections_unfolded = [ "Material", "Size Flags", "Visibility" ] [node name="margin_container" type="MarginContainer" parent="." index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 8.0 margin_top = 8.0 margin_right = 1016.0 margin_bottom = 210.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 custom_constants/margin_right = 8 custom_constants/margin_top = 8 custom_constants/margin_left = 8 custom_constants/margin_bottom = 8 _sections_unfolded = [ "custom_constants" ] [node name="v_box_container" type="VBoxContainer" parent="margin_container" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 8.0 margin_top = 8.0 margin_right = 1000.0 margin_bottom = 194.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 7 size_flags_vertical = 6 alignment = 0 _sections_unfolded = [ "Size Flags", "Theme", "custom_constants" ] [node name="h_separator" type="HSeparator" parent="margin_container/v_box_container" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 992.0 margin_bottom = 4.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 [node name="name_box" type="HBoxContainer" parent="margin_container/v_box_container" index="1"] editor/display_folded = true anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 8.0 margin_right = 992.0 margin_bottom = 32.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 alignment = 0 [node name="label" type="Label" parent="margin_container/v_box_container/name_box" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 5.0 margin_right = 494.0 margin_bottom = 19.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 4 text = "Nom: " align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Size Flags" ] [node name="line_edit" type="LineEdit" parent="margin_container/v_box_container/name_box" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 498.0 margin_right = 992.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 1 size_flags_horizontal = 3 size_flags_vertical = 1 text = "player" focus_mode = 2 context_menu_enabled = true placeholder_text = "Enter the character's name here." placeholder_alpha = 0.6 caret_blink = false caret_blink_speed = 0.65 caret_position = 0 _sections_unfolded = [ "Placeholder", "Size Flags" ] [node name="generate_name_box" type="HBoxContainer" parent="margin_container/v_box_container" index="2"] editor/display_folded = true anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 36.0 margin_right = 992.0 margin_bottom = 60.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 alignment = 0 [node name="region_label" type="Label" parent="margin_container/v_box_container/generate_name_box" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 5.0 margin_right = 40.0 margin_bottom = 19.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "region" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="region_menu" type="OptionButton" parent="margin_container/v_box_container/generate_name_box" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 44.0 margin_right = 83.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false action_mode = 0 enabled_focus_mode = 2 shortcut = null group = null flat = false align = 0 items = [ ] selected = -1 [node name="nb_syllabe_label" type="Label" parent="margin_container/v_box_container/generate_name_box" index="2"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 87.0 margin_top = 5.0 margin_right = 165.0 margin_bottom = 19.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Nb. Syllabes" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="nb_syllabe" type="SpinBox" parent="margin_container/v_box_container/generate_name_box" index="3"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 169.0 margin_right = 243.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 min_value = 1.0 max_value = 100.0 step = 1.0 page = 0.0 value = 1.0 exp_edit = false rounded = false editable = true prefix = "" suffix = "" [node name="nb_nom_label" type="Label" parent="margin_container/v_box_container/generate_name_box" index="4"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 247.0 margin_top = 5.0 margin_right = 311.0 margin_bottom = 19.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Nb. Noms" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="nb_nom" type="SpinBox" parent="margin_container/v_box_container/generate_name_box" index="5"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 315.0 margin_right = 389.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 min_value = 1.0 max_value = 100.0 step = 1.0 page = 0.0 value = 1.0 exp_edit = false rounded = false editable = true prefix = "" suffix = "" [node name="generate_name" type="Button" parent="margin_container/v_box_container/generate_name_box" index="6"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 875.0 margin_right = 992.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 10 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "Générer un nom" flat = false align = 1 _sections_unfolded = [ "Focus", "Size Flags", "Theme" ] [node name="h_separator2" type="HSeparator" parent="margin_container/v_box_container" index="3"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 64.0 margin_right = 992.0 margin_bottom = 68.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 [node name="sexe_box" type="HBoxContainer" parent="margin_container/v_box_container" index="4"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 72.0 margin_right = 992.0 margin_bottom = 86.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 alignment = 0 [node name="label" type="Label" parent="margin_container/v_box_container/sexe_box" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 494.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 4 text = "Sexe: " align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Size Flags" ] [node name="h_box_container" type="HBoxContainer" parent="margin_container/v_box_container/sexe_box" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 498.0 margin_right = 992.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 1 alignment = 0 _sections_unfolded = [ "Size Flags" ] [node name="M" type="Label" parent="margin_container/v_box_container/sexe_box/h_box_container" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 12.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "M" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="sex_bar" type="HScrollBar" parent="margin_container/v_box_container/sexe_box/h_box_container" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 16.0 margin_right = 483.0 margin_bottom = 12.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 0 min_value = 0.0 max_value = 1.0 step = 1.0 page = 0.0 value = 1.0 exp_edit = false rounded = false custom_step = -1.0 _sections_unfolded = [ "Size Flags", "custom_icons" ] [node name="F" type="Label" parent="margin_container/v_box_container/sexe_box/h_box_container" index="2"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 487.0 margin_right = 494.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "F" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="size_box" type="HBoxContainer" parent="margin_container/v_box_container" index="5"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 90.0 margin_right = 992.0 margin_bottom = 104.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 alignment = 0 [node name="label" type="Label" parent="margin_container/v_box_container/size_box" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 494.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 4 text = "Size:" align = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Size Flags" ] [node name="h_box_container" type="HBoxContainer" parent="margin_container/v_box_container/size_box" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 498.0 margin_right = 992.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 1 alignment = 0 _sections_unfolded = [ "Size Flags" ] [node name="petit" type="Label" parent="margin_container/v_box_container/size_box/h_box_container" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 30.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Petit" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="size_bar" type="HScrollBar" parent="margin_container/v_box_container/size_box/h_box_container" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 34.0 margin_right = 452.0 margin_bottom = 12.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 3 size_flags_vertical = 0 min_value = 0.5 max_value = 1.5 step = 0.5 page = 0.0 value = 1.0 exp_edit = false rounded = false custom_step = -1.0 _sections_unfolded = [ "Size Flags", "custom_icons" ] [node name="grand" type="Label" parent="margin_container/v_box_container/size_box/h_box_container" index="2"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 456.0 margin_right = 494.0 margin_bottom = 14.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Grand" percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="h_separator3" type="HSeparator" parent="margin_container/v_box_container" index="6"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 108.0 margin_right = 992.0 margin_bottom = 112.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 [node name="error_label" type="Label" parent="margin_container/v_box_container" index="7"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 116.0 margin_right = 992.0 margin_bottom = 138.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 custom_fonts/font = SubResource( 3 ) custom_colors/font_color = Color( 1, 0, 0, 1 ) align = 1 autowrap = true percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "custom_colors", "custom_fonts", "custom_styles" ] [node name="valid_button" type="Button" parent="margin_container/v_box_container" index="8"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 142.0 margin_right = 992.0 margin_bottom = 162.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "Valider" flat = false align = 1 [node name="return_button" type="Button" parent="margin_container/v_box_container" index="9"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 166.0 margin_right = 992.0 margin_bottom = 186.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "Retour" flat = false align = 1 [connection signal="pressed" from="margin_container/v_box_container/generate_name_box/generate_name" to="." method="_on_generate_name_pressed"] [connection signal="value_changed" from="margin_container/v_box_container/sexe_box/h_box_container/sex_bar" to="." method="_on_sex_bar_value_changed"] [connection signal="value_changed" from="margin_container/v_box_container/size_box/h_box_container/size_bar" to="." method="_on_size_bar_value_changed"] [connection signal="pressed" from="margin_container/v_box_container/valid_button" to="." method="_on_valid_button_pressed"] [connection signal="pressed" from="margin_container/v_box_container/return_button" to="." method="_on_return_button_pressed"]