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
2022-03-31 21:49:53 -04:00
committed by Julian Murgia
parent 114ef2fc55
commit 503d6134dd
8 changed files with 181 additions and 137 deletions

View File

@@ -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()