GASATHON/Project/Source/Gasa/UI/GasaHUD.cpp

33 lines
760 B
C++
Raw Normal View History

#include "GasaHUD.h"
2024-04-21 15:56:57 -07:00
#include "GasaHUD_Inlines.h"
#include "GasaDevOptions.h"
2024-04-21 15:56:57 -07:00
#include "HUDHostWidget.h"
#include "Blueprint/UserWidget.h"
using namespace Gasa;
2024-04-21 15:56:57 -07:00
void AGasaHUD::InitOverlay(FWidgetControllerData const* WidgetControllerData)
{
HostWidget = CreateWidget<UHUDHostWidget>( GetWorld()
, GetDevOptions()->Template_HUD_HostUI.LoadSynchronous() );
HostWidgetController = NewObject<UHostWidgetController>(this, GetDevOptions()->Template_HostWidgetController.Get());
HostWidget->SetWidgetController(HostWidgetController);
HostWidget->AddToViewport();
}
#pragma region HUD
void AGasaHUD::ShowHUD()
{
Super::ShowHUD();
}
#pragma endregion HUD
#pragma region Actor
void AGasaHUD::BeginPlay()
{
Super::BeginPlay();
}
#pragma endregion Actor