Space Plunder
Loading...
Searching...
No Matches
UPrimaryLayoutWidget Class Reference

#include <PrimaryLayoutWidget.h>

Inheritance diagram for UPrimaryLayoutWidget:

Public Member Functions

bool RegisterLayers ()
 

Public Attributes

class UOverlay * RootOverlay
 

Protected Member Functions

virtual bool Initialize () override
 
virtual void NativePreConstruct () override
 
virtual void NativeConstruct () override
 

Protected Attributes

class ULayerWidgetGameLayer
 
class ULayerWidgetGameMenuLayer
 
class ULayerWidgetMenuLayer
 
class ULayerWidgetModalLayer
 
class ULayerWidgetNotificationLayer
 

Member Function Documentation

◆ Initialize()

bool UPrimaryLayoutWidget::Initialize ( )
overrideprotectedvirtual
12{
13 const bool Success = Super::Initialize();
14 if(!Success) return false;
15 if (!ensure(GameLayer != nullptr)) return false;
16 if (!ensure(GameMenuLayer != nullptr)) return false;
17 if (!ensure(MenuLayer != nullptr)) return false;
18 if (!ensure(ModalLayer != nullptr)) return false;
19 if (!ensure(NotificationLayer != nullptr)) return false;
20 return true;
21}
class ULayerWidget * ModalLayer
Definition PrimaryLayoutWidget.h:38
class ULayerWidget * NotificationLayer
Definition PrimaryLayoutWidget.h:40
class ULayerWidget * MenuLayer
Definition PrimaryLayoutWidget.h:36
class ULayerWidget * GameLayer
Definition PrimaryLayoutWidget.h:32
class ULayerWidget * GameMenuLayer
Definition PrimaryLayoutWidget.h:34

◆ NativeConstruct()

void UPrimaryLayoutWidget::NativeConstruct ( )
overrideprotectedvirtual
29{
30 Super::NativeConstruct();
31}

◆ NativePreConstruct()

void UPrimaryLayoutWidget::NativePreConstruct ( )
overrideprotectedvirtual
24{
25 Super::NativePreConstruct();
26}

◆ RegisterLayers()

bool UPrimaryLayoutWidget::RegisterLayers ( )
34{
35 IPlayerControllerInterface* PlayerController = Cast<IPlayerControllerInterface>(GetOwningPlayer());
36 if(PlayerController == nullptr){UE_LOG(LogBaseWidgets, Error, TEXT("PlayerController in UPrimaryLayoutWidget::RegisterLayers"));return false;}
37 PlayerController->RegisterLayer(HUDLayerTags::Menu, MenuLayer);
38 PlayerController->RegisterLayer(HUDLayerTags::GameMenu, GameMenuLayer);
39 PlayerController->RegisterLayer(HUDLayerTags::GameUI, GameLayer);
40 PlayerController->RegisterLayer(HUDLayerTags::Notifications, NotificationLayer);
41 PlayerController->RegisterLayer(HUDLayerTags::Modal, ModalLayer);
42 return true;
43}
Definition PlayerControllerInterface.h:21
virtual bool RegisterLayer(const FGameplayTag LayerName, UUserWidget *LayerWidget)=0

Member Data Documentation

◆ GameLayer

class ULayerWidget* UPrimaryLayoutWidget::GameLayer
protected

◆ GameMenuLayer

class ULayerWidget* UPrimaryLayoutWidget::GameMenuLayer
protected

◆ MenuLayer

class ULayerWidget* UPrimaryLayoutWidget::MenuLayer
protected

◆ ModalLayer

class ULayerWidget* UPrimaryLayoutWidget::ModalLayer
protected

◆ NotificationLayer

class ULayerWidget* UPrimaryLayoutWidget::NotificationLayer
protected

◆ RootOverlay

class UOverlay* UPrimaryLayoutWidget::RootOverlay

The documentation for this class was generated from the following files: