[Mod Options] Update for new 'register_view'

This commit is contained in:
Azumgi 2018-12-14 20:47:42 +03:00
parent 71f3bc55af
commit f40685af6c
2 changed files with 3 additions and 19 deletions

View file

@ -116,7 +116,7 @@ end
vmf.initialize_vmf_options_view = function () vmf.initialize_vmf_options_view = function ()
vmf:register_view("scripts/mods/vmf/modules/ui/options/vmf_options_view") vmf:dofile("scripts/mods/vmf/modules/ui/options/vmf_options_view")
_button_injection_data.mod_options_button_disabled = false _button_injection_data.mod_options_button_disabled = false
end end

View file

@ -4261,23 +4261,7 @@ end
vmf.load_vmf_options_view_settings() vmf.load_vmf_options_view_settings()
vmf:register_view({
return {
view_name = "vmf_options_view", view_name = "vmf_options_view",
view_settings = { view_settings = {
init_view_function = function (ingame_ui_context) init_view_function = function (ingame_ui_context)
@ -4298,4 +4282,4 @@ return {
self.menu_active = true self.menu_active = true
end end
} }
} })