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:
parent
d1ef71ceee
commit
e24e9d65a5
|
@ -46,3 +46,7 @@ func rotate():
|
||||||
|
|
||||||
func _on_OptionButton_item_selected(id):
|
func _on_OptionButton_item_selected(id):
|
||||||
rotate()
|
rotate()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_RotateImage_about_to_show():
|
||||||
|
$VBoxContainer/HBoxContainer/HSlider.value = 0
|
||||||
|
|
|
@ -74,6 +74,7 @@ margin_left = 155.0
|
||||||
margin_right = 229.0
|
margin_right = 229.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 24.0
|
||||||
max_value = 359.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="confirmed" from="." to="." method="_on_RotateImage_confirmed"]
|
||||||
[connection signal="item_selected" from="VBoxContainer/HBoxContainer2/OptionButton" to="." method="_on_OptionButton_item_selected"]
|
[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"]
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/HSlider" to="." method="_on_HSlider_value_changed"]
|
||||||
|
|
Loading…
Reference in a new issue