Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_VideoSettingsSubMenu Interface Reference
Inheritance diagram for SCR_VideoSettingsSubMenu:
[legend]

Public Member Functions

override void OnMenuItemChanged (SCR_SettingsBindingBase binding)
 
override void OnTabCreate (Widget menuRoot, ResourceName buttonsLayout, int index)
 
- Public Member Functions inherited from SCR_SettingsSubMenuBase
override void OnTabCreate (Widget menuRoot, ResourceName buttonsLayout, int index)
 
override void OnTabHide ()
 
override void OnTabShow ()
 
- Public Member Functions inherited from SCR_SubMenuBase
void OnMenuFocusGained ()
 
void OnMenuFocusLost ()
 
void OnMenuShow ()
 
void OnMenuHide ()
 
void OnMenuUpdate (float tDelta)
 
void OnTabCreate (Widget menuRoot, ResourceName buttonsLayout, int index)
 
void OnTabShow ()
 
void OnTabHide ()
 
void OnTabRemove ()
 
void OnTabChange ()
 
bool GetShown ()
 
int GetIndex ()
 
ScriptInvokerVoid GetOnRequestCloseMenu ()
 
ScriptInvokerInt2 GetOnRequestTabChange ()
 
- Public Member Functions inherited from SCR_ScriptedWidgetComponent
override void HandlerAttached (Widget w)
 
override bool OnClick (Widget w, int x, int y, int button)
 
Widget GetRootWidget ()
 
bool IsVisible ()
 

Protected Member Functions

void OnCustomMenuItemChanged (string widgetName)
 
void SetQualityPresetIndex (string changedSetting)
 
void SetupTextureDetail (bool isInit=true)
 
void OnMaxFPSChanged (SCR_SpinBoxComponent comp, int i)
 Event called when max FPS is changed.
 
void OnTextureDetailChanged (SCR_SpinBoxComponent comp, int i)
 Event called when texture detail spinbox changes.
 
void OnQualityPresetChanged (SCR_ComboBoxComponent combobox, int itemIndex)
 
void SetupQualityPreset ()
 
void SetupHardwareAA (bool isInit=true)
 
void OnHardwareAAChanged (SCR_SpinBoxComponent comp, int i)
 Event called when hardware AA spinbox changes.
 
void OnResolutionScaleChanged (SCR_SliderComponent comp, float value)
 Event called when resolution scale slider changes.
 
void OnRenderResolutionChanged ()
 method called when resolution or resolution scale changes
 
void OnShadowDetailChanged (SCR_SpinBoxComponent comp, int i)
 Event called when shadow quality spinbox changes.
 
void OnViewDistanceChanged (SCR_SliderComponent comp, float value)
 Event called when shadow quality slider changes.
 
void OnGrassDistanceChanged (SCR_SliderComponent comp, float value)
 
void OnWindowModeChanged (SCR_SpinBoxComponent comp, int index)
 Event called when window mode combo box changes.
 
void SetResolutionCombo (SCR_ComboBoxComponent combo)
 
void SetupViewDistance ()
 
void SetupGrassDistance ()
 
void SetupShadowQuality (bool isInit=true)
 
void SetupResolution ()
 
void SetupResolutionScale ()
 
void RemoveQualityPresetFocus ()
 Removes Quality Presets focus - as it is a powerful setting (and is the first one) and sets it to the first button found under SettingsEntries.
 
void UpdateResolution (SCR_ComboBoxComponent resolution, int current)
 Event called when resolution combo box changes.
 
void SetupMaxFPS ()
 
- Protected Member Functions inherited from SCR_SettingsSubMenuBase
void LoadSettings (bool forceLoadSettings=false, bool addEntryChangedEventHandler=true)
 
void OnMenuItemChanged (SCR_SettingsBindingBase binding)
 
- Protected Member Functions inherited from SCR_SubMenuBase
void ShowNavigationButtons (bool show)
 
void FlagNavigationButtonVisibility (SCR_InputButtonComponent button, bool show)
 
void SetNavigationButtonVisibile (SCR_InputButtonComponent button, bool show, bool animate=false)
 
SCR_InputButtonComponent CreateNavigationButton (string actionName, string label, bool rightFooter=false, bool show=true)
 
void RequestCloseMenu ()
 
void RequestTabChange (int newTabIndex)
 

Protected Attributes

ref array< int > m_aWidths = {}
 
ref array< int > m_aHeights = {}
 
ref array< int > m_aAAvalues = { 0, 2, 4, 8, 16, 32 }
 
