You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
526 B
27 lines
526 B
extends Node
|
|
|
|
var container: HelpBoxContainer
|
|
|
|
func showHelp(text:String)->void:
|
|
container.showHelp(text)
|
|
|
|
func hideHelp()->void:
|
|
container.hideHelp()
|
|
|
|
func registerContainer(container: HelpBoxContainer)->void:
|
|
self.container = container
|
|
|
|
|
|
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
|
|
if event.is_action_pressed("ui_left"):
|
|
HelpBox.showHelp("This is a test help text.")
|
|
|
|
if event.is_action_pressed("ui_right"):
|
|
HelpBox.hideHelp()
|
|
|
|
if event.is_action_pressed("ui_up"):
|
|
Dialogic.start_timeline("test_time_line")
|