feat: add taskbook onboarding UI
This commit is contained in:
@@ -47,6 +47,12 @@ func _ready() -> void:
|
||||
_connect_cafe_companion_events()
|
||||
_register_interactables()
|
||||
_discover_destination()
|
||||
_report_task_map_visit()
|
||||
|
||||
func _report_task_map_visit() -> void:
|
||||
var taskManager := get_node_or_null("/root/TaskManager")
|
||||
if taskManager != null and taskManager.has_method("report_activity"):
|
||||
taskManager.call("report_activity", "map_visited", "whale_cafe")
|
||||
|
||||
func _discover_destination() -> void:
|
||||
var destination_id := SceneManager.get_next_destination_id()
|
||||
|
||||
@@ -24,6 +24,12 @@ func _ready() -> void:
|
||||
_configure_camera()
|
||||
_discover_destination()
|
||||
call_deferred("_show_registration_welcome")
|
||||
_report_task_map_visit()
|
||||
|
||||
func _report_task_map_visit() -> void:
|
||||
var taskManager := get_node_or_null("/root/TaskManager")
|
||||
if taskManager != null and taskManager.has_method("report_activity"):
|
||||
taskManager.call("report_activity", "map_visited", "square")
|
||||
|
||||
func _show_registration_welcome() -> void:
|
||||
var auth_manager: Node = get_node_or_null("/root/AuthManager")
|
||||
|
||||
@@ -39,6 +39,12 @@ func _ready() -> void:
|
||||
EventSystem.connect_event(EventNames.OBJECT_INTERACTED, _on_object_interacted, self)
|
||||
EventSystem.connect_event(EventNames.MALL_CLOSED, _on_mall_closed, self)
|
||||
_discover_destination()
|
||||
_report_task_map_visit()
|
||||
|
||||
func _report_task_map_visit() -> void:
|
||||
var taskManager := get_node_or_null("/root/TaskManager")
|
||||
if taskManager != null and taskManager.has_method("report_activity"):
|
||||
taskManager.call("report_activity", "map_visited", "work_zone")
|
||||
|
||||
func _discover_destination() -> void:
|
||||
var destination_id := SceneManager.get_next_destination_id()
|
||||
@@ -135,6 +141,11 @@ func _on_object_interacted(data: Dictionary) -> void:
|
||||
if buildingId == "virtual_whale_recruitment_board":
|
||||
_open_course_board()
|
||||
return
|
||||
if buildingId == "whale_job_center":
|
||||
var taskBook := get_node_or_null("/root/TaskBookPanel")
|
||||
if taskBook != null and taskBook.has_method("show_panel"):
|
||||
taskBook.call("show_panel")
|
||||
return
|
||||
if not [
|
||||
"whale_job_center",
|
||||
"ai_service_station",
|
||||
|
||||
Reference in New Issue
Block a user