Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UUserWidget
- UCommonUserWidget
- UCommonTabListWidgetBase
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonTabListWidgetBase.h |
| Include | #include "CommonTabListWidgetBase.h" |
Syntax
UCLASS&40;Abstract, Blueprintable, ClassGroup&61;UI, Meta&61;&40;Category&61;"Common UI", DisableNativeTick&41;&41;
class UCommonTabListWidgetBase : public UCommonUserWidget
Remarks
Base class for a list of selectable tabs that correspondingly activate and display an arbitrary widget in a linked switcher
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAutoListenForInput | Whether to register to handle tab list input immediately upon construction | |
| bool | bDeferRebuildingTabList | Whether to defer until next tick rebuilding tab list when inserting new tab (rather than adding to the end). | |
| bool | bIsListeningForInput | Is the tab list currently listening for tab input actions? | |
| TWeakObjectPtr< UCommonAnimatedSwitcher > | LinkedSwitcher | The activatable widget switcher that this tab list is associated with and manipulates | |
| TObjectPtr< UInputAction > | NextTabEnhancedInputAction | The input action to listen for causing the next tab to be selected | |
| FDataTableRowHandle | NextTabInputActionData | The input action to listen for causing the next tab to be selected | |
| FOnTabButtonCreation | OnTabButtonCreation | Broadcasts when a new tab is created. | |
| FOnTabButtonRemoval | OnTabButtonRemoval | Broadcasts when a new tab is created. | |
| FOnTabListRebuilt | OnTabListRebuilt | Broadcasts when the tab list has been rebuilt (after a new tab has been inserted rather than added to the end). | |
| FOnTabSelected | OnTabSelected | Broadcasts when a new tab is selected. | |
| TObjectPtr< UInputAction > | PreviousTabEnhancedInputAction | The input action to listen for causing the previous tab to be selected | |
| FDataTableRowHandle | PreviousTabInputActionData | The input action to listen for causing the previous tab to be selected | |
| TObjectPtr< UCommonButtonGroupBase > | TabButtonGroup | The button group that manages all the created tab buttons |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonTabListWidgetBase
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DisableTabWithReason
(
FName TabNameID, |
Disables the tab associated with the given ID with a reason | |
| FName | GetActiveTab () |
||
| UCommonAnimatedSwitcher * | |||
| const TMap< FName, FCommonRegisteredTabInfo > & | |||
| FName | |||
| UCommonButtonBase * | GetTabButtonBaseByID
(
FName TabNameID |
Returns the tab button matching the ID, if found | |
| int32 | GetTabCount () |
||
| FName | GetTabIdAtIndex
(
int32 Index |
||
| void | HandleNextTabInputAction
(
bool& bPassthrough |
||
| void | |||
| void | |||
| void | |||
| void | |||
| void | HandlePreviousTabInputAction
(
bool& bPassthrough |
||
| void | HandleTabButtonSelected
(
UCommonButtonBase* SelectedTabButton, |
||
| void | HandleTabCreation
(
FName TabNameID, |
||
| void | HandleTabRemoval
(
FName TabNameID, |
||
| bool | |||
| bool | RegisterTab
(
FName TabNameID, |
Registers and adds a new tab to the list that corresponds to a given widget instance. | |
| void | |||
| bool | |||
| bool | SelectTabByID
(
FName TabNameID, |
Selects the tab registered under the provided name ID | |
| void | SetLinkedSwitcher
(
UCommonAnimatedSwitcher* CommonSwitcher |
Establishes the activatable widget switcher instance that this tab list should interact with | |
| void | SetListeningForInput
(
bool bShouldListen |
||
| void | SetTabEnabled
(
FName TabNameID, |
Sets whether the tab associated with the given ID is enabled/disabled | |
| void | SetTabInteractionEnabled
(
FName TabNameID, |
Sets whether the tab associated with the given ID is interactable | |
| void | SetTabVisibility
(
FName TabNameID, |
Sets the visibility of the tab associated with the given ID | |
| void |
Overridden from UUserWidget
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnTabButtonCreation | Delegate broadcast when a new tab is created. Allows hook ups after creation. | ||
| FOnTabButtonRemoval | Delegate broadcast when a tab is being removed. Allows clean ups after destruction. | ||
| FOnTabListRebuilt | Delegate broadcast when the tab list has been rebuilt (after a new tab has been inserted rather than added to the end). | ||
| FOnTabSelected | Delegate broadcast when a new tab is selected. |