[gd_scene load_steps=6 format=3 uid="uid://dt41bt5fi3t47"]

[ext_resource type="Theme" uid="uid://dy41x4ott07ql" path="res://assets/themes/main_theme.tres" id="2_s4h7g"]
[ext_resource type="Script" uid="uid://djdhpn3mtkuh3" path="res://scenes/create_player/main.gd" id="2_ysn76"]
[ext_resource type="PackedScene" uid="uid://odjphawrdiw8" path="res://scenes/create_player/new_character/new_character.tscn" id="3_ysn76"]

[sub_resource type="ButtonGroup" id="ButtonGroup_ysn76"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yty2c"]

[node name="Main" type="Control"]
custom_minimum_size = Vector2(640, 480)
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_s4h7g")
script = ExtResource("2_ysn76")

[node name="Background" 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.050980393, 0.15294118, 0.19607843, 1)

[node name="Top" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 38.0
grow_horizontal = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5

[node name="TopMenu" type="HBoxContainer" parent="Top"]
layout_mode = 2

[node name="ButtonQuit" type="Button" parent="Top/TopMenu"]
layout_mode = 2
text = "Quit
"

[node name="VSeparator" type="VSeparator" parent="Top/TopMenu"]
layout_mode = 2

[node name="ButtonSave" type="Button" parent="Top/TopMenu"]
layout_mode = 2
text = "SAVE"

[node name="ButtonRoll" type="Button" parent="Top/TopMenu"]
layout_mode = 2
text = "ROLL"

[node name="ButtonTest" type="Button" parent="Top/TopMenu"]
layout_mode = 2
text = "!! TEST !!"

[node name="Character" type="MarginContainer" parent="."]
layout_mode = 0
offset_left = 8.0
offset_top = 56.0
offset_right = 792.0
offset_bottom = 584.0
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5

[node name="NewCharacter" parent="Character" instance=ExtResource("3_ysn76")]
visible = false
layout_mode = 2
checkbox_group = SubResource("ButtonGroup_ysn76")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 0
offset_left = 8.0
offset_top = 56.0
offset_right = 792.0
offset_bottom = 584.0

[node name="Logo" type="TextureRect" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 300)
layout_mode = 2

[node name="Menu" type="VBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="ButtonNew" type="Button" parent="VBoxContainer/Menu"]
layout_mode = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c")
text = "Nowa postać"

[node name="ButtonLoad" type="Button" parent="VBoxContainer/Menu"]
layout_mode = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c")
disabled = true
text = "Załaduj"

[connection signal="pressed" from="Top/TopMenu/ButtonQuit" to="." method="_on_button_quit_pressed"]
[connection signal="pressed" from="Top/TopMenu/ButtonRoll" to="Character/NewCharacter" method="_on_button_roll_pressed"]
[connection signal="pressed" from="VBoxContainer/Menu/ButtonNew" to="." method="_on_new_pressed"]