SCR_ComboBoxComponent m_ResolutionCombo
 
SCR_SliderComponent m_ResolutionScale
 
SCR_SpinBoxComponent m_WindowMode
 
SCR_SpinBoxComponent m_MaxFPS
 
string m_sResolutionScaleLocalisation
 
UserSettings m_Video
 
UserSettings m_Pipeline
 
UserSettings m_ResourceManager
 
- Protected Attributes inherited from SCR_SettingsSubMenuBase
ref array< ref SCR_SettingsBindingBasem_aSettingsBindings = {}
 
ScrollLayoutWidget m_wScroll
 
bool m_bLoadingSettings
 
- Protected Attributes inherited from SCR_SubMenuBase
ResourceName m_sNavigationButtonLayout
 
SCR_DynamicFooterComponent m_DynamicFooter
 
ref array< SCR_InputButtonComponentm_aNavigationButtons = {}
 
ref map< SCR_InputButtonComponent, bool > m_aNavigationButtonsVisibilityFlags = new map<SCR_InputButtonComponent, bool>()
 
Widget m_wMenuRoot
 
int m_iIndex
 
bool m_bShown
 
bool m_bFocused
 
ref ScriptInvokerVoid m_OnRequestCloseMenu
 
ref ScriptInvokerInt2 m_OnRequestTabChange
 
- Protected Attributes inherited from SCR_ScriptedWidgetComponent
Widget m_wRoot
 

Static Protected Attributes

static const string RESOLUTION_FORMAT = "%1 × %2"
 
static const int CUSTOM_PRESET_INDEX = 4
 
static const ref array< string > PRESET_SETTINGS
 list of WIDGET names
 

Additional Inherited Members

- Static Public Member Functions inherited from SCR_ScriptedWidgetComponent
static SCR_ScriptedWidgetComponent GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true)
 Base method for component lookup through the widget library.
 
- Public Attributes inherited from SCR_ScriptedWidgetComponent
ref ScriptInvoker m_OnClick = new ScriptInvoker
 

Member Function Documentation

◆ OnCustomMenuItemChanged()

void SCR_VideoSettingsSubMenu.OnCustomMenuItemChanged ( string  widgetName)
protected

◆ OnGrassDistanceChanged()

void SCR_VideoSettingsSubMenu.OnGrassDistanceChanged ( SCR_SliderComponent  comp,
float  value 
)
protected

◆ OnHardwareAAChanged()

void SCR_VideoSettingsSubMenu.OnHardwareAAChanged ( SCR_SpinBoxComponent  comp,
int  i 
)
protected

Event called when hardware AA spinbox changes.

◆ OnMaxFPSChanged()

void SCR_VideoSettingsSubMenu.OnMaxFPSChanged ( SCR_SpinBoxComponent  comp,
int  i 
)
protected

Event called when max FPS is changed.

◆ OnMenuItemChanged()

override void SCR_VideoSettingsSubMenu.OnMenuItemChanged ( SCR_SettingsBindingBase  binding)

◆ OnQualityPresetChanged()

void SCR_VideoSettingsSubMenu.OnQualityPresetChanged ( SCR_ComboBoxComponent  combobox,
int  itemIndex 
)
protected

◆ OnRenderResolutionChanged()

void SCR_VideoSettingsSubMenu.OnRenderResolutionChanged ( )
protected

method called when resolution or resolution scale changes

◆ OnResolutionScaleChanged()

void SCR_VideoSettingsSubMenu.OnResolutionScaleChanged ( SCR_SliderComponent  comp,
float  value 
)
protected

Event called when resolution scale slider changes.

◆ OnShadowDetailChanged()

void SCR_VideoSettingsSubMenu.OnShadowDetailChanged ( SCR_SpinBoxComponent  comp,
int  i 
)
protected

Event called when shadow quality spinbox changes.

◆ OnTabCreate()

override void SCR_VideoSettingsSubMenu.OnTabCreate ( Widget  menuRoot,
ResourceName  buttonsLayout,
int  index 
)

◆ OnTextureDetailChanged()

void SCR_VideoSettingsSubMenu.OnTextureDetailChanged ( SCR_SpinBoxComponent  comp,
int  i 
)
protected

Event called when texture detail spinbox changes.

◆ OnViewDistanceChanged()

void SCR_VideoSettingsSubMenu.OnViewDistanceChanged ( SCR_SliderComponent  comp,
float  value 
)
protected

Event called when shadow quality slider changes.

◆ OnWindowModeChanged()

