Rename entire project to LuckyWorldV2, including uproject file, folders and so on

This commit is contained in:
martinluckyrobots
2025-04-12 11:24:29 +08:00
parent cc578afffb
commit 8556492849
57 changed files with 40 additions and 39 deletions

View File

@ -0,0 +1,40 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "UI/Settings/CaptureSettingsUserWidget.h"
#include "Core/LuckyRobotsGameInstance.h"
#include "UI/GameUserWidget.h"
void UCaptureSettingsUserWidget::NativeConstruct()
{
Super::NativeConstruct();
BPRefreshTaskList();
ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance());
if (GameInstance)
{
GameInstance->OnRandomMeshesUpdated.AddDynamic(this, &UCaptureSettingsUserWidget::BPOnRandomMeshesUpdated);
}
}
void UCaptureSettingsUserWidget::ToggleMenu()
{
bIsOpen = !bIsOpen;
if (bIsOpen)
{
BPLoadSettings();
}
else
{
ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance());
if (GameInstance && GameInstance->GameUserWidget)
{
GameInstance->GameUserWidget->DoAutoConfirm();
}
}
OnOpenMenuStateChanged.Broadcast(bIsOpen);
ToggleMenuDisplay();
}