Show options menu when pressing options button in main menu
This commit is contained in:
parent
449687d7ee
commit
085fd8ea46
BIN
Content/UI/MainMenu/MainMenuUIWidget.uasset (Stored with Git LFS)
BIN
Content/UI/MainMenu/MainMenuUIWidget.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue