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 "MainMenuUIWidget.h"
|
||||||
|
|
||||||
#include "Kismet/GameplayStatics.h"
|
|
||||||
|
|
||||||
void UMainMenuUIWidget::NativeConstruct()
|
void UMainMenuUIWidget::NativeConstruct()
|
||||||
{
|
{
|
||||||
Super::NativeConstruct();
|
Super::NativeConstruct();
|
||||||
|
@ -32,11 +30,7 @@ void UMainMenuUIWidget::NativeConstruct()
|
||||||
|
|
||||||
void UMainMenuUIWidget::NewGameButtonOnClicked()
|
void UMainMenuUIWidget::NewGameButtonOnClicked()
|
||||||
{
|
{
|
||||||
// TODO: Replace this is a menu to confirm the user wants to start a new game
|
// TODO: Implement Functionality
|
||||||
if (!NewGameLevel.IsNull())
|
|
||||||
{
|
|
||||||
UGameplayStatics::OpenLevelBySoftObjectPtr(GetWorld(), NewGameLevel);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UMainMenuUIWidget::LoadGameButtonOnClicked()
|
void UMainMenuUIWidget::LoadGameButtonOnClicked()
|
||||||
|
@ -46,13 +40,7 @@ void UMainMenuUIWidget::LoadGameButtonOnClicked()
|
||||||
|
|
||||||
void UMainMenuUIWidget::OptionsButtonOnClicked()
|
void UMainMenuUIWidget::OptionsButtonOnClicked()
|
||||||
{
|
{
|
||||||
if (OptionsMenuWidget)
|
// TODO: Implement Functionality
|
||||||
{
|
|
||||||
currentOptionsMenuWidget = CreateWidget<UOptionsUIWidget>(GetWorld(), OptionsMenuWidget);
|
|
||||||
currentOptionsMenuWidget->AddToViewport();
|
|
||||||
currentOptionsMenuWidget->SetReturnScreen(this);
|
|
||||||
this->RemoveFromParent();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UMainMenuUIWidget::QuitButtonOnClicked()
|
void UMainMenuUIWidget::QuitButtonOnClicked()
|
||||||
|
|
|
@ -38,9 +38,6 @@ public:
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||||
TSubclassOf<class UUserWidget> OptionsMenuWidget;
|
TSubclassOf<class UUserWidget> OptionsMenuWidget;
|
||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
|
||||||
TSoftObjectPtr<UWorld> NewGameLevel;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UUserWidget* currentNewGameWidget;
|
UUserWidget* currentNewGameWidget;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue