fix: eliminates the need to run two batches of ESC commands for loading games by introducing an extra ESC command; also corrects situations where transitions that are mixed and matched don't work together; and additional cleanup

This commit is contained in:
Duncan Brown authored and Julian Murgia committed 2022-04-08 21:18:57 +02:00
1 parent 114ef2fc55
commit 503d6134dd
8 files changed
+181 -137

No files matched your search

@@ -137,6 +137,14 @@ func has_transition(name: String) -> bool:
return name == TRANSITION_INSTANT or get_transition(name) != ""
# Resets the current material's cutoff parameter instantly.
func reset_shader_cutoff() -> void:
if not is_instance_valid(material):
return
material.set_shader_param("cutoff", 1.0)
func _on_tween_completed():
if not _was_canceled:
_tween.stop_all()