Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/MultiBox > API/Runtime/Slate/Framework/MultiBox/FToolBarBuilder > API/Runtime/Slate/Framework/MultiBox/FToolBarBuilder/AddToolBarButton
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBoxBuilder.h |
| Include | #include "Framework/MultiBox/MultiBoxBuilder.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/MultiBox/MultiBoxBuilder.cpp |
void AddToolBarButton
(
const FUIAction & InAction,
FName InExtensionHook,
const TAttribute < FText > & InLabelOverride,
const TAttribute < FText > & InToolTipOverride,
const TAttribute < FSlateIcon > & InIconOverride,
const EUserInterfaceActionType UserInterfaceActionType,
FName InTutorialHighlightName,
TAttribute < EVisibility > InVisibilityOverride,
TAttribute < FText > InToolbarLabelOverride
)
Remarks
Adds a tool bar button
Parameters
| Name | Description |
|---|---|
| InAction | Actions to execute on this menu item. |
| InExtensionHook | The section hook. Can be NAME_None. |
| InLabelOverride | Optional label override. If omitted, then the action's label will be used instead. |
| InToolTipOverride | Optional tool tip override. If omitted, then the action's label will be used instead. |
| InIconOverride | Optional icon to use for the tool bar image. If omitted, then the action's icon will be used instead. |
| UserInterfaceActionType | Type of interface action |
| InTutorialHighlightName | Name to identify this widget and highlight during tutorials |
| InVisibilityOverride | Optional visibility override which, if set and returning anything but Visible, overrides the visibility of the toolbar button. |
| InToolbarLabelOverride | Optional label override for wh. If omitted, then the action's label will be used instead. |