This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/Scripts/LevelText.gd
2022-06-18 13:05:48 +02:00

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