broken_seals_2d/game/ui/about/GodotLicense.gd

19 lines
291 B
GDScript3
Raw Normal View History

2020-07-08 23:25:40 +02:00
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()