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"
|
||||
@@ -0,0 +1,122 @@
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/presentation/menu/main_menu.gd" id="1_menu"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/menu/CharacterCreation.tscn" id="2_creation"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBox_menu"]
|
||||
bg_color = Color(0.025, 0.04, 0.075, 0.96)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.25, 0.48, 0.62, 0.9)
|
||||
corner_radius_top_left = 8
|
||||
corner_radius_top_right = 8
|
||||
corner_radius_bottom_right = 8
|
||||
corner_radius_bottom_left = 8
|
||||
|
||||
[node name="MainMenu" 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_menu")
|
||||
|
||||
[node name="Backdrop" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.005, 0.008, 0.02, 1)
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Menu" 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 = -245.0
|
||||
offset_top = -255.0
|
||||
offset_right = 245.0
|
||||
offset_bottom = 255.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBox_menu")
|
||||
|
||||
[node name="Title" type="Label" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_top = 40.0
|
||||
offset_right = 490.0
|
||||
offset_bottom = 86.0
|
||||
theme_override_colors/font_color = Color(0.96, 0.84, 0.44, 1)
|
||||
theme_override_font_sizes/font_size = 34
|
||||
text = "DUNGEON CRAWLER WORLD"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Subtitle" type="Label" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_top = 91.0
|
||||
offset_right = 490.0
|
||||
offset_bottom = 116.0
|
||||
theme_override_colors/font_color = Color(0.7, 0.82, 0.94, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "THE DUNGEON AWAITS"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="NewRunButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 144.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 184.0
|
||||
text = "NEW RUN"
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 193.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 233.0
|
||||
text = "CONTINUE"
|
||||
|
||||
[node name="LoadSlotButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 242.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 282.0
|
||||
text = "LOAD SLOT"
|
||||
|
||||
[node name="OptionsButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 291.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 331.0
|
||||
text = "OPTIONS"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 120.0
|
||||
offset_top = 340.0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 380.0
|
||||
text = "QUIT"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="Menu"]
|
||||
layout_mode = 0
|
||||
offset_left = 40.0
|
||||
offset_top = 410.0
|
||||
offset_right = 450.0
|
||||
offset_bottom = 454.0
|
||||
theme_override_colors/font_color = Color(0.82, 0.9, 1, 1)
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="CharacterCreation" parent="." instance=ExtResource("2_creation")]
|
||||
Reference in New Issue
Block a user