From f230c750e113975462bd3d5241adcfeff5bae00a Mon Sep 17 00:00:00 2001 From: Azumgi Date: Tue, 23 Jan 2018 00:25:08 +0300 Subject: [PATCH] added mod:is_suspended() --- vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua b/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua index ff9b695..014d12f 100644 --- a/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua +++ b/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua @@ -1638,6 +1638,14 @@ VMFMod.create_options = function (self, widgets_definition, is_mod_toggable, rea end +VMFMod.is_suspended = function (self) + + local mod_suspend_state_list = vmf:get("mod_suspend_state_list") + + return mod_suspend_state_list[self._name] +end + + -- table.insert(t, new, table.remove(t,old)) -- mod:create_options(options_widgets, true, "Readable Mod Name", "Mod description")