UB1ContentPickerEntryData
Overview
- Data layer for the ContentPicker entry widget. Design: a hybrid of Common Fields (90% of cases) + Extended Fields (10% of special cases). PrimaryText/PrimaryIcon are common to most entries; the Additional map allows flexible extension; easily accessible from Blueprint (UPROPERTY BlueprintReadWrite). Usage: 1) use B1ContentPickerHelper::CreateEntry() to convert struct data to EntryData, 2) pass the EntryData objects to a TileView/ListView via SetListItems(), 3) receive data in the entry widget via NativeOnListItemObjectSet(), 4) the entry widget reads the EntryData fields to update the UI.
Metadata
| Field | Value |
|---|---|
| Kind | class |
| Environment | B1 - Presentation |
| Category | classes |
| Extends | UObject |
Properties (8)
| Name | Type | Description |
|---|---|---|
AdditionalFlags | table<string, boolean> | Additional flag fields (e.g. 'IsOccupied', 'IsNew', 'IsOnSale'). |
AdditionalImages | table<string, UTexture2D> | Additional image fields (e.g. secondary icon, badge image). |
AdditionalNumbers | table<string, number> | Additional number fields (e.g. 'Quantity', 'Level', 'Price', 'Freshness'). |
AdditionalTexts | table<string, string> | Additional text fields (e.g. 'JobTitle', 'Department', 'Occupant'). |
EntityId | FB1EntityId | Entity ID (used by business logic). |
PrimaryIcon | UTexture2D | Main icon/thumbnail image. |
PrimaryText | string | Main display text (e.g. 'Apple', 'John', 'Desk A'). |
bIsSelected | boolean | Selected state (for showing selection in the UI). |
Functions (8)
| Function | Parameters | Returns | Description |
|---|---|---|---|
GetAdditionalFlag | Key: string, Default: boolean | boolean | Reads an additional flag field. |
GetAdditionalImage | Key: string | UTexture2D | Reads an additional image field. |
GetAdditionalNumber | Key: string, Default: number | number | Reads an additional number field. |
GetAdditionalText | Key: string, Default: string | string | Reads an additional text field (safe access with a default value). |
SetAdditionalFlag | Key: string, Value: boolean | - | Sets an additional flag field. |
SetAdditionalImage | Key: string, Value: UTexture2D | - | Sets an additional image field. |
SetAdditionalNumber | Key: string, Value: number | - | Sets an additional number field. |
SetAdditionalText | Key: string, Value: string | - | Sets an additional text field. |