25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

speech_panel.gd 389 B

1234567891011121314151617181920
  1. extends Control
  2. class_name SpeechPanel
  3. export var text_path : NodePath
  4. var text : SpeechText
  5. export var choices_path : NodePath
  6. var choices : ChoicesBox
  7. func _enter_tree():
  8. Controller.speech_panel = self
  9. text = get_node(text_path)
  10. choices = get_node(choices_path)
  11. func _ready():
  12. Controller.speech_panel = self
  13. text = get_node(text_path)
  14. choices = get_node(choices_path)
  15. hide()