forked from xiangwang25/whale-town-front-v2
feat: add taskbook onboarding UI
This commit is contained in:
@@ -17,6 +17,10 @@ func _ready() -> void:
|
||||
add_child(interactable)
|
||||
|
||||
func interact() -> void:
|
||||
var taskManager := get_node_or_null("/root/TaskManager")
|
||||
if taskManager != null and taskManager.has_method("report_activity"):
|
||||
taskManager.call("report_activity", "notice_viewed")
|
||||
taskManager.call("report_activity", "facility_interacted", "notice_board")
|
||||
var root: Window = get_tree().root
|
||||
if root.has_node(NOTICE_DIALOG_NAME):
|
||||
return
|
||||
|
||||
@@ -17,6 +17,9 @@ func _ready() -> void:
|
||||
add_child(interactable)
|
||||
|
||||
func interact() -> void:
|
||||
var taskManager := get_node_or_null("/root/TaskManager")
|
||||
if taskManager != null and taskManager.has_method("report_activity"):
|
||||
taskManager.call("report_activity", "facility_interacted", "welcome_board")
|
||||
var root: Window = get_tree().root
|
||||
if root.has_node(WELCOME_DIALOG_NAME):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user