void SCR_VideoSettingsSubMenu.OnWindowModeChanged ( SCR_SpinBoxComponent  comp,
int  index 
)
protected

Event called when window mode combo box changes.

◆ RemoveQualityPresetFocus()

void SCR_VideoSettingsSubMenu.RemoveQualityPresetFocus ( )
protected

Removes Quality Presets focus - as it is a powerful setting (and is the first one) and sets it to the first button found under SettingsEntries.

◆ SetQualityPresetIndex()

void SCR_VideoSettingsSubMenu.SetQualityPresetIndex ( string  changedSetting)
protected

◆ SetResolutionCombo()

void SCR_VideoSettingsSubMenu.SetResolutionCombo ( SCR_ComboBoxComponent  combo)
protected

◆ SetupGrassDistance()

void SCR_VideoSettingsSubMenu.SetupGrassDistance ( )
protected

◆ SetupHardwareAA()

void SCR_VideoSettingsSubMenu.SetupHardwareAA ( bool  isInit = true)
protected

◆ SetupMaxFPS()

void SCR_VideoSettingsSubMenu.SetupMaxFPS ( )
protected

◆ SetupQualityPreset()

void SCR_VideoSettingsSubMenu.SetupQualityPreset ( )
protected

◆ SetupResolution()

void SCR_VideoSettingsSubMenu.SetupResolution ( )
protected

◆ SetupResolutionScale()

void SCR_VideoSettingsSubMenu.SetupResolutionScale ( )
protected

◆ SetupShadowQuality()

void SCR_VideoSettingsSubMenu.SetupShadowQuality ( bool  isInit = true)
protected

◆ SetupTextureDetail()

void SCR_VideoSettingsSubMenu.SetupTextureDetail ( bool  isInit = true)
protected

◆ SetupViewDistance()

void SCR_VideoSettingsSubMenu.SetupViewDistance ( )
protected

◆ UpdateResolution()

void SCR_VideoSettingsSubMenu.UpdateResolution ( SCR_ComboBoxComponent  resolution,
int  current 
)
protected

Event called when resolution combo box changes.

Member Data Documentation

◆ CUSTOM_PRESET_INDEX

const int SCR_VideoSettingsSubMenu.CUSTOM_PRESET_INDEX = 4
staticprotected

◆ m_aAAvalues

ref array<int> SCR_VideoSettingsSubMenu.m_aAAvalues = { 0, 2, 4, 8, 16, 32 }
protected

◆ m_aHeights

ref array<int> SCR_VideoSettingsSubMenu.m_aHeights = {}
protected

◆ m_aWidths

ref array<int> SCR_VideoSettingsSubMenu.m_aWidths = {}
protected

◆ m_MaxFPS

SCR_SpinBoxComponent SCR_VideoSettingsSubMenu.m_MaxFPS
protected

◆ m_Pipeline

UserSettings SCR_VideoSettingsSubMenu.m_Pipeline
protected

◆ m_ResolutionCombo

SCR_ComboBoxComponent SCR_VideoSettingsSubMenu.m_ResolutionCombo
protected

◆ m_ResolutionScale

SCR_SliderComponent SCR_VideoSettingsSubMenu.m_ResolutionScale
protected

◆ m_ResourceManager

UserSettings SCR_VideoSettingsSubMenu.m_ResourceManager
protected

◆ m_sResolutionScaleLocalisation

string SCR_VideoSettingsSubMenu.m_sResolutionScaleLocalisation
protected

◆ m_Video

UserSettings SCR_VideoSettingsSubMenu.m_Video
protected

◆ m_WindowMode

SCR_SpinBoxComponent SCR_VideoSettingsSubMenu.m_WindowMode
protected

◆ PRESET_SETTINGS

const ref array<string> SCR_VideoSettingsSubMenu.PRESET_SETTINGS
staticprotected
Initial value:
= {
"Detail",
"DistantShadows",
"EnvironmentQuality",
"FoliageSmoothing",
"GeometricDetail",
"GrassDistance",
"GrassLOD",
"HardwareAA",
"HBAO",
"ObjectDrawDistance",
"PostprocessAA",
"RenderTargetFormat",
"ShadowQuality",
"SSDO",
"SSR",
"TerrainSurfaceDetail",
"TextureDetail",
"TextureFiltering",
}

list of WIDGET names

◆ RESOLUTION_FORMAT

const string SCR_VideoSettingsSubMenu.RESOLUTION_FORMAT = "%1 × %2"
staticprotected

The documentation for this interface was generated from the following file: