24 Super::NativeConstruct();
248 FString Message = FString::Printf( TEXT(
"Question %d is not answered. Please fill in all answers."), i + 1 );
249 DialogMgr->ShowToast(Message);
256 TArray<FInterviewAnswerData> AnswerDataList;
265 AnswerDataList.Add(AnswerData);
272 Request.
answer = AnswerDataList;
274 NetworkSystem->RequestInterviewAnswer(
276 FResponseInterviewAnswerDelegate::CreateUObject(
286 if (
UPopupManager* PopupMgr = UPopupManager::Get(GetWorld()))
288 PopupMgr->HideCurrentPopup();
290 if (APlayerController* PC = GetWorld()->GetFirstPlayerController())
294 if (!PlayerControl->ShouldSkipTutorial())
297 PopupMgr->ShowPopup(EPopupType::AskTutorial);
326 PRINTLOG(TEXT(
"[UPopup_InterviewHello] Interview Answer SUCCESS"));
334 const FDateTime Now = FDateTime::Now();
335 const FString TodayDate = FString::Printf(TEXT(
"%04d-%02d-%02d"), Now.GetYear(), Now.GetMonth(), Now.GetDay());
339 if (
auto DM = UDialogManager::Get(GetWorld()))
341 DM->ShowToast(TEXT(
"Do not show again setting complete"));
344 PRINTLOG(TEXT(
"[UPopup_InterviewHello] 'Today do not show' saved for User %d, Date: %s"), UserId, *TodayDate);
348 if (
auto BM = UBroadcastManager::Get(GetWorld()))
350 BM->SendTutorMessage( FText::FromString(TEXT(
"Interview answers submitted successfully!")) );
354 if (
UPopupManager* PopupMgr = UPopupManager::Get(GetWorld()))
356 PopupMgr->HideCurrentPopup();
359 if (APlayerController* PC = GetWorld()->GetFirstPlayerController())
363 if (!PlayerControl->ShouldSkipTutorial())
366 PopupMgr->ShowPopup(EPopupType::AskTutorial);
374 PRINTLOG(TEXT(
"[UPopup_InterviewHello] Interview Answer FAILED"));