mirror of
https://github.com/Relintai/broken_seals_2ds.git
synced 2024-12-29 01:27:13 +01:00
19 lines
291 B
GDScript3
19 lines
291 B
GDScript3
|
extends RichTextLabel
|
||
|
|
||
|
var populated : bool = false
|
||
|
|
||
|
func _enter_tree():
|
||
|
connect("visibility_changed", self, "on_visibility_changed")
|
||
|
|
||
|
func on_visibility_changed():
|
||
|
if visible:
|
||
|
populate()
|
||
|
|
||
|
func populate():
|
||
|
if populated:
|
||
|
return
|
||
|
|
||
|
populated = true
|
||
|
|
||
|
text = Engine.get_license_text()
|