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

Game video settings widget. More...

#include <VideoSettingsWidget.h>

+ Inheritance diagram for UVideoSettingsWidget:

Public Member Functions

 UVideoSettingsWidget (const FObjectInitializer &ObjectInitializer)
 Constructor More...
 
virtual void NativeConstruct () override
 
virtual void SynchronizeProperties () override
 Properties synchronize More...
 
void OnBrightnessUpdate (float Value)
 This Function executes on brightness slider update. More...
 
void CheckIfCanChangeResolution ()
 Check if platform is desktop. We need that to avoid crashes on mobile, VR and other devices. More...
 
void OnLockFPSChanged (int Value)
 Executes on Lock FPS change. More...
 
void OnVSyncChanged (int Value)
 Executes on VSync change. More...
 
void OnWindowModeChanged (int Value)
 Executes on window mode change. More...
 
void OnAspectRatioChange (FString SelectedItem, ESelectInfo::Type SelectionType)
 Executes on aspect ratio combo box change. More...
 
void OnWindowResolutionBoxChange (FString SelectedItem, ESelectInfo::Type SelectionType)
 Executes on window resolution combo box change. More...
 
void OnHDRChanged (int Value)
 Executes on HDR change. More...
 
bool IsDesktopPlatform ()
 True if platform is Desktop More...
 
int GCD (int a, int b)
 
TArray< FIntPoint > GetResolutionsByRatio (FIntPoint Ratio)
 Returns all resolutions of the ratio. More...
 
FIntPoint GetRatioByRess (FIntPoint Resolution)
 Returns the ratio of the resolution. More...
 
virtual void SaveSettings ()
 Save Settings More...
 
virtual bool IsSettingsSaved ()
 
virtual void ResetSettings ()
 

Public Attributes

class USwitchWidgetWindowModeWidget
 Window Mode ComboBox More...
 
class UComboBoxWidgetAspectRatioBox
 Aspect Ratio ComboBox More...
 
class UComboBoxWidgetWindowResolutionBox
 Resolutions ComboBox More...
 
class USliderWidgetBrightnessSlider
 Brightness Slider More...
 
class UButton * ApplyButton
 Apply button More...
 
class USwitchWidgetLockFPSWidget
 FPS Lock switch widget More...
 
class USwitchWidgetVSyncWidget
 VSync widget More...
 
class USwitchWidgetHDRStatusWidget
 HDR switch widget More...
 
class USwitchWidgetHDRDisplayProfileWidget
 HDR display profile switch widget More...
 
class USwitchWidgetHDRColorSpaceWidget
 HDR Color Space Switch widget More...
 
TArray< FSettingFPSSettings
 FPS Settings More...
 
TArray< FSettingHDRSettings
 HDR Settings More...
 
TArray< USwitchWidget * > FPSSwitches
 FPS switch widgets More...
 
TArray< USwitchWidget * > HDRSwitches
 HDR switch widgets More...
 
bool bInstantApply
 True if we need instatnt apply settings. More...
 
class UButton * ResetButton
 
TSubclassOf< UVideoSaveVideoSaveClass
 

Protected Member Functions

virtual void LoadSettings ()
 Load Settings More...
 
void SetUpWindowModes ()
 Set up window modes More...
 
void SetUpFPS ()
 FPS Lock values depending on the monitor refresh rate. More...
 
void SetUpResolutions ()
 Get and set all resolutions into combo box. More...
 
void SetUpBrightnessValue (float Value)
 Set current brightness value. More...
 
void SetUpHDRSettings ()
 Set HDR Settings More...
 
void OnApplyPress ()
 Function that executes on Aplly press. More...
 

Protected Attributes

TArray< FIntPoint > SupportedResolutions
 Current supported resolutions. More...
 
TArray< FIntPoint > SupportedAspectRatios
 Current supported aspect ratios. More...
 
FIntPoint CurrentResolution
 Current Resolution More...
 
FIntPoint CurrentAspectRatio
 Current Aspect Ratio More...
 
TArray< FSettingFPSSettingsSave
 Loaded FPS Settings More...
 
TArray< FSettingHDRSettingsSave
 Loaded HDR Settings More...
 

Detailed Description

Game video settings widget.

Constructor & Destructor Documentation

◆ UVideoSettingsWidget()

UVideoSettingsWidget::UVideoSettingsWidget ( const FObjectInitializer &  ObjectInitializer)

Constructor

Parameters
ObjectInitializer

Member Function Documentation

◆ CheckIfCanChangeResolution()

void UVideoSettingsWidget::CheckIfCanChangeResolution ( )

Check if platform is desktop. We need that to avoid crashes on mobile, VR and other devices.

◆ GCD()

int UVideoSettingsWidget::GCD ( int  a,
int  b 
)
inline

◆ GetRatioByRess()

FIntPoint UVideoSettingsWidget::GetRatioByRess ( FIntPoint  Resolution)

Returns the ratio of the resolution.

Parameters
Resolution
Returns
Returns the ratio of the resolution.

◆ GetResolutionsByRatio()

TArray< FIntPoint > UVideoSettingsWidget::GetResolutionsByRatio ( FIntPoint  Ratio)

Returns all resolutions of the ratio.

Parameters
Ratio
Returns
Returns all resolutions of the ratio.

◆ IsDesktopPlatform()

bool UVideoSettingsWidget::IsDesktopPlatform ( )
inline

True if platform is Desktop

Returns
True if platform is Desktop

◆ IsSettingsSaved()

bool UVideoSettingsWidget::IsSettingsSaved ( )
virtual

◆ LoadSettings()

void UVideoSettingsWidget::LoadSettings ( )
protectedvirtual

Load Settings

◆ NativeConstruct()

