taqin/src/NewGamePanel.tscn

273 lines
6.7 KiB
Plaintext

[gd_scene load_steps=6 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]
[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
[node name="NewGamePanel" type="PopupPanel"]
visible = true
anchor_right = 1.0
anchor_bottom = 1.0
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
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Difficulty" type="HBoxContainer" parent="Panel"]
anchor_right = 1.0
margin_top = 20.0
rect_min_size = Vector2( 0, 70 )
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Easy" parent="Panel/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 96.0
margin_right = 296.0
margin_bottom = 80.0
text = "Easy"
corner_type = 1
toggle_mode = true
group = ExtResource( 2 )
[node name="Normal" parent="Panel/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 304.0
margin_right = 504.0
margin_bottom = 80.0
text = "Normal"
corner_type = 2
toggle_mode = true
group = ExtResource( 2 )
[node name="Hard" parent="Panel/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 512.0
margin_right = 712.0
margin_bottom = 80.0
text = "Hard"
corner_type = 2
toggle_mode = true
group = ExtResource( 2 )
[node name="Custom" parent="Panel/Difficulty" instance=ExtResource( 4 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 720.0
margin_right = 920.0
margin_bottom = 80.0
text = "Custom"
corner_type = 3
toggle_mode = true
group = ExtResource( 2 )
[node name="Start" parent="Panel" 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 = "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 )
text = "Cancel"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Description" type="Label" parent="Panel"]
margin_left = 95.676
margin_top = 144.404
margin_right = 135.676
margin_bottom = 189.404
text = "Dimension: 4x4
Iterations: 5"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Edit" parent="Panel" instance=ExtResource( 4 )]
visible = false
margin_left = 651.0
margin_top = 126.0
margin_right = -148.0
margin_bottom = -350.0
text = "Edit"
[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
custom_styles/panel = SubResource( 1 )
__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="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="VBoxContainer" type="VBoxContainer" parent="EditPanel"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = -150.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Columns" type="HBoxContainer" parent="EditPanel/VBoxContainer"]
margin_top = 115.0
margin_right = 1016.0
margin_bottom = 180.0
alignment = 1
[node name="Label" type="Label" parent="EditPanel/VBoxContainer/Columns"]
margin_left = 183.0
margin_top = 10.0
margin_right = 533.0
margin_bottom = 55.0
rect_min_size = Vector2( 350, 0 )
text = "Columns"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SpinBox" type="SpinBox" parent="EditPanel/VBoxContainer/Columns"]
margin_left = 541.0
margin_right = 833.0
margin_bottom = 65.0
min_value = 2.0
value = 4.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Rows" type="HBoxContainer" parent="EditPanel/VBoxContainer"]
margin_top = 188.0
margin_right = 1016.0
margin_bottom = 253.0
alignment = 1
[node name="Label" type="Label" parent="EditPanel/VBoxContainer/Rows"]
margin_left = 183.0
margin_top = 10.0
margin_right = 533.0
margin_bottom = 55.0
rect_min_size = Vector2( 350, 0 )
text = "Rows"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SpinBox" type="SpinBox" parent="EditPanel/VBoxContainer/Rows"]
margin_left = 541.0
margin_right = 833.0
margin_bottom = 65.0
min_value = 2.0
value = 4.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Iterations" type="HBoxContainer" parent="EditPanel/VBoxContainer"]
margin_top = 261.0
margin_right = 1016.0
margin_bottom = 326.0
alignment = 1
[node name="Label" type="Label" parent="EditPanel/VBoxContainer/Iterations"]
margin_left = 183.0
margin_top = 10.0
margin_right = 533.0
margin_bottom = 55.0
rect_min_size = Vector2( 350, 0 )
text = "Shuffle iterations"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SpinBox" type="SpinBox" parent="EditPanel/VBoxContainer/Iterations"]
margin_left = 541.0
margin_right = 833.0
margin_bottom = 65.0
value = 10.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Tween" type="Tween" parent="."]
[connection signal="about_to_show" from="." to="." method="_on_NewGamePanel_about_to_show"]
[connection signal="pressed" from="Panel/Difficulty/Easy" to="." method="_on_Easy_pressed"]
[connection signal="pressed" from="Panel/Difficulty/Normal" to="." method="_on_Normal_pressed"]
[connection signal="pressed" from="Panel/Difficulty/Hard" to="." method="_on_Hard_pressed"]
[connection signal="toggled" from="Panel/Difficulty/Custom" to="." method="_on_Custom_toggled"]
[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="Panel/Edit" to="." method="_on_Edit_pressed"]
[connection signal="pressed" from="EditPanel/Save" to="." method="_on_Edit_Save_pressed"]
[connection signal="pressed" from="EditPanel/Cancel" to="." method="_on_Edit_Cancel_pressed"]