feat: add run creation lifecycle
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/presentation/menu/character_creation.gd" id="1_creation"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBox_panel"]
|
||||
bg_color = Color(0.035, 0.055, 0.09, 0.97)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.82, 0.66, 0.25, 0.95)
|
||||
corner_radius_top_left = 8
|
||||
corner_radius_top_right = 8
|
||||
corner_radius_bottom_right = 8
|
||||
corner_radius_bottom_left = 8
|
||||
content_margin_left = 28.0
|
||||
content_margin_top = 20.0
|
||||
content_margin_right = 28.0
|
||||
content_margin_bottom = 20.0
|
||||
|
||||
[node name="CharacterCreation" 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_creation")
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -270.0
|
||||
offset_top = -295.0
|
||||
offset_right = 270.0
|
||||
offset_bottom = 295.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_panel")
|
||||
|
||||
[node name="Title" type="Label" parent="Panel"]
|
||||
layout_mode = 2
|
||||
offset_top = 18.0
|
||||
offset_right = 480.0
|
||||
offset_bottom = 48.0
|
||||
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
|
||||
theme_override_font_sizes/font_size = 28
|
||||
text = "NEW RUN"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Fields" type="VBoxContainer" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 30.0
|
||||
offset_top = 62.0
|
||||
offset_right = 510.0
|
||||
offset_bottom = 462.0
|
||||
theme_override_constants/separation = 9
|
||||
|
||||
[node name="NameLabel" type="Label" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Character name"
|
||||
|
||||
[node name="NameEdit" type="LineEdit" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Sans-Nom"
|
||||
|
||||
[node name="ArchetypeLabel" type="Label" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Base archetype"
|
||||
|
||||
[node name="ArchetypeOption" type="OptionButton" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
item_count = 3
|
||||
selected = 0
|
||||
popup/item_0/text = "Vanguard"
|
||||
popup/item_0/id = 0
|
||||
popup/item_0/metadata = "vanguard"
|
||||
popup/item_1/text = "Mystic"
|
||||
popup/item_1/id = 1
|
||||
popup/item_1/metadata = "mystic"
|
||||
popup/item_2/text = "Scout"
|
||||
popup/item_2/id = 2
|
||||
popup/item_2/metadata = "scout"
|
||||
|
||||
[node name="PetCheck" type="CheckBox" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Bring a pet companion"
|
||||
|
||||
[node name="SeedLabel" type="Label" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Generation seed"
|
||||
|
||||
[node name="SeedEdit" type="LineEdit" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Enter a seed"
|
||||
|
||||
[node name="DifficultyLabel" type="Label" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Difficulty"
|
||||
|
||||
[node name="DifficultyOption" type="OptionButton" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
item_count = 4
|
||||
selected = 1
|
||||
popup/item_0/text = "Touriste"
|
||||
popup/item_0/id = 0
|
||||
popup/item_0/metadata = "touriste"
|
||||
popup/item_1/text = "Crawler"
|
||||
popup/item_1/id = 1
|
||||
popup/item_1/metadata = "crawler"
|
||||
popup/item_2/text = "Veteran"
|
||||
popup/item_2/id = 2
|
||||
popup/item_2/metadata = "veteran"
|
||||
popup/item_3/text = "Masochiste"
|
||||
popup/item_3/id = 3
|
||||
popup/item_3/metadata = "masochiste"
|
||||
|
||||
[node name="DeathModeLabel" type="Label" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
text = "Death mode"
|
||||
|
||||
[node name="PermadeathOption" type="OptionButton" parent="Panel/Fields"]
|
||||
layout_mode = 2
|
||||
item_count = 2
|
||||
selected = 0
|
||||
popup/item_0/text = "Classic — save and reload"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "Permadeath — one life"
|
||||
popup/item_1/id = 1
|
||||
|
||||
[node name="ValidationLabel" type="Label" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 30.0
|
||||
offset_top = 472.0
|
||||
offset_right = 510.0
|
||||
offset_bottom = 497.0
|
||||
theme_override_colors/font_color = Color(1, 0.48, 0.44, 1)
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="StartRunButton" type="Button" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 115.0
|
||||
offset_top = 510.0
|
||||
offset_right = 295.0
|
||||
offset_bottom = 554.0
|
||||
text = "START RUN"
|
||||
|
||||
[node name="CancelButton" type="Button" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 305.0
|
||||
offset_top = 510.0
|
||||
offset_right = 425.0
|
||||
offset_bottom = 554.0
|
||||
text = "BACK"
|
||||
Reference in New Issue
Block a user