Skip to content

UAndromedaSuitScanRecallWidget

Kind: class Source: Source/Andromeda/UI/AndromedaSuitScanRecallWidget.h Base classes: UUserWidget

Details

Base widget for suit recall display of station scan records.

Protected Properties

Member Type Summary
RecallRoot TObjectPtr< UWidget > Optional root widget used for show/hide.
StatusText TObjectPtr< UTextBlock > Optional record count or empty status binding.
RecordsText TObjectPtr< UTextBlock > Optional multiline records binding.
CurrentRecords TArray< FAndromedaScannedItemRecord > Transient records currently displayed, usually sorted newest-first by the HUD.
CurrentEmptyText FText Empty state text shown when no records can be displayed.
bRecallVisible bool Runtime visibility flag.

Public Methods

Member Type Summary
ShowRecords void Stores records, clears empty text, marks recall visible, and refreshes.
ShowEmpty void Clears records, stores the empty state, marks recall visible, and refreshes.
HideRecall void Marks recall hidden and refreshes visibility.
IsRecallVisible bool Returns whether recall is currently visible.

Protected Methods

Member Type Summary
NativeOnInitialized void Logs when RecordsText is missing and refreshes initial state.
RefreshRecall void Writes status, generated record text, and visibility.
BuildRecordsText FText Builds a blank-line-separated record body from item name, manifest, and requirement.

Members

RecallRoot

TObjectPtr< UWidget > RecallRoot

Optional root widget used for show/hide.

StatusText

TObjectPtr< UTextBlock > StatusText

Optional record count or empty status binding.

RecordsText

TObjectPtr< UTextBlock > RecordsText

Optional multiline records binding.

CurrentRecords

TArray< FAndromedaScannedItemRecord > CurrentRecords

Transient records currently displayed, usually sorted newest-first by the HUD.

CurrentEmptyText

FText CurrentEmptyText

Empty state text shown when no records can be displayed.

bRecallVisible

bool bRecallVisible

Runtime visibility flag.

ShowRecords

void UAndromedaSuitScanRecallWidget::ShowRecords(const TArray< FAndromedaScannedItemRecord > &Records)

Stores records, clears empty text, marks recall visible, and refreshes.

Parameters:

Name Type Description
Records const TArray< FAndromedaScannedItemRecord > & Scan records to display, usually sorted newest-first by the HUD.

ShowEmpty

void UAndromedaSuitScanRecallWidget::ShowEmpty(const FText &EmptyText)

Clears records, stores the empty state, marks recall visible, and refreshes.

Parameters:

Name Type Description
EmptyText const FText & Status text to display when no records are available.

HideRecall

void UAndromedaSuitScanRecallWidget::HideRecall()

Marks recall hidden and refreshes visibility.

IsRecallVisible

bool UAndromedaSuitScanRecallWidget::IsRecallVisible() const

Returns whether recall is currently visible.

Returns:

Runtime recall visibility flag.

NativeOnInitialized

void UAndromedaSuitScanRecallWidget::NativeOnInitialized() override

Logs when RecordsText is missing and refreshes initial state.

RefreshRecall

void UAndromedaSuitScanRecallWidget::RefreshRecall()

Writes status, generated record text, and visibility.

Visible recall uses hit-test-invisible visibility so the panel can show without consuming pointer input. When RecallRoot is unbound, visibility is applied to the whole widget.

BuildRecordsText

FText UAndromedaSuitScanRecallWidget::BuildRecordsText() const

Builds a blank-line-separated record body from item name, manifest, and requirement.

Empty fields are replaced with localized fallbacks.

Returns:

Multiline text body for RecordsText, or empty text when there are no records.