taqin/src/NewGamePanel.tscn

326 lines
8.3 KiB
Plaintext

[gd_scene load_steps=10 format=2]
[ext_resource path="res://assets/taqin_theme.tres" type="Theme" id=1]
[ext_resource path="res://src/difficulty_buttongroup.tres" type="ButtonGroup" id=2]
[ext_resource path="res://src/NewGamePanel.gd" type="Script" id=3]
[ext_resource path="res://src/DepthButton.tscn" type="PackedScene" id=4]
[ext_resource path="res://assets/fonts/OpenSans-SemiBold-24.tres" type="DynamicFont" id=5]
[ext_resource path="res://assets/fonts/OpenSans-ExtraBold-28.tres" type="DynamicFont" id=6]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 1, 0.831373, 0.639216, 1 )
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
[sub_resource type="StyleBoxEmpty" id=2]
[sub_resource type="StyleBoxEmpty" id=3]
[node name="NewGamePanel" type="PopupPanel"]
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
rect_pivot_offset = Vector2( 512, 300 )
theme = ExtResource( 1 )
popup_exclusive = true
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Panel" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 4.0
margin_right = -4.0
margin_bottom = -4.0
rect_clip_content = true
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 15.0
margin_top = 15.0
margin_right = -15.0
margin_bottom = -110.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Difficulty" type="HBoxContainer" parent="Panel/VBoxContainer"]
margin_top = 159.0
margin_right = 986.0
margin_bottom = 229.0
rect_min_size = Vector2( 0, 70 )
rect_clip_content = true
size_flags_horizontal = 3
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Easy" parent="Panel/VBoxContainer/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 185.0
margin_right = 385.0
margin_bottom = 70.0
rect_min_size = Vector2( 200, 70 )
text = "Easy"
corner_type = 1
toggle_mode = true
group = ExtResource( 2 )
[node name="Normal" parent="Panel/VBoxContainer/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 393.0
margin_right = 593.0
margin_bottom = 70.0
rect_min_size = Vector2( 200, 70 )
text = "Normal"
corner_type = 2
toggle_mode = true
group = ExtResource( 2 )
[node name="Hard" parent="Panel/VBoxContainer/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 601.0
margin_right = 801.0
margin_bottom = 70.0
rect_min_size = Vector2( 200, 70 )
text = "Hard"
corner_type = 3
toggle_mode = true
group = ExtResource( 2 )
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer"]
margin_top = 237.0
margin_right = 986.0
margin_bottom = 307.0
[node name="Description" type="RichTextLabel" parent="Panel/VBoxContainer/HBoxContainer"]
modulate = Color( 0.733333, 0.34902, 0.0666667, 1 )
margin_right = 778.0
margin_bottom = 70.0
rect_min_size = Vector2( 200, 0 )
size_flags_horizontal = 3
custom_fonts/bold_font = ExtResource( 6 )
custom_fonts/normal_font = ExtResource( 5 )
custom_constants/line_separation = -8
text = "Dimensions: 5 x x 3
Iterations: 10"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Custom" parent="Panel/VBoxContainer/HBoxContainer" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 786.0
margin_right = 986.0
margin_bottom = 70.0
rect_min_size = Vector2( 200, 70 )
text = "Custom"
toggle_mode = true
group = ExtResource( 2 )
[node name="Start" parent="Panel" instance=ExtResource( 4 )]
anchor_left = 1.0
anchor_top = 1.0
margin_left = -220.0
margin_top = -90.0
margin_right = -20.0
margin_bottom = -20.0
rect_min_size = Vector2( 200, 70 )
text = "Start"
[node name="Cancel" type="Button" parent="Panel"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -90.0
margin_right = 220.0
margin_bottom = -20.0
rect_min_size = Vector2( 200, 70 )
custom_styles/pressed = SubResource( 2 )
custom_styles/focus = SubResource( 3 )
text = "Cancel"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Description" type="Label" parent="Panel"]
visible = false
margin_left = 95.676
margin_top = 144.404
margin_right = 135.676
margin_bottom = 189.404
rect_min_size = Vector2( 400, 0 )
custom_fonts/font = ExtResource( 5 )
text = "Dimension: 4x4
Iterations: 5"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="EditPanel" type="Panel" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 4.0
margin_top = 4.0
margin_right = -4.0
margin_bottom = -4.0
rect_clip_content = true
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="EditPanel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 15.0
margin_top = 15.0
margin_right = -15.0
margin_bottom = -15.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Columns" type="HBoxContainer" parent="EditPanel/VBoxContainer"]
margin_top = 175.0
margin_right = 986.0
margin_bottom = 240.0
alignment = 1
[node name="Label" type="Label" parent="EditPanel/VBoxContainer/Columns"]
modulate = Color( 0.733333, 0.34902, 0.0666667, 1 )
margin_left = 258.0
margin_top = 10.0
margin_right = 428.0
margin_bottom = 55.0
text = "Columns"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SpinBox" type="SpinBox" parent="EditPanel/VBoxContainer/Columns"]
margin_left = 436.0
margin_right = 728.0
margin_bottom = 65.0
min_value = 2.0
max_value = 12.0
value = 4.0
rounded = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Rows" type="HBoxContainer" parent="EditPanel/VBoxContainer"]
margin_top = 248.0
margin_right = 986.0
margin_bottom = 313.0
size_flags_horizontal = 3
alignment = 1
[node name="Label" type="Label" parent="EditPanel/VBoxContainer/Rows"]
modulate = Color( 0.733333, 0.34902, 0.0666667, 1 )
margin_left = 290.0
margin_top = 10.0
margin_right = 395.0
margin_bottom = 55.0
text = "Rows"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SpinBox" type="SpinBox" parent="EditPanel/VBoxContainer/Rows"]
margin_left = 403.0
margin_right = 695.0
margin_bottom = 65.0
min_value = 2.0
max_value = 12.0
value = 4.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Iterations" type="HBoxContainer" parent="EditPanel/VBoxContainer"]
margin_top = 321.0
margin_right = 986.0
margin_bottom = 386.0
size_flags_horizontal = 3
alignment = 1
[node name="Label" type="Label" parent="EditPanel/VBoxContainer/Iterations"]
modulate = Color( 0.733333, 0.34902, 0.0666667, 1 )
margin_left = 177.0
margin_top = 10.0
margin_right = 509.0
margin_bottom = 55.0
text = "Shuffle iterations"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SpinBox" type="SpinBox" parent="EditPanel/VBoxContainer/Iterations"]
margin_left = 517.0
margin_right = 809.0
margin_bottom = 65.0
max_value = 999.0
value = 10.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Cancel" type="Button" parent="EditPanel"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = -90.0
margin_right = 220.0
margin_bottom = -20.0
rect_min_size = Vector2( 200, 70 )
text = "Cancel"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Save" parent="EditPanel" instance=ExtResource( 4 )]
anchor_left = 1.0
anchor_top = 1.0
margin_left = -235.0
margin_top = -138.0
margin_right = -20.0
margin_bottom = -20.0
text = "Save"
[node name="Tween" type="Tween" parent="."]
[connection signal="about_to_show" from="." to="." method="_on_NewGamePanel_about_to_show"]
[connection signal="pressed" from="Panel/VBoxContainer/Difficulty/Easy" to="." method="_on_Easy_pressed"]
[connection signal="pressed" from="Panel/VBoxContainer/Difficulty/Normal" to="." method="_on_Normal_pressed"]
[connection signal="pressed" from="Panel/VBoxContainer/Difficulty/Hard" to="." method="_on_Hard_pressed"]
[connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer/Custom" to="." method="_on_Custom_pressed"]
[connection signal="pressed" from="Panel/Start" to="." method="_on_Start_pressed"]
[connection signal="pressed" from="Panel/Cancel" to="." method="_on_Cancel_pressed"]
[connection signal="pressed" from="EditPanel/Cancel" to="." method="_on_Edit_Cancel_pressed"]
[connection signal="pressed" from="EditPanel/Save" to="." method="_on_Edit_Save_pressed"]