unreal.CommonButtonStyle
¶
- class unreal.CommonButtonStyle(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
—- All properties must be EditDefaultsOnly, BlueprintReadOnly !!! —– * we return the CDO to blueprints, so we cannot allow any changes (blueprint doesn’t support const variables)
C++ Source:
Plugin: CommonUI
Module: CommonUI
File: CommonButtonBase.h
Editor Properties: (see get_editor_property/set_editor_property)
button_padding
(Margin): [Read-Write] The button content padding to apply for each sizecustom_padding
(Margin): [Read-Write] The custom padding of the button to use for each sizedisabled
(SlateBrush): [Read-Write] The disabled brush to apply to each size of this buttondisabled_text_style
(type(Class)): [Read-Write] The text style to use when disabledhovered_slate_sound
(SlateSound): [Read-Write] The sound to play when the button is hoveredlocked_hovered_slate_sound
(CommonButtonStyleOptionalSlateSound): [Read-Write] The sound to play when the button is hovered while lockedlocked_pressed_slate_sound
(CommonButtonStyleOptionalSlateSound): [Read-Write] The sound to play when the button is pressed while lockedmin_height
(int32): [Read-Write] The minimum height of buttons using this stylemin_width
(int32): [Read-Write] The minimum width of buttons using this stylenormal_base
(SlateBrush): [Read-Write] The normal (un-selected) brush to apply to each size of this buttonnormal_hovered
(SlateBrush): [Read-Write] The normal (un-selected) brush to apply to each size of this button when hoverednormal_hovered_text_style
(type(Class)): [Read-Write] The text style to use when un-selectednormal_pressed
(SlateBrush): [Read-Write] The normal (un-selected) brush to apply to each size of this button when pressednormal_text_style
(type(Class)): [Read-Write] The text style to use when un-selectedpressed_slate_sound
(SlateSound): [Read-Write] The sound to play when the button is pressedselected_base
(SlateBrush): [Read-Write] The selected brush to apply to each size of this buttonselected_hovered
(SlateBrush): [Read-Write] The selected brush to apply to each size of this button when hoveredselected_hovered_slate_sound
(CommonButtonStyleOptionalSlateSound): [Read-Write] The sound to play when the button is hovered while selectedselected_hovered_text_style
(type(Class)): [Read-Write] The text style to use when un-selectedselected_pressed
(SlateBrush): [Read-Write] The selected brush to apply to each size of this button when pressedselected_pressed_slate_sound
(CommonButtonStyleOptionalSlateSound): [Read-Write] The sound to play when the button is pressed while selectedselected_text_style
(type(Class)): [Read-Write] The text style to use when selectedsingle_material
(bool): [Read-Write] Whether or not the style uses a drop shadowsingle_material_brush
(SlateBrush): [Read-Write] The normal (un-selected) brush to apply to each size of this button
- property button_padding: Margin¶
[Read-Only] The button content padding to apply for each size
- Type:
(Margin)
- property custom_padding: Margin¶
[Read-Only] The custom padding of the button to use for each size
- Type:
(Margin)
- property disabled: SlateBrush¶
[Read-Only] The disabled brush to apply to each size of this button
- Type:
- get_button_padding() → Margin¶
Get Button Padding
- Returns:
out_button_padding (Margin):
- Return type:
- get_custom_padding() → Margin¶
Get Custom Padding
- Returns:
out_custom_padding (Margin):
- Return type:
- get_disabled_brush() → SlateBrush¶
Get Disabled Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_disabled_text_style() → CommonTextStyle¶
Get Disabled Text Style
- Return type:
- get_material_brush() → SlateBrush¶
Get Material Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_normal_base_brush() → SlateBrush¶
Get Normal Base Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_normal_hovered_brush() → SlateBrush¶
Get Normal Hovered Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_normal_hovered_text_style() → CommonTextStyle¶
Get Normal Hovered Text Style
- Return type:
- get_normal_pressed_brush() → SlateBrush¶
Get Normal Pressed Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_normal_text_style() → CommonTextStyle¶
Get Normal Text Style
- Return type:
- get_selected_base_brush() → SlateBrush¶
Get Selected Base Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_selected_hovered_brush() → SlateBrush¶
Get Selected Hovered Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_selected_hovered_text_style() → CommonTextStyle¶
Get Selected Hovered Text Style
- Return type:
- get_selected_pressed_brush() → SlateBrush¶
Get Selected Pressed Brush
- Returns:
brush (SlateBrush):
- Return type:
- get_selected_text_style() → CommonTextStyle¶
Get Selected Text Style
- Return type:
- property hovered_slate_sound: SlateSound¶
[Read-Only] The sound to play when the button is hovered
- Type:
- property locked_hovered_slate_sound: CommonButtonStyleOptionalSlateSound¶
[Read-Only] The sound to play when the button is hovered while locked
- property locked_pressed_slate_sound: CommonButtonStyleOptionalSlateSound¶
[Read-Only] The sound to play when the button is pressed while locked
- property normal_base: SlateBrush¶
[Read-Only] The normal (un-selected) brush to apply to each size of this button
- Type:
- property normal_hovered: SlateBrush¶
[Read-Only] The normal (un-selected) brush to apply to each size of this button when hovered
- Type:
- property normal_pressed: SlateBrush¶
[Read-Only] The normal (un-selected) brush to apply to each size of this button when pressed
- Type:
- property pressed_slate_sound: SlateSound¶
[Read-Only] The sound to play when the button is pressed
- Type:
- property selected_base: SlateBrush¶
[Read-Only] The selected brush to apply to each size of this button
- Type:
- property selected_hovered: SlateBrush¶
[Read-Only] The selected brush to apply to each size of this button when hovered
- Type:
- property selected_hovered_slate_sound: CommonButtonStyleOptionalSlateSound¶
[Read-Only] The sound to play when the button is hovered while selected
- property selected_pressed: SlateBrush¶
[Read-Only] The selected brush to apply to each size of this button when pressed
- Type:
- property selected_pressed_slate_sound: CommonButtonStyleOptionalSlateSound¶
[Read-Only] The sound to play when the button is pressed while selected
- property single_material: bool¶
[Read-Only] Whether or not the style uses a drop shadow
- Type:
(bool)
- property single_material_brush: SlateBrush¶
[Read-Only] The normal (un-selected) brush to apply to each size of this button
- Type: