Advanced Menu System  1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
UControlsSettingsWidget Class Reference

Input setting param widget. More...

#include <ControlsSettingsWidget.h>

+ Inheritance diagram for UControlsSettingsWidget:

Public Member Functions

 UControlsSettingsWidget (const FObjectInitializer &ObjectInitializer)
 
virtual void NativeConstruct () override
 
virtual void SynchronizeProperties () override
 
void SetTitleTextColor (FColor Color)
 Sets text color for each setting. More...
 
void SetTitleTextFont (FSlateFontInfo Font)
 Setting text font for each setting. More...
 
void SetDefaultKeyArray (TArray< FEnhancedActionKeyMapping > Array)
 
virtual void SaveInputMappings ()
 This function saves input mappings into the save. More...
 
virtual bool IsSettingsSaved ()
 This function checks whether or not settings are saved. More...
 
virtual void LoadInputMappings ()
 This function loads data from game save into this class. More...
 
virtual void ResetSettings ()
 

Public Attributes

UScrollBox * ScrollBox
 Scroll box. Controlls will be added here. More...
 
UCanvasPanel * CanvasPanel
 
class UButton * ApplyButton
 Apply settings button. More...
 
TArray< UKeyBindingWidget * > KeyBindingParamLineArr
 Key Bindings Setting widgets array. More...
 
TArray< FEnhancedActionKeyMapping > KeyArray
 
TSubclassOf< UKeyBindingWidgetKeyBindingWidgetClass
 Save which stores all controlls info. More...
 
bool bInstantApply
 Instant setting apply More...
 
EKeyBindingTypes KeyBindingType
 Key binding type. Text or icons. More...
 
TArray< FButtonIconButtonIcons
 Key binding icons. Only if KeyBindingType == EKeyBindingTypes::Icons. More...
 
UInputMappingContext * PlayerInputMapping
 
TArray< FEnhancedActionKeyMapping > DefaultKeyArray
 
bool bCustomTitleTextStyle
 True if update the title text. More...
 
class UButton * ResetButton
 
TSubclassOf< UControlsSaveControlsSaveClass
 

Protected Member Functions

void AddKeyBindingParamLine (int KeyIndex)
 This function adds a setting line to the scroll box. More...
 
void UpdateTextBlock ()
 This function updates style for all settings. More...
 
void OnApplyPress ()
 This function runs on apply button press. Apply and save changes into save class. More...
 

Protected Attributes

FColor TitleTextColor
 Title text color of the key binding setting. More...
 
FSlateFontInfo TitleTextFont
 Title text font of the key binding setting. More...
 

Detailed Description

Input setting param widget.

Constructor & Destructor Documentation

◆ UControlsSettingsWidget()

UControlsSettingsWidget::UControlsSettingsWidget ( const FObjectInitializer &  ObjectInitializer)

Member Function Documentation

◆ AddKeyBindingParamLine()

void UControlsSettingsWidget::AddKeyBindingParamLine ( int  KeyIndex)
protected

This function adds a setting line to the scroll box.

Parameters
KeyIndex

◆ IsSettingsSaved()

bool UControlsSettingsWidget::IsSettingsSaved ( )
virtual

This function checks whether or not settings are saved.

Returns

◆ LoadInputMappings()

void UControlsSettingsWidget::LoadInputMappings ( )
virtual

This function loads data from game save into this class.

◆ NativeConstruct()

void UControlsSettingsWidget::NativeConstruct ( )
overridevirtual

Apply

◆ OnApplyPress()

void UControlsSettingsWidget::OnApplyPress ( )
protected

This function runs on apply button press. Apply and save changes into save class.

◆ ResetSettings()

void UControlsSettingsWidget::ResetSettings ( )
virtual

◆ SaveInputMappings()

void UControlsSettingsWidget::SaveInputMappings ( )
virtual

This function saves input mappings into the save.

◆ SetDefaultKeyArray()

void UControlsSettingsWidget::SetDefaultKeyArray ( TArray< FEnhancedActionKeyMapping >  Array)

◆ SetTitleTextColor()

void UControlsSettingsWidget::SetTitleTextColor ( FColor  Color)

Sets text color for each setting.

Parameters
Color

◆ SetTitleTextFont()

void UControlsSettingsWidget::SetTitleTextFont ( FSlateFontInfo  Font)

Setting text font for each setting.

Parameters
Font

◆ SynchronizeProperties()

void UControlsSettingsWidget::SynchronizeProperties ( )
overridevirtual

◆ UpdateTextBlock()

void UControlsSettingsWidget::UpdateTextBlock ( )
protected

This function updates style for all settings.

Member Data Documentation

◆ ApplyButton

class UButton* UControlsSettingsWidget::ApplyButton

Apply settings button.

◆ bCustomTitleTextStyle

bool UControlsSettingsWidget::bCustomTitleTextStyle

True if update the title text.

◆ bInstantApply

bool UControlsSettingsWidget::bInstantApply

Instant setting apply

◆ ButtonIcons

TArray<FButtonIcon> UControlsSettingsWidget::ButtonIcons

Key binding icons. Only if KeyBindingType == EKeyBindingTypes::Icons.

◆ CanvasPanel

UCanvasPanel* UControlsSettingsWidget::CanvasPanel

◆ ControlsSaveClass

TSubclassOf<UControlsSave> UControlsSettingsWidget::ControlsSaveClass

◆ DefaultKeyArray

TArray<FEnhancedActionKeyMapping> UControlsSettingsWidget::DefaultKeyArray

◆ KeyArray

TArray<FEnhancedActionKeyMapping> UControlsSettingsWidget::KeyArray

◆ KeyBindingParamLineArr

TArray<UKeyBindingWidget*> UControlsSettingsWidget::KeyBindingParamLineArr

Key Bindings Setting widgets array.

◆ KeyBindingType

EKeyBindingTypes UControlsSettingsWidget::KeyBindingType

Key binding type. Text or icons.

◆ KeyBindingWidgetClass

TSubclassOf<UKeyBindingWidget> UControlsSettingsWidget::KeyBindingWidgetClass

Save which stores all controlls info.

Key binding widget class which will be used for each key setting.

◆ PlayerInputMapping

UInputMappingContext* UControlsSettingsWidget::PlayerInputMapping

◆ ResetButton

class UButton* UControlsSettingsWidget::ResetButton

◆ ScrollBox

UScrollBox* UControlsSettingsWidget::ScrollBox

Scroll box. Controlls will be added here.

◆ TitleTextColor

FColor UControlsSettingsWidget::TitleTextColor
protected

Title text color of the key binding setting.

◆ TitleTextFont

FSlateFontInfo UControlsSettingsWidget::TitleTextFont
protected

Title text font of the key binding setting.