feat: ported escoria-ui-return-monkey-island-dialog-simple
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
extends VBoxContainer
|
||||
|
||||
signal finished
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func _process(_delta):
|
||||
var size = self.get_global_rect().size
|
||||
var textSize = self.get_global_rect().size
|
||||
if escoria.globals_manager.get_global("turno_credits_rolling"):
|
||||
self.set_position(self.get_position() + Vector2(0, -0.5))
|
||||
if self.get_position().y < -20 - size.y:
|
||||
if self.get_position().y < -20 - textSize.y:
|
||||
escoria.globals_manager.set_global("turno_credits_rolling", false)
|
||||
emit_signal("finished")
|
||||
|
||||
Reference in New Issue
Block a user