feat: add taskbook onboarding UI

This commit is contained in:
ANG-Server
2026-07-22 00:45:59 +08:00
parent bb91ccea21
commit 9a3248abd6
15 changed files with 598 additions and 2 deletions

View File

@@ -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",