status_label.gd 618 B

12345678910111213141516171819202122232425262728
  1. extends Label
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. onready var MAIN = find_parent("MAIN")
  6. var alias = ''
  7. var id = ''
  8. var active = false
  9. # Called when the node enters the scene tree for the first time.
  10. func _ready():
  11. pass # Replace with function body.
  12. func _process(delta):
  13. if active:
  14. text = "logged in as @" + MAIN.client.get_username() + ":" + MAIN.client.get_homeserver()
  15. text = text + '\n' + "joinable room alias: " \
  16. + alias \
  17. + '\n' + "room id: " \
  18. + id
  19. # Called every frame. 'delta' is the elapsed time since the previous frame.
  20. #func _process(delta):
  21. # pass