You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
708 B
34 lines
708 B
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Blueprint/UserWidget.h"
|
|
#include "../SessionsGameInstanceSubsystem.h"
|
|
|
|
#include "MainMenuWidget.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class TURNBASEDTUTORIAL_API UMainMenuWidget : public UUserWidget {
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UPROPERTY(meta = (BindWidget))
|
|
class UButton *HostOnlineGameButton;
|
|
|
|
virtual void NativeConstruct() override;
|
|
|
|
protected:
|
|
UFUNCTION()
|
|
void OnHostOnlineGameButtonClicked();
|
|
|
|
UFUNCTION()
|
|
void StartSessionWhenCreatingSessionComplete(bool bSuccess);
|
|
|
|
private:
|
|
USessionsGameInstanceSubsystem *GetMyGameSubsystem() const;
|
|
};
|