[Legacy Options] Increase widget limit to 1024

This commit is contained in:
Azumgi 2018-12-21 18:48:00 +03:00
parent dd23ba0e22
commit 5f5bf5bfdf

View file

@ -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