Skip to content

UAndromedaScannerScreenWidget

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

Details

Base widget for scanner workstation idle, ready, result, and error states.

Protected Properties

Member Type Summary
StatusText TObjectPtr< UTextBlock > Optional scanner status binding for idle, ready, complete, invalid, and error states.
ItemNameText TObjectPtr< UTextBlock > Optional item name binding.
ManifestText TObjectPtr< UTextBlock > Optional manifest claim binding.
LegalRequirementText TObjectPtr< UTextBlock > Optional legal requirement binding.
RadiationText TObjectPtr< UTextBlock > Optional radiation summary binding.
MassText TObjectPtr< UTextBlock > Optional mass summary binding.
SerialText TObjectPtr< UTextBlock > Optional serial summary binding.
HazardText TObjectPtr< UTextBlock > Optional hazard rating binding.
PackageRequirementText TObjectPtr< UTextBlock > Optional package requirement binding.
NotesText TObjectPtr< UTextBlock > Optional hidden scan note binding.
ScanResult FAndromedaScanResult Transient scan result currently represented on screen.

Public Methods

Member Type Summary
ShowIdle void Clears the current scan, shows idle status, and clears scan fields.
ShowItemReady void Shows item-ready status without changing the stored scan result.
SetScanResult void Alias for ShowScanResult, useful for Blueprint or caller naming preferences.
ShowScanResult void Stores a scan result, sets complete or invalid status, and refreshes fields.
ShowError void Clears the scan, shows the supplied error or fallback text, and clears fields.
GetScanResult FAndromedaScanResult Returns the stored scan result.

Protected Methods

Member Type Summary
ClearScanText void Sets every scan-detail text block to empty when bound.
RefreshScanResult void Formats and writes all scan result fields.

Members

StatusText

TObjectPtr< UTextBlock > StatusText

Optional scanner status binding for idle, ready, complete, invalid, and error states.

ItemNameText

TObjectPtr< UTextBlock > ItemNameText

Optional item name binding.

ManifestText

TObjectPtr< UTextBlock > ManifestText

Optional manifest claim binding.

LegalRequirementText

TObjectPtr< UTextBlock > LegalRequirementText

Optional legal requirement binding.

RadiationText

TObjectPtr< UTextBlock > RadiationText

Optional radiation summary binding.

MassText

TObjectPtr< UTextBlock > MassText

Optional mass summary binding.

SerialText

TObjectPtr< UTextBlock > SerialText

Optional serial summary binding.

HazardText

TObjectPtr< UTextBlock > HazardText

Optional hazard rating binding.

PackageRequirementText

TObjectPtr< UTextBlock > PackageRequirementText

Optional package requirement binding.

NotesText

TObjectPtr< UTextBlock > NotesText

Optional hidden scan note binding.

ScanResult

FAndromedaScanResult ScanResult

Transient scan result currently represented on screen.

ShowIdle

void UAndromedaScannerScreenWidget::ShowIdle()

Clears the current scan, shows idle status, and clears scan fields.

ShowItemReady

void UAndromedaScannerScreenWidget::ShowItemReady()

Shows item-ready status without changing the stored scan result.

SetScanResult

void UAndromedaScannerScreenWidget::SetScanResult(const FAndromedaScanResult &InScanResult)

Alias for ShowScanResult, useful for Blueprint or caller naming preferences.

Parameters:

Name Type Description
InScanResult const FAndromedaScanResult &

ShowScanResult

void UAndromedaScannerScreenWidget::ShowScanResult(const FAndromedaScanResult &InScanResult)

Stores a scan result, sets complete or invalid status, and refreshes fields.

Parameters:

Name Type Description
InScanResult const FAndromedaScanResult & Result to display.

ShowError

void UAndromedaScannerScreenWidget::ShowError(const FText &ErrorText)

Clears the scan, shows the supplied error or fallback text, and clears fields.

Parameters:

Name Type Description
ErrorText const FText & Error text to show; empty text uses the unknown-error fallback.

GetScanResult

FAndromedaScanResult UAndromedaScannerScreenWidget::GetScanResult() const

Returns the stored scan result.

Returns:

ScanResult currently represented on screen.

ClearScanText

void UAndromedaScannerScreenWidget::ClearScanText()

Sets every scan-detail text block to empty when bound.

RefreshScanResult

void UAndromedaScannerScreenWidget::RefreshScanResult()

Formats and writes all scan result fields.

Uses AndromedaSalvageText for hazard and package requirement display text, appends handling notes when present, and wraps raw fields in localized label formats.