Back to Home

ESO Lua File v101036

pregameandingame/optionspanels/keyboard/optionspanel_video_keyboard.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
local panelBuilder = ZO_KeyboardOptionsPanelBuilder:New(SETTING_PANEL_VIDEO)
----------------------
-- Video -> Display --
----------------------
panelBuilder:AddSetting({
    controlName = "Options_Video_DisplayMode",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_FULLSCREEN,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
    initializeControlFunction = function(control)
        EVENT_MANAGER:RegisterForEvent("ZO_OptionsPanel_Video", EVENT_FULLSCREEN_MODE_CHANGED, function()
            ZO_Options_UpdateOption(control)
        end)
    end,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_ActiveDisplay",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_ACTIVE_DISPLAY,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
    initializeControlFunction = function(control)
        EVENT_MANAGER:RegisterForEvent("ZO_OptionsPanel_Video", EVENT_AVAILABLE_DISPLAY_DEVICES_CHANGED, function()
        end)
    end,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Resolution",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_RESOLUTION,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_VSync",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_VSYNC,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_RenderThread",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_RENDERTHREAD,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
    template = "ZO_Options_Video_Checkbox_IncludeRestartWarning",
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Use_Background_FPS_Limit",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_USE_BACKGROUND_FPS_LIMIT,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
}) 
panelBuilder:AddSetting({
    controlName = "Options_Video_Background_FPS_Limit",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_BACKGROUND_FPS_LIMIT,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
-- inline slider
panelBuilder:AddSetting({
    controlName = "Options_Video_Gamma_Adjustment",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_GAMMA_ADJUSTMENT,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
-- button to go to gamma adjustment screen
panelBuilder:AddSetting({
    controlName = "Options_Video_CalibrateGamma",
    settingType = SETTING_TYPE_CUSTOM,
    settingId = OPTIONS_CUSTOM_SETTING_GAMMA_ADJUST,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_HDR_Peak_Brightness",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_HDR_PEAK_BRIGHTNESS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_HDR_Scene_Brightness",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_HDR_SCENE_BRIGHTNESS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_HDR_Scene_Contrast",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_HDR_SCENE_CONTRAST,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_HDR_UI_Brightness",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_HDR_UI_BRIGHTNESS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_HDR_UI_Contrast",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_HDR_UI_CONTRAST,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_ScreenAdjust",
    settingType = SETTING_TYPE_CUSTOM,
    settingId = OPTIONS_CUSTOM_SETTING_SCREEN_ADJUST,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_DISPLAY,
})
------------------------
-- Video -> Interface --
------------------------
panelBuilder:AddSetting({
    controlName = "Options_Video_UseCustomScale",
    settingType = SETTING_TYPE_UI,
    settingId = UI_SETTING_USE_CUSTOM_SCALE,
    header = SI_VIDEO_OPTIONS_INTERFACE,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_CustomScale",
    settingType = SETTING_TYPE_UI,
    settingId = UI_SETTING_CUSTOM_SCALE,
    header = SI_VIDEO_OPTIONS_INTERFACE,
    indentLevel = 1,
})
------------------------
-- Video -> Graphics --
------------------------
panelBuilder:AddSetting({
    controlName = "Options_Video_Graphics_Quality",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_PRESETS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    template = "ZO_Options_Video_Dropdown_IncludeApplyScreenWarning",
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Texture_Resolution",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_MIP_LOAD_SKIP_LEVELS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    template = "ZO_Options_Video_Dropdown_IncludeApplyScreenWarning",
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_AntiAliasing_Type",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_ANTIALIASING_TYPE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_DLSS_Mode",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_DLSS_MODE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_FSR_Mode",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_FSR_MODE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Sub_Sampling",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_SUB_SAMPLING,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Shadows",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_SHADOWS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    template = "ZO_Options_Video_Dropdown_IncludeApplyScreenWarning",
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Screenspace_Water_Reflection_Quality",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_SCREENSPACE_WATER_REFLECTION_QUALITY,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    template = "ZO_Options_Video_Dropdown_IncludeApplyScreenWarning",
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Planar_Water_Reflection_Quality",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_PLANAR_WATER_REFLECTION_QUALITY,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    template = "ZO_Options_Video_Dropdown_IncludeApplyScreenWarning",
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Maximum_Particle_Systems",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_PFX_GLOBAL_MAXIMUM,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
    template = "ZO_Options_Video_Slider_IncludeMaxParticleSystemsWarning",
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Particle_Suppression_Distance",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_PFX_SUPPRESS_DISTANCE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_View_Distance",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_VIEW_DISTANCE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Ambient_Occlusion",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_AMBIENT_OCCLUSION_TYPE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    template = "ZO_Options_Video_Dropdown_IncludeApplyScreenWarning",
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Clutter_2D_Quality",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_CLUTTER_2D_QUALITY,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Depth_Of_Field_Mode",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_DEPTH_OF_FIELD_MODE,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Bloom",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_BLOOM,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Distortion",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_DISTORTION,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_God_Rays",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_GOD_RAYS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})
panelBuilder:AddSetting({
    controlName = "Options_Video_Show_Additional_Ally_Effects",
    settingType = SETTING_TYPE_GRAPHICS,
    settingId = GRAPHICS_SETTING_SHOW_ADDITIONAL_ALLY_EFFECTS,
    header = SI_GRAPHICS_OPTIONS_VIDEO_CATEGORY_GRAPHICS,
    indentLevel = 1,
})