darthbollo 1 Posted July 3, 2015 Hey guys i wanna know how to save mod menu settings so that when i reopen the menu they aren't all set to off and are just set to what they were previously. Quote Share this post Link to post Share on other sites
CamxxCore 163 Posted July 3, 2015 (edited) Hey guys i wanna know how to save mod menu settings so that when i reopen the menu they aren't all set to off and are just set to what they were previously. You could use a lambda expression menuItems.Cast<MenuToggle>().ToList().ForEach(item => item.Value = Settings.GetValue<bool>("section", "key", false)); It will get the settings from your config file and set the toggles. You will first have to have your menu items in a list. You can set the description of the menu toggle to the setting/ key you want so you can just access it with item.Description Hmu on steam if you need more help Edited July 3, 2015 by CamxxCore Quote Share this post Link to post Share on other sites
darthbollo 1 Posted July 3, 2015 Hey guys i wanna know how to save mod menu settings so that when i reopen the menu they aren't all set to off and are just set to what they were previously. You could use a lambda expression menuItems.Cast<MenuToggle>().ToList().ForEach(item => item.Value = Settings.GetValue<bool>("section", "key", false)); It will get the settings from your config file and set the toggles. You will first have to have your menu items in a list. You can set the description of the menu toggle to the setting/ key you want so you can just access it with item.Description Hmu on steam if you need more help I don't understand. how would i format the config file? Quote Share this post Link to post Share on other sites
CamxxCore 163 Posted July 3, 2015 Hey guys i wanna know how to save mod menu settings so that when i reopen the menu they aren't all set to off and are just set to what they were previously. You could use a lambda expression menuItems.Cast<MenuToggle>().ToList().ForEach(item => item.Value = Settings.GetValue<bool>("section", "key", false)); It will get the settings from your config file and set the toggles. You will first have to have your menu items in a list. You can set the description of the menu toggle to the setting/ key you want so you can just access it with item.Description Hmu on steam if you need more help I don't understand. how would i format the config file? Message me on steam. Quote Share this post Link to post Share on other sites
darthbollo 1 Posted July 3, 2015 But how do i make it to where i can close the menu and the toggle is still set to what i put it to? "I go ingame and toggle invincibility then i close the menu and the toggle is still on" Quote Share this post Link to post Share on other sites
colt9mm 0 Posted July 3, 2015 i am having the same error, plz help me too. Quote Share this post Link to post Share on other sites