1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

improved code

This commit is contained in:
Variable 2024-01-19 18:44:01 +05:00
parent a87ec8654f
commit 1e47642904
2 changed files with 6 additions and 6 deletions

View file

@ -212,8 +212,8 @@ func set_and_update_preview_image(frame_idx: int) -> void:
update_preview()
func update_preview(live := true) -> void:
if !live:
func update_preview(using_timer := false) -> void:
if !live_preview and !using_timer:
wait_apply_timer.start()
return
@ -262,7 +262,7 @@ func _on_live_checkbox_toggled(toggled_on: bool) -> void:
func _on_wait_apply_timeout() -> void:
update_preview()
update_preview(true)
func _on_wait_time_value_changed(value: float) -> void:

View file

@ -175,15 +175,15 @@ func _on_TypeOptionButton_item_selected(_id: int) -> void:
func _on_AngleSlider_value_changed(_value: float) -> void:
update_preview(live_preview)
update_preview()
func _on_InitialAngleSlider_value_changed(_value: float) -> void:
update_preview(live_preview)
update_preview()
func _on_ToleranceSlider_value_changed(_value: float) -> void:
update_preview(live_preview)
update_preview()
func _on_quick_change_angle_pressed(angle_value: int) -> void: