![]() |
Advanced Menu System
1.0
|
Game video settings widget. More...
#include <VideoSettingsWidget.h>
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 USwitchWidget * | WindowModeWidget |
Window Mode ComboBox More... | |
class UComboBoxWidget * | AspectRatioBox |
Aspect Ratio ComboBox More... | |
class UComboBoxWidget * | WindowResolutionBox |
Resolutions ComboBox More... | |
class USliderWidget * | BrightnessSlider |
Brightness Slider More... | |
class UButton * | ApplyButton |
Apply button More... | |
class USwitchWidget * | LockFPSWidget |
FPS Lock switch widget More... | |
class USwitchWidget * | VSyncWidget |
VSync widget More... | |
class USwitchWidget * | HDRStatusWidget |
HDR switch widget More... | |
class USwitchWidget * | HDRDisplayProfileWidget |
HDR display profile switch widget More... | |
class USwitchWidget * | HDRColorSpaceWidget |
HDR Color Space Switch widget More... | |
TArray< FSetting > | FPSSettings |
FPS Settings More... | |
TArray< FSetting > | HDRSettings |
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< UVideoSave > | VideoSaveClass |
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< FSetting > | FPSSettingsSave |
Loaded FPS Settings More... | |
TArray< FSetting > | HDRSettingsSave |
Loaded HDR Settings More... | |
Game video settings widget.
UVideoSettingsWidget::UVideoSettingsWidget | ( | const FObjectInitializer & | ObjectInitializer | ) |
Constructor
ObjectInitializer |
void UVideoSettingsWidget::CheckIfCanChangeResolution | ( | ) |
Check if platform is desktop. We need that to avoid crashes on mobile, VR and other devices.
|
inline |
FIntPoint UVideoSettingsWidget::GetRatioByRess | ( | FIntPoint | Resolution | ) |
Returns the ratio of the resolution.
Resolution |
TArray< FIntPoint > UVideoSettingsWidget::GetResolutionsByRatio | ( | FIntPoint | Ratio | ) |
Returns all resolutions of the ratio.
Ratio |
|
inline |
True if platform is Desktop
|
virtual |
|
protectedvirtual |
Load Settings
|
overridevirtual |
|
protected |
Function that executes on Aplly press.
void UVideoSettingsWidget::OnAspectRatioChange | ( | FString | SelectedItem, |
ESelectInfo::Type | SelectionType | ||
) |
Executes on aspect ratio combo box change.
SelectedItem | |
SelectionType |
void UVideoSettingsWidget::OnBrightnessUpdate | ( | float | Value | ) |
This Function executes on brightness slider update.
Value |
void UVideoSettingsWidget::OnHDRChanged | ( | int | Value | ) |
Executes on HDR change.
Value | New Value |
void UVideoSettingsWidget::OnLockFPSChanged | ( | int | Value | ) |
Executes on Lock FPS change.
Value | New Value |
void UVideoSettingsWidget::OnVSyncChanged | ( | int | Value | ) |
Executes on VSync change.
Value | New Value |
void UVideoSettingsWidget::OnWindowModeChanged | ( | int | Value | ) |
Executes on window mode change.
Value | New Value |
void UVideoSettingsWidget::OnWindowResolutionBoxChange | ( | FString | SelectedItem, |
ESelectInfo::Type | SelectionType | ||
) |
Executes on window resolution combo box change.
SelectedItem | |
SelectionType |
|
virtual |
|
virtual |
Save Settings
|
protected |
Set current brightness value.
Value |
|
protected |
FPS Lock values depending on the monitor refresh rate.
|
protected |
Set HDR Settings
|
protected |
Get and set all resolutions into combo box.
|
protected |
Set up window modes
|
overridevirtual |
Properties synchronize
class UButton* UVideoSettingsWidget::ApplyButton |
Apply button
class UComboBoxWidget* UVideoSettingsWidget::AspectRatioBox |
Aspect Ratio ComboBox
bool UVideoSettingsWidget::bInstantApply |
True if we need instatnt apply settings.
class USliderWidget* UVideoSettingsWidget::BrightnessSlider |
Brightness Slider
|
protected |
Current Aspect Ratio
|
protected |
Current Resolution
TArray<FSetting> UVideoSettingsWidget::FPSSettings |
FPS Settings
|
protected |
Loaded FPS Settings
TArray<USwitchWidget*> UVideoSettingsWidget::FPSSwitches |
FPS switch widgets
class USwitchWidget* UVideoSettingsWidget::HDRColorSpaceWidget |
HDR Color Space Switch widget
class USwitchWidget* UVideoSettingsWidget::HDRDisplayProfileWidget |
HDR display profile switch widget
TArray<FSetting> UVideoSettingsWidget::HDRSettings |
HDR Settings
|
protected |
Loaded HDR Settings
class USwitchWidget* UVideoSettingsWidget::HDRStatusWidget |
HDR switch widget
TArray<USwitchWidget*> UVideoSettingsWidget::HDRSwitches |
HDR switch widgets
class USwitchWidget* UVideoSettingsWidget::LockFPSWidget |
FPS Lock switch widget
class UButton* UVideoSettingsWidget::ResetButton |
|
protected |
Current supported aspect ratios.
|
protected |
Current supported resolutions.
TSubclassOf<UVideoSave> UVideoSettingsWidget::VideoSaveClass |
class USwitchWidget* UVideoSettingsWidget::VSyncWidget |
VSync widget
class USwitchWidget* UVideoSettingsWidget::WindowModeWidget |
Window Mode ComboBox
class UComboBoxWidget* UVideoSettingsWidget::WindowResolutionBox |
Resolutions ComboBox