Enable the quit button

This commit is contained in:
baz 2025-09-11 02:42:29 +01:00
parent 6a97c425d7
commit 407f6c6ec6

View File

@ -30,8 +30,6 @@ void UMainMenuWidget::NativeConstruct()
QuitButton->OnFocused.AddUniqueDynamic(this, &UMainMenuWidget::QuitButtonFocused);
}
QuitButton->SetIsEnabled(false);
if (APlayerController* PlayerController = UGameplayStatics::GetPlayerController(GetWorld(), 0))
{
UWidgetBlueprintLibrary::SetInputMode_UIOnlyEx(PlayerController, NewGameButton, EMouseLockMode::LockAlways);