forked from team-sg/hero-mark-2
file select and file creation, menus glued together
This commit is contained in:
parent
13708b4046
commit
f7496c5e6f
18 changed files with 754 additions and 47 deletions
|
@ -2,17 +2,18 @@ extends CanvasLayer
|
|||
|
||||
signal fade_finished
|
||||
|
||||
func fade_in(time, reverse = false, color = Color.black):
|
||||
func fade_in(time, reverse: bool = false, color: Color = Color.black) -> void:
|
||||
var rect = $TextureRect
|
||||
rect.material.set_shader_param("color", color)
|
||||
rect.material.set_shader_param("reverse", reverse)
|
||||
$AnimationPlayer.play("FadeIn", -1, 1.0 / time)
|
||||
|
||||
func fade_out(time, reverse = false, color = Color.black):
|
||||
func fade_out(time, reverse: bool = false, color: Color = Color.black) -> void:
|
||||
var rect = $TextureRect
|
||||
rect.material.set_shader_param("color", color)
|
||||
rect.material.set_shader_param("reverse", reverse)
|
||||
$AnimationPlayer.play("FadeOut", -1, 1.0 / time)
|
||||
|
||||
func _fade_finished(anim_name):
|
||||
|
||||
func _fade_finished(anim_name) -> void:
|
||||
emit_signal("fade_finished")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue