1
1
return {
2
2
vsync = {
3
3
value = true ,
4
- action = function (value , options , controller , panels , extraWidgets , extraWidgets )
4
+ action = function (value , options , controller , panels , extraWidgets )
5
5
g_window .setVerticalSync (value )
6
6
end
7
7
},
@@ -96,7 +96,7 @@ return {
96
96
value = true ,
97
97
action = function (value , options , controller , panels , extraWidgets )
98
98
panels .gameMapPanel :setDrawLights (value and options .ambientLight .value < 100 )
99
- panels .graphicsPanel :recursiveGetChildById (' ambientLight' ):setEnabled (value )
99
+ panels .graphicsEffectsPanel :recursiveGetChildById (' ambientLight' ):setEnabled (value )
100
100
end
101
101
},
102
102
limitVisibleDimension = {
@@ -114,7 +114,7 @@ return {
114
114
ambientLight = {
115
115
value = 0 ,
116
116
action = function (value , options , controller , panels , extraWidgets )
117
- panels .graphicsPanel :recursiveGetChildById (' ambientLight' ):setText (string.format (' Ambient light: %s%%' , value ))
117
+ panels .graphicsEffectsPanel :recursiveGetChildById (' ambientLight' ):setText (string.format (' Ambient light: %s%%' , value ))
118
118
panels .gameMapPanel :setMinimumAmbientLight (value / 100 )
119
119
panels .gameMapPanel :setDrawLights (options .enableLights .value )
120
120
end
@@ -158,13 +158,13 @@ return {
158
158
turnDelay = {
159
159
value = 50 ,
160
160
action = function (value , options , controller , panels , extraWidgets )
161
- panels .controlPanel :recursiveGetChildById (' turnDelay' ):setText (string.format (' Turn delay: %sms' , value ))
161
+ panels .generalPanel :recursiveGetChildById (' turnDelay' ):setText (string.format (' Turn delay: %sms' , value ))
162
162
end
163
163
},
164
164
hotkeyDelay = {
165
165
value = 70 ,
166
166
action = function (value , options , controller , panels , extraWidgets )
167
- panels .controlPanel :recursiveGetChildById (' hotkeyDelay' ):setText (string.format (' Hotkey delay: %sms' , value ))
167
+ panels .generalPanel :recursiveGetChildById (' hotkeyDelay' ):setText (string.format (' Hotkey delay: %sms' , value ))
168
168
end
169
169
},
170
170
crosshair = {
@@ -177,7 +177,7 @@ return {
177
177
end
178
178
179
179
panels .gameMapPanel :setCrosshairTexture (newValue and crossPath .. newValue or nil )
180
- panels .generalPanel :recursiveGetChildById (' crosshair' ):setCurrentOptionByData (newValue , true )
180
+ panels .interface :recursiveGetChildById (' crosshair' ):setCurrentOptionByData (newValue , true )
181
181
end
182
182
},
183
183
enableHighlightMouseTarget = {
@@ -196,7 +196,7 @@ return {
196
196
shadowFloorIntensity = {
197
197
value = 30 ,
198
198
action = function (value , options , controller , panels , extraWidgets )
199
- panels .graphicsPanel :recursiveGetChildById (' shadowFloorIntensity' ):setText (string.format (
199
+ panels .graphicsEffectsPanel :recursiveGetChildById (' shadowFloorIntensity' ):setText (string.format (
200
200
' Shadow floor Intensity: %s%%' , value ))
201
201
panels .gameMapPanel :setShadowFloorIntensity (1 - (value / 100 ))
202
202
end
@@ -223,16 +223,16 @@ return {
223
223
value = 1 ,
224
224
action = function (value , options , controller , panels , extraWidgets )
225
225
panels .gameMapPanel :setFloorViewMode (value )
226
- panels .graphicsPanel :recursiveGetChildById (' floorViewMode' ):setCurrentOptionByData (value , true )
226
+ panels .graphicsEffectsPanel :recursiveGetChildById (' floorViewMode' ):setCurrentOptionByData (value , true )
227
227
228
228
local fadeMode = value == 1
229
- panels .graphicsPanel :recursiveGetChildById (' floorFading' ):setEnabled (fadeMode )
229
+ panels .graphicsEffectsPanel :recursiveGetChildById (' floorFading' ):setEnabled (fadeMode )
230
230
end
231
231
},
232
232
floorFading = {
233
233
value = 500 ,
234
234
action = function (value , options , controller , panels , extraWidgets )
235
- panels .graphicsPanel :recursiveGetChildById (' floorFading' ):setText (string.format (' Floor Fading: %s ms' , value ))
235
+ panels .graphicsEffectsPanel :recursiveGetChildById (' floorFading' ):setText (string.format (' Floor Fading: %s ms' , value ))
236
236
panels .gameMapPanel :setFloorFading (tonumber (value ))
237
237
end
238
238
},
@@ -242,7 +242,7 @@ return {
242
242
if g_game .isUsingProtobuf () then
243
243
value = true
244
244
elseif g_app .isEncrypted () then
245
- local asyncWidget = panels .generalPanel :recursiveGetChildById (' asyncTxtLoading' )
245
+ local asyncWidget = panels .graphicsPanel :recursiveGetChildById (' asyncTxtLoading' )
246
246
asyncWidget :setEnabled (false )
247
247
asyncWidget :setChecked (false )
248
248
return
@@ -260,7 +260,7 @@ return {
260
260
value = value / 2
261
261
end
262
262
g_app .setCreatureInformationScale (math.max (value + 0.5 , 1 ))
263
- panels .consolePanel :recursiveGetChildById (' creatureInformationScale' ):setText (string.format (
263
+ panels .interfaceHUD :recursiveGetChildById (' creatureInformationScale' ):setText (string.format (
264
264
' Creature Information Scale: %sx' , math.max (value + 0.5 , 1 )))
265
265
end
266
266
},
@@ -273,7 +273,7 @@ return {
273
273
value = value / 2
274
274
end
275
275
g_app .setStaticTextScale (math.max (value + 0.5 , 1 ))
276
- panels .consolePanel :recursiveGetChildById (' staticTextScale' ):setText (string.format (' Message Scale: %sx' ,
276
+ panels .interfaceHUD :recursiveGetChildById (' staticTextScale' ):setText (string.format (' Message Scale: %sx' ,
277
277
math.max (value + 0.5 , 1 )))
278
278
end
279
279
},
@@ -286,7 +286,7 @@ return {
286
286
value = value / 2
287
287
end
288
288
g_app .setAnimatedTextScale (math.max (value + 0.5 , 1 ))
289
- panels .consolePanel :recursiveGetChildById (' animatedTextScale' ):setText (
289
+ panels .interfaceHUD :recursiveGetChildById (' animatedTextScale' ):setText (
290
290
tr (' Animated Message Scale: %sx' , math.max (value + 0.5 , 1 )))
291
291
end
292
292
},
@@ -332,14 +332,14 @@ return {
332
332
value = 100 ,
333
333
action = function (value , options , controller , panels , extraWidgets )
334
334
g_client .setEffectAlpha (value / 100 )
335
- panels .consolePanel :recursiveGetChildById (' setEffectAlphaScroll' ):setText (tr (' Opacity Effect: %s%%' , value ))
335
+ panels .graphicsEffectsPanel :recursiveGetChildById (' setEffectAlphaScroll' ):setText (tr (' Opacity Effect: %s%%' , value ))
336
336
end
337
337
},
338
338
setMissileAlphaScroll = {
339
339
value = 100 ,
340
340
action = function (value , options , controller , panels , extraWidgets )
341
341
g_client .setMissileAlpha (value / 100 )
342
- panels .consolePanel :recursiveGetChildById (' setMissileAlphaScroll' ):setText (tr (' Opacity Missile: %s%%' , value ))
342
+ panels .graphicsEffectsPanel :recursiveGetChildById (' setMissileAlphaScroll' ):setText (tr (' Opacity Missile: %s%%' , value ))
343
343
end
344
344
},
345
345
distFromCenScrollbar = {
0 commit comments