Compare commits
No commits in common. "1f6d729d73b685f62643ef5f9f473d2bc37e6041" and "449687d7ee1d75a5b2363367b536bfad9921f388" have entirely different histories.
1f6d729d73
...
449687d7ee
BIN
Content/UI/MainMenu/MainMenuUIWidget.uasset (Stored with Git LFS)
BIN
Content/UI/MainMenu/MainMenuUIWidget.uasset (Stored with Git LFS)
Binary file not shown.
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include "MainMenuUIWidget.h"
|
||||
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
|
||||
void UMainMenuUIWidget::NativeConstruct()
|
||||
{
|
||||
Super::NativeConstruct();
|
||||
|
@ -32,11 +30,7 @@ void UMainMenuUIWidget::NativeConstruct()
|
|||
|
||||
void UMainMenuUIWidget::NewGameButtonOnClicked()
|
||||
{
|
||||
// TODO: Replace this is a menu to confirm the user wants to start a new game
|
||||
if (!NewGameLevel.IsNull())
|
||||
{
|
||||
UGameplayStatics::OpenLevelBySoftObjectPtr(GetWorld(), NewGameLevel);
|
||||
}
|
||||
// TODO: Implement Functionality
|
||||
}
|
||||
|
||||
void UMainMenuUIWidget::LoadGameButtonOnClicked()
|
||||
|
@ -46,13 +40,7 @@ void UMainMenuUIWidget::LoadGameButtonOnClicked()
|
|||
|
||||
void UMainMenuUIWidget::OptionsButtonOnClicked()
|
||||
{
|
||||
if (OptionsMenuWidget)
|
||||
{
|
||||
currentOptionsMenuWidget = CreateWidget<UOptionsUIWidget>(GetWorld(), OptionsMenuWidget);
|
||||
currentOptionsMenuWidget->AddToViewport();
|
||||
currentOptionsMenuWidget->SetReturnScreen(this);
|
||||
this->RemoveFromParent();
|
||||
}
|
||||
// TODO: Implement Functionality
|
||||
}
|
||||
|
||||
void UMainMenuUIWidget::QuitButtonOnClicked()
|
||||
|
|
|
@ -38,9 +38,6 @@ public:
|
|||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||
TSubclassOf<class UUserWidget> OptionsMenuWidget;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||
TSoftObjectPtr<UWorld> NewGameLevel;
|
||||
|
||||
private:
|
||||
UUserWidget* currentNewGameWidget;
|
||||
|
||||
|
|
Loading…
Reference in New Issue