Lesson 67 - Portal Setup

This commit is contained in:
Norman Lansing
2026-03-31 07:42:56 -04:00
parent 102a514afa
commit cc35c1bd1b
13 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
class USignInOverlay;
#include "CoreMinimal.h"
#include "GameFramework/HUD.h"
#include "PortalHUD.generated.h"
/**
*
*/
UCLASS()
class DEDICATEDSERVERS_API APortalHUD : public AHUD
{
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly)
TSubclassOf<USignInOverlay> SignInOverlayClass;
protected:
virtual void BeginPlay() override;
private:
UPROPERTY()
TObjectPtr<USignInOverlay> SignInOverlay;
};

View File

@@ -0,0 +1,16 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "UI/HTTP/HTTPRequestManager.h"
#include "PortalManager.generated.h"
/**
*
*/
UCLASS()
class DEDICATEDSERVERS_API UPortalManager : public UHTTPRequestManager
{
GENERATED_BODY()
};

View File

@@ -0,0 +1,37 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
class UJoinGame;
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "SignInOverlay.generated.h"
class UPortalManager;
/**
*
*/
UCLASS()
class DEDICATEDSERVERS_API USignInOverlay : public UUserWidget
{
GENERATED_BODY()
public:
UPROPERTY(meta = (BindWidget))
TObjectPtr<UJoinGame> JoinGameWidget;
UPROPERTY(EditDefaultsOnly)
TSubclassOf<UPortalManager> PortalManagerClass;
protected:
virtual void NativeConstruct() override;
private:
UPROPERTY()
TObjectPtr<UPortalManager> PortalManager;
};