1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Reset slider to zero when openning again

This commit is contained in:
azagaya 2020-02-03 14:01:59 -03:00
parent d1ef71ceee
commit e24e9d65a5
2 changed files with 5 additions and 0 deletions

View file

@ -46,3 +46,7 @@ func rotate():
func _on_OptionButton_item_selected(id):
rotate()
func _on_RotateImage_about_to_show():
$VBoxContainer/HBoxContainer/HSlider.value = 0

View file

@ -74,6 +74,7 @@ margin_left = 155.0
margin_right = 229.0
margin_bottom = 24.0
max_value = 359.0
[connection signal="about_to_show" from="." to="." method="_on_RotateImage_about_to_show"]
[connection signal="confirmed" from="." to="." method="_on_RotateImage_confirmed"]
[connection signal="item_selected" from="VBoxContainer/HBoxContainer2/OptionButton" to="." method="_on_OptionButton_item_selected"]
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/HSlider" to="." method="_on_HSlider_value_changed"]