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

#include <AlertLevelWidget.h>

Inheritance diagram for UAlertLevelWidget:

Public Member Functions

void UpdateAlertLevel (const float CurrentAlertLevel, const float MaxAlertLevel, const EAIStateType AIStateType)
 
void StateChanged (const EAIStateType AIStateType)
 

Protected Member Functions

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

Protected Attributes

class UProgressBar * AlertLevelBar
 
class UImage * AlertLevelIcon
 

Member Function Documentation

◆ Initialize()

bool UAlertLevelWidget::Initialize ( )
overrideprotectedvirtual
10{
11 const bool Success = Super::Initialize();
12 if (!ensure(AlertLevelBar != nullptr)) return false;
13 if (!ensure(AlertLevelIcon != nullptr)) return false;
14 if(!Success) return false;
15 return true;
16}
class UImage * AlertLevelIcon
Definition AlertLevelWidget.h:32
class UProgressBar * AlertLevelBar
Definition AlertLevelWidget.h:30

◆ NativeConstruct()

void UAlertLevelWidget::NativeConstruct ( )
overrideprotectedvirtual
19{
20 Super::NativeConstruct();
21 AlertLevelIcon->SetVisibility(ESlateVisibility::Collapsed);
22}

◆ StateChanged()

void UAlertLevelWidget::StateChanged ( const EAIStateType AIStateType)

◆ UpdateAlertLevel()

void UAlertLevelWidget::UpdateAlertLevel ( const float CurrentAlertLevel,
const float MaxAlertLevel,
const EAIStateType AIStateType )

Member Data Documentation

◆ AlertLevelBar

class UProgressBar* UAlertLevelWidget::AlertLevelBar
protected

◆ AlertLevelIcon

class UImage* UAlertLevelWidget::AlertLevelIcon
protected

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