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.
36 lines
810 B
36 lines
810 B
2 years ago
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "CoreMinimal.h"
|
||
|
#include "MyGameInstanceSubsystem.h"
|
||
|
|
||
|
#include "Blueprint/UserWidget.h"
|
||
|
#include "MySessionListWidget.generated.h"
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
UCLASS()
|
||
|
class TURNBASEDTUTORIAL_API UMySessionListWidget : public UUserWidget
|
||
|
{
|
||
|
GENERATED_BODY()
|
||
|
|
||
|
protected:
|
||
|
virtual void NativeConstruct() override;
|
||
|
|
||
|
UPROPERTY(meta = (BindWidget))
|
||
|
class UButton* ConnectToSelectedSessionButton;
|
||
|
|
||
|
UPROPERTY(meta = (BindWidget))
|
||
|
class UButton* GoBackToMainMenuButton;
|
||
|
|
||
|
UPROPERTY(meta = (BindWidget))
|
||
|
class UListView* AvailableSessionsList;
|
||
|
|
||
|
void FillSessionListFromDelegate(const TArray<FOnlineSessionSearchResult>& SessionResults, bool bSuccessful);
|
||
|
|
||
|
private:
|
||
|
UMyGameInstanceSubsystem* GetMyGameSubsystem() const;
|
||
|
};
|