blaster/Source/Blaster/HUD/ReturnToMainMenu.h

44 lines
759 B
C
Raw Normal View History

2022-05-28 12:46:58 +00:00
// 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;
2022-05-28 14:26:06 +00:00
2022-05-28 12:46:58 +00:00
UFUNCTION()
void OnDestroySessionComplete(bool bWasSuccessful);
2022-05-28 14:26:06 +00:00
UFUNCTION()
void OnPlayerLeftGame();
2022-05-28 12:46:58 +00:00
private:
UPROPERTY(meta = (BindWidget))
class UButton* ReturnButton;
UFUNCTION()
void ReturnButtonClicked();
UPROPERTY()
class UMultiplayerSessionsSubsystem* MultiplayerSessionsSubsystem;
UPROPERTY()
class APlayerController* PlayerController;
};