blaster/Source/Blaster/HUD/ReturnToMainMenu.h

44 lines
759 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "ReturnToMainMenu.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API UReturnToMainMenu : public UUserWidget
{
GENERATED_BODY()
public:
void MenuSetup();
void MenuTearDown();
protected:
virtual bool Initialize() override;
UFUNCTION()
void OnDestroySessionComplete(bool bWasSuccessful);
UFUNCTION()
void OnPlayerLeftGame();
private:
UPROPERTY(meta = (BindWidget))
class UButton* ReturnButton;
UFUNCTION()
void ReturnButtonClicked();
UPROPERTY()
class UMultiplayerSessionsSubsystem* MultiplayerSessionsSubsystem;
UPROPERTY()
class APlayerController* PlayerController;
};