Show options menu when pressing options button in main menu

This commit is contained in:
baz 2023-11-14 22:53:32 +00:00
parent 449687d7ee
commit 085fd8ea46
2 changed files with 9 additions and 3 deletions

Binary file not shown.

View File

@ -40,7 +40,13 @@ void UMainMenuUIWidget::LoadGameButtonOnClicked()
void UMainMenuUIWidget::OptionsButtonOnClicked() void UMainMenuUIWidget::OptionsButtonOnClicked()
{ {
// TODO: Implement Functionality if (OptionsMenuWidget)
{
currentOptionsMenuWidget = CreateWidget<UOptionsUIWidget>(GetWorld(), OptionsMenuWidget);
currentOptionsMenuWidget->AddToViewport();
currentOptionsMenuWidget->SetReturnScreen(this);
this->RemoveFromParent();
}
} }
void UMainMenuUIWidget::QuitButtonOnClicked() void UMainMenuUIWidget::QuitButtonOnClicked()