void UVideoSettingsWidget::NativeConstruct ( )
overridevirtual

◆ OnApplyPress()

void UVideoSettingsWidget::OnApplyPress ( )
protected

Function that executes on Aplly press.

◆ OnAspectRatioChange()

void UVideoSettingsWidget::OnAspectRatioChange ( FString  SelectedItem,
ESelectInfo::Type  SelectionType 
)

Executes on aspect ratio combo box change.

Parameters
SelectedItem
SelectionType

◆ OnBrightnessUpdate()

void UVideoSettingsWidget::OnBrightnessUpdate ( float  Value)

This Function executes on brightness slider update.

Parameters
Value

◆ OnHDRChanged()

void UVideoSettingsWidget::OnHDRChanged ( int  Value)

Executes on HDR change.

Parameters
ValueNew Value

◆ OnLockFPSChanged()

void UVideoSettingsWidget::OnLockFPSChanged ( int  Value)

Executes on Lock FPS change.

Parameters
ValueNew Value

◆ OnVSyncChanged()

void UVideoSettingsWidget::OnVSyncChanged ( int  Value)

Executes on VSync change.

Parameters
ValueNew Value

◆ OnWindowModeChanged()

void UVideoSettingsWidget::OnWindowModeChanged ( int  Value)

Executes on window mode change.

Parameters
ValueNew Value

◆ OnWindowResolutionBoxChange()

void UVideoSettingsWidget::OnWindowResolutionBoxChange ( FString  SelectedItem,
ESelectInfo::Type  SelectionType 
)

Executes on window resolution combo box change.

Parameters
SelectedItem
SelectionType

◆ ResetSettings()

void UVideoSettingsWidget::ResetSettings ( )
virtual

◆ SaveSettings()

void UVideoSettingsWidget::SaveSettings ( )
virtual

Save Settings

◆ SetUpBrightnessValue()

void UVideoSettingsWidget::SetUpBrightnessValue ( float  Value)
protected

Set current brightness value.

Parameters
Value

◆ SetUpFPS()

void UVideoSettingsWidget::SetUpFPS ( )
protected

FPS Lock values depending on the monitor refresh rate.

◆ SetUpHDRSettings()

void UVideoSettingsWidget::SetUpHDRSettings ( )
protected

Set HDR Settings

◆ SetUpResolutions()

void UVideoSettingsWidget::SetUpResolutions ( )
protected

Get and set all resolutions into combo box.

◆ SetUpWindowModes()

void UVideoSettingsWidget::SetUpWindowModes ( )
protected

Set up window modes

◆ SynchronizeProperties()

void UVideoSettingsWidget::SynchronizeProperties ( )
overridevirtual

Properties synchronize

Member Data Documentation

◆ ApplyButton

class UButton* UVideoSettingsWidget::ApplyButton

Apply button

◆ AspectRatioBox

class UComboBoxWidget* UVideoSettingsWidget::AspectRatioBox

Aspect Ratio ComboBox

◆ bInstantApply

bool UVideoSettingsWidget::bInstantApply

True if we need instatnt apply settings.

◆ BrightnessSlider

class USliderWidget* UVideoSettingsWidget::BrightnessSlider

Brightness Slider

◆ CurrentAspectRatio

FIntPoint UVideoSettingsWidget::CurrentAspectRatio
protected

Current Aspect Ratio

◆ CurrentResolution

FIntPoint UVideoSettingsWidget::CurrentResolution
protected

Current Resolution

◆ FPSSettings

TArray<FSetting> UVideoSettingsWidget::FPSSettings

FPS Settings

◆ FPSSettingsSave

TArray<FSetting> UVideoSettingsWidget::FPSSettingsSave
protected

Loaded FPS Settings

◆ FPSSwitches

TArray<USwitchWidget*> UVideoSettingsWidget::FPSSwitches

FPS switch widgets

◆ HDRColorSpaceWidget

class USwitchWidget* UVideoSettingsWidget::HDRColorSpaceWidget

HDR Color Space Switch widget

◆ HDRDisplayProfileWidget

class USwitchWidget* UVideoSettingsWidget::HDRDisplayProfileWidget

HDR display profile switch widget

◆ HDRSettings

TArray<FSetting> UVideoSettingsWidget::HDRSettings

HDR Settings

◆ HDRSettingsSave

TArray<FSetting> UVideoSettingsWidget::HDRSettingsSave
protected

Loaded HDR Settings

◆ HDRStatusWidget

class USwitchWidget* UVideoSettingsWidget::HDRStatusWidget

HDR switch widget

◆ HDRSwitches

TArray<USwitchWidget*> UVideoSettingsWidget::HDRSwitches

HDR switch widgets

◆ LockFPSWidget

class USwitchWidget* UVideoSettingsWidget::LockFPSWidget

FPS Lock switch widget

◆ ResetButton

class UButton* UVideoSettingsWidget::ResetButton

◆ SupportedAspectRatios

TArray<FIntPoint> UVideoSettingsWidget::SupportedAspectRatios
protected

Current supported aspect ratios.

◆ SupportedResolutions

TArray<FIntPoint> UVideoSettingsWidget::SupportedResolutions
protected

Current supported resolutions.

◆ VideoSaveClass

TSubclassOf<UVideoSave> UVideoSettingsWidget::VideoSaveClass

◆ VSyncWidget

class USwitchWidget* UVideoSettingsWidget::VSyncWidget

VSync widget

◆ WindowModeWidget

class USwitchWidget* UVideoSettingsWidget::WindowModeWidget

Window Mode ComboBox

◆ WindowResolutionBox

class UComboBoxWidget* UVideoSettingsWidget::WindowResolutionBox

Resolutions ComboBox