@@ -38,6 +38,10 @@ function mode_less_3(render_id)
3838 return render_id<4
3939end
4040
41+ function mode_3(render_id)
42+ return render_id==4
43+ end
44+
4145function mode_ge_3(render_id)
4246 return render_id>=4
4347end
@@ -46,6 +50,10 @@ function mode_4(render_id)
4650 return render_id==5
4751end
4852
53+ function mode_ge_4(render_id)
54+ return render_id>=5
55+ end
56+
4957function opt_video_adv:InitControls(x, y, xml, handler)
5058 local ctl
5159 local _st
@@ -88,11 +96,26 @@ function opt_video_adv:InitControls(x, y, xml, handler)
8896 ctl = xml:InitComboBox("video_adv:combo_ssample", _st)
8997 table.insert(handler.m_preconditions, {func=mode_ge_3, control=_st})
9098
99+ -- XXX: Fix UI size
100+ -- _st = xml:InitStatic("video_adv:templ_item", nil)
101+ -- xml:InitStatic("video_adv:cap_r3_msaa_alphatest", _st)
102+ -- ctl = xml:InitComboBox("video_adv:combo_r3_msaa_alphatest", _st)
103+ -- table.insert(handler.m_preconditions, {func=mode_ge_3, control=_st})
104+
105+ _st = xml:InitStatic("video_adv:templ_item", nil)
106+ xml:InitStatic("video_adv:cap_r2_fxaa", _st)
107+ ctl = xml:InitCheck("video_adv:check_r2_fxaa", _st)
108+ table.insert(handler.m_preconditions, {func=mode_ge_2, control=_st})
109+
91110 _st = xml:InitStatic("video_adv:templ_item", nil)
92111 xml:InitStatic("video_adv:cap_detail_density", _st)
93112 xml:InitTrackBar("video_adv:track_detail_density", _st)
94113 table.insert(handler.m_preconditions, {func=all_modes, control=_st})
95114
115+ _st = xml:InitStatic("video_adv:templ_item", nil)
116+ xml:InitStatic("video_adv:cap_detail_radius", _st)
117+ xml:InitTrackBar("video_adv:track_detail_radius", _st)
118+ table.insert(handler.m_preconditions, {func=all_modes, control=_st})
96119
97120 _st = xml:InitStatic("video_adv:templ_item", nil)
98121 xml:InitStatic("video_adv:cap_r2_sun", _st)
@@ -109,6 +132,11 @@ function opt_video_adv:InitControls(x, y, xml, handler)
109132 ctl = xml:InitTrackBar("video_adv:track_particles_distance", _st)
110133 table.insert(handler.m_preconditions, {func=mode_ge_2a, control=_st})
111134
135+ _st = xml:InitStatic("video_adv:templ_item", nil)
136+ xml:InitStatic("video_adv:cap_r2_smap_size", _st)
137+ ctl = xml:InitComboBox("video_adv:list_r2_smap_size", _st)
138+ table.insert(handler.m_preconditions, {func=mode_ge_2, control=_st})
139+
112140 _st = xml:InitStatic("video_adv:templ_item", nil)
113141 xml:InitStatic("video_adv:cap_npc_torch", _st)
114142 xml:InitCheck("video_adv:check_npc_torch", _st)
@@ -188,6 +216,17 @@ function opt_video_adv:InitControls(x, y, xml, handler)
188216 ctl = xml:InitCheck("video_adv:check_r3_volumetric_smoke", _st)
189217 table.insert(handler.m_preconditions, {func=mode_ge_3, control=_st})
190218
219+ _st = xml:InitStatic("video_adv:templ_item", nil)
220+ xml:InitStatic("video_adv:cap_r3_msaa_opt", _st)
221+ ctl = xml:InitCheck("video_adv:check_r3_msaa_opt", _st)
222+ table.insert(handler.m_preconditions, {func=mode_ge_3, control=_st})
223+
224+ -- XXX: Fix UI size
225+ -- _st = xml:InitStatic("video_adv:templ_item", nil)
226+ -- xml:InitStatic("video_adv:cap_r3_gbuffer_opt", _st)
227+ -- ctl = xml:InitCheck("video_adv:check_r3_gbuffer_opt", _st)
228+ -- table.insert(handler.m_preconditions, {func=mode_ge_3, control=_st})
229+
191230-- r4_enable_tessellation only r4
192231 _st = xml:InitStatic("video_adv:templ_item", nil)
193232 xml:InitStatic("video_adv:cap_r4_tessellation", _st)
@@ -204,6 +243,11 @@ function opt_video_adv:InitControls(x, y, xml, handler)
204243 xml:InitCheck("video_adv:check_60hz", _st)
205244 table.insert(handler.m_preconditions, {func=all_modes, control=_st})
206245
246+ _st = xml:InitStatic("video_adv:templ_item", nil)
247+ xml:InitStatic("video_adv:cap_always_active", _st)
248+ xml:InitCheck("video_adv:check_always_active", _st)
249+ table.insert(handler.m_preconditions, {func=all_modes, control=_st})
250+
207251 btn = xml:Init3tButton("video_adv:btn_to_simply", self)
208252 handler:Register(btn, "btn_simply_graphic")
209253end
0 commit comments