UAndromedaWorkstationScreenComponent¶
Kind: class
Source: Source/Andromeda/Workstation/AndromedaWorkstationScreenComponent.h
Base classes: UWidgetComponent, IAndromedaPromptableInterface, IAndromedaInteractableInterface
Details¶
Widget component that makes a workstation screen promptable and interactable.
Public Methods¶
| Member | Type | Summary |
|---|---|---|
UAndromedaWorkstationScreenComponent |
function |
Configures the component for visibility-channel traces only. |
GetOwningWorkstation |
AAndromedaWorkstation * |
Casts the component owner to a workstation. |
CanShowPrompt_Implementation |
bool |
Shows prompt when the owning workstation can interact with its screen. |
GetPromptText_Implementation |
FText |
Returns the owning workstation's screen prompt. |
GetPromptEvents_Implementation |
UAndromedaCapabilityEventsComponent * |
Returns the owning workstation's capability event source. |
CanInteract_Implementation |
bool |
Mirrors workstation screen interaction availability. |
GetInteractionEvents_Implementation |
UAndromedaCapabilityEventsComponent * |
Returns the owning workstation's capability event source for interaction updates. |
Interact_Implementation |
void |
Delegates interaction to the owning workstation. |
Members¶
UAndromedaWorkstationScreenComponent¶
Configures the component for visibility-channel traces only.
GetOwningWorkstation¶
Casts the component owner to a workstation.
Returns:
Owning workstation, or nullptr when the owner is not a workstation.
CanShowPrompt_Implementation¶
bool UAndromedaWorkstationScreenComponent::CanShowPrompt_Implementation(APawn *ViewingPawn) const override
Shows prompt when the owning workstation can interact with its screen.
Parameters:
| Name | Type | Description |
|---|---|---|
ViewingPawn |
APawn * |
Pawn whose focus would display the prompt. |
Returns:
True when the owning workstation reports screen interaction availability.
GetPromptText_Implementation¶
FText UAndromedaWorkstationScreenComponent::GetPromptText_Implementation(APawn *ViewingPawn) const override
Returns the owning workstation's screen prompt.
Parameters:
| Name | Type | Description |
|---|---|---|
ViewingPawn |
APawn * |
Pawn whose focus would display the prompt. |
Returns:
Workstation screen prompt, or empty text when no owning workstation exists.
GetPromptEvents_Implementation¶
UAndromedaCapabilityEventsComponent * UAndromedaWorkstationScreenComponent::GetPromptEvents_Implementation() const override
Returns the owning workstation's capability event source.
Returns:
Workstation capability event component, or nullptr.
CanInteract_Implementation¶
bool UAndromedaWorkstationScreenComponent::CanInteract_Implementation(APawn *InteractingPawn) const override
Mirrors workstation screen interaction availability.
Parameters:
| Name | Type | Description |
|---|---|---|
InteractingPawn |
APawn * |
Pawn requesting interaction. |
Returns:
True when the owning workstation can interact with its screen.
GetInteractionEvents_Implementation¶
UAndromedaCapabilityEventsComponent * UAndromedaWorkstationScreenComponent::GetInteractionEvents_Implementation() const override
Returns the owning workstation's capability event source for interaction updates.
Returns:
Workstation capability event component, or nullptr.
Interact_Implementation¶
Delegates interaction to the owning workstation.
Parameters:
| Name | Type | Description |
|---|---|---|
InteractingPawn |
APawn * |
Pawn requesting interaction. |