From 5f5bf5bfdf1970e81f14e5e20e3066d2a584ee24 Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Fri, 21 Dec 2018 18:48:00 +0300 Subject: [PATCH] [Legacy Options] Increase widget limit to 1024 --- vmf/scripts/mods/vmf/modules/legacy/options.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/legacy/options.lua b/vmf/scripts/mods/vmf/modules/legacy/options.lua index c057878..ca2c3cb 100644 --- a/vmf/scripts/mods/vmf/modules/legacy/options.lua +++ b/vmf/scripts/mods/vmf/modules/legacy/options.lua @@ -59,7 +59,7 @@ vmf.initialize_mod_options_legacy = function (mod, widgets_definition) local parent_widget_stack = {} local current_widget_index_stack = {} - while new_widget_index <= 256 do + while new_widget_index <= 1024 do -- if 'nil', we reached the end of the current level widgets list and need to go up if current_widget then @@ -162,7 +162,7 @@ vmf.initialize_mod_options_legacy = function (mod, widgets_definition) end end - if new_widget_index == 257 then + if new_widget_index == 1025 then mod:error("(vmf_options_view) The limit of 256 options widgets was reached. You can't add any more widgets.") end end