save difficulty in prefs and apply it

This commit is contained in:
Fabien Freling 2020-05-22 15:34:52 +02:00
parent 0c905be6fc
commit 6d788465ab
3 changed files with 68 additions and 17 deletions

View file

@ -38,6 +38,7 @@ __meta__ = {
margin_right = 200.0
margin_bottom = 70.0
rect_min_size = Vector2( 200, 70 )
toggle_mode = true
group = ExtResource( 2 )
text = "Easy"
@ -84,5 +85,6 @@ margin_bottom = -20.0
rect_min_size = Vector2( 200, 70 )
text = "Cancel"
flat = true
[connection signal="about_to_show" from="." to="." method="_on_NewGamePanel_about_to_show"]
[connection signal="pressed" from="Panel/Start" to="." method="_on_Start_pressed"]
[connection signal="pressed" from="Panel/Cancel" to="." method="_on_Cancel_pressed"]