17 lines
464 B
GDScript
17 lines
464 B
GDScript
######################
|
|
### Jessist Script ###
|
|
######################
|
|
# This script is part of Jessist
|
|
# Jessist is licensed under GNU GPLv3
|
|
#
|
|
# This script manages the LevelText
|
|
extends RichTextLabel
|
|
|
|
func _process(delta):
|
|
gameController.logCall("LevelText","_process",delta)
|
|
if get_parent().get_node("Camera").position.x >= rect_position.x+margin_right+960-70:
|
|
focusExit()
|
|
|
|
func focusExit():
|
|
print("=> LevelText: No longer in focus, removing")
|
|
queue_free()
|