Lesson 58 - HTTP Request Manager
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "UI/APITest/APITestManager.h"
|
||||
|
||||
void UAPITestManager::ListFleetsButtonClicked()
|
||||
{
|
||||
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, "List Fleets Button Clicked");
|
||||
}
|
||||
@@ -2,3 +2,20 @@
|
||||
|
||||
|
||||
#include "UI/APITest/APITestOverlay.h"
|
||||
|
||||
#include "Components/Button.h"
|
||||
#include "UI/API/ListFleets/ListFleetsBox.h"
|
||||
#include "UI/APITest/APITestManager.h"
|
||||
|
||||
void UAPITestOverlay::NativeConstruct()
|
||||
{
|
||||
Super::NativeConstruct();
|
||||
|
||||
check(APITestManagerClass);
|
||||
APITestManager = NewObject<UAPITestManager>(this, APITestManagerClass);
|
||||
|
||||
check(ListFleetsBox)
|
||||
check(ListFleetsBox->Button_ListFleets)
|
||||
ListFleetsBox->Button_ListFleets->OnClicked.AddDynamic(APITestManager, &UAPITestManager::ListFleetsButtonClicked);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user