Navigation
API > API/Plugins > API/Plugins/CommonUI
- All properties must be EditDefaultsOnly, BlueprintReadOnly !!! -- we return the CDO to blueprints, so we cannot allow any changes (blueprint doesn't support const variables)
| Name | UCommonButtonStyle |
| Type | class |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonButtonBase.h |
| Include Path | #include "CommonButtonBase.h" |
Syntax
UCLASS (Abstract, Blueprintable, MinimalAPI, ClassGroup=UI, Meta=(Category="Common UI"))
class UCommonButtonStyle : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UCommonButtonStyle
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSingleMaterial | bool | Whether or not the style uses a drop shadow | CommonButtonBase.h |
|
| ButtonPadding | FMargin | The button content padding to apply for each size | CommonButtonBase.h |
|
| ClickedSlateSound | FSlateSound | The sound to play when the button is clicked | CommonButtonBase.h |
|
| CustomPadding | FMargin | The custom padding of the button to use for each size | CommonButtonBase.h |
|
| Disabled | FSlateBrush | The disabled brush to apply to each size of this button | CommonButtonBase.h |
|
| DisabledTextStyle | TSubclassOf< UCommonTextStyle > | The text style to use when disabled | CommonButtonBase.h |
|
| HoveredSlateSound | FSlateSound | The sound to play when the button is hovered | CommonButtonBase.h |
|
| LockedClickedSlateSound | FCommonButtonStyleOptionalSlateSound | The sound to play when the button is clicked while locked | CommonButtonBase.h |
|
| LockedHoveredSlateSound | FCommonButtonStyleOptionalSlateSound | The sound to play when the button is hovered while locked | CommonButtonBase.h |
|
| LockedPressedSlateSound | FCommonButtonStyleOptionalSlateSound | The sound to play when the button is pressed while locked | CommonButtonBase.h |
|
| MaxHeight | int32 | The maximum height of buttons using this style | CommonButtonBase.h |
|
| MaxWidth | int32 | The maximum width of buttons using this style | CommonButtonBase.h |
|
| MinHeight | int32 | The minimum height of buttons using this style | CommonButtonBase.h |
|
| MinWidth | int32 | The minimum width of buttons using this style | CommonButtonBase.h |
|
| NormalBase | FSlateBrush | The normal (un-selected) brush to apply to each size of this button | CommonButtonBase.h |
|
| NormalHovered | FSlateBrush | The normal (un-selected) brush to apply to each size of this button when hovered | CommonButtonBase.h |
|
| NormalHoveredTextStyle | TSubclassOf< UCommonTextStyle > | The text style to use when un-selected | CommonButtonBase.h |
|
| NormalPressed | FSlateBrush | The normal (un-selected) brush to apply to each size of this button when pressed | CommonButtonBase.h |
|
| NormalTextStyle | TSubclassOf< UCommonTextStyle > | The text style to use when un-selected | CommonButtonBase.h |
|
| PressedSlateSound | FSlateSound | The sound to play when the button is pressed | CommonButtonBase.h |
|
| SelectedBase | FSlateBrush | The selected brush to apply to each size of this button | CommonButtonBase.h |
|
| SelectedClickedSlateSound | FCommonButtonStyleOptionalSlateSound | The sound to play when the button is clicked while selected | CommonButtonBase.h |
|
| SelectedHovered | FSlateBrush | The selected brush to apply to each size of this button when hovered | CommonButtonBase.h |
|
| SelectedHoveredSlateSound | FCommonButtonStyleOptionalSlateSound | The sound to play when the button is hovered while selected | CommonButtonBase.h |
|
| SelectedHoveredTextStyle | TSubclassOf< UCommonTextStyle > | The text style to use when un-selected | CommonButtonBase.h |
|
| SelectedPressed | FSlateBrush | The selected brush to apply to each size of this button when pressed | CommonButtonBase.h |
|
| SelectedPressedSlateSound | FCommonButtonStyleOptionalSlateSound | The sound to play when the button is pressed while selected | CommonButtonBase.h |
|
| SelectedTextStyle | TSubclassOf< UCommonTextStyle > | The text style to use when selected | CommonButtonBase.h |
|
| SingleMaterialBrush | FSlateBrush | The normal (un-selected) brush to apply to each size of this button | CommonButtonBase.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetButtonPadding
(
FMargin& OutButtonPadding |
CommonButtonBase.h |
|
|
void GetCustomPadding
(
FMargin& OutCustomPadding |
CommonButtonBase.h |
|
|
void GetDisabledBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
UCommonTextStyle * GetDisabledTextStyle() |
CommonButtonBase.h |
|
|
void GetMaterialBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
void GetNormalBaseBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
void GetNormalHoveredBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
UCommonTextStyle * GetNormalHoveredTextStyle() |
CommonButtonBase.h |
|
|
void GetNormalPressedBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
UCommonTextStyle * GetNormalTextStyle() |
CommonButtonBase.h |
|
|
void GetSelectedBaseBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
void GetSelectedHoveredBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
UCommonTextStyle * GetSelectedHoveredTextStyle() |
CommonButtonBase.h |
|
|
void GetSelectedPressedBrush
(
FSlateBrush& Brush |
CommonButtonBase.h |
|
|
UCommonTextStyle * GetSelectedTextStyle() |
CommonButtonBase.h |
|