public override void Load() { Properties = new ModProperties { Autoload = true }; Config.Add(EnableHotKeys, true); Config.Add(EnableFishingLines, false); Config.Add(AddToCheatSheet, true); Config.Add(AddToHerosMod, true); Config.Load(); if (Config.Get <bool>(EnableFishingLines)) { AddFishingLines(typeof(CopperFishingLine), typeof(IronFishingLine), typeof(SilverFishingLine), typeof(GoldFishingLine), typeof(CobaltFishingLine), typeof(MythrilFishingLine), typeof(AdamantiteFishingLine)); } if (Config.Get <bool>(EnableHotKeys)) { addLureKey = new RepeatHotKey(this, "Add Lure", Keys.OemCloseBrackets.ToString()); removeLureKey = new RepeatHotKey(this, "Remove Lure", Keys.OemOpenBrackets.ToString()); } }
public ModConfigExample() { Properties = new ModProperties() { Autoload = true, AutoloadGores = true, AutoloadSounds = true }; // add the options to the configuration file Config.Add(ConfigOptionInt, 0); Config.Add(ConfigOptionBool, true); Config.Add(ConfigOptionArray, new string[] { "a", "b", "c" }); // load the config, writing to a new file if it doesn't exist Config.Load(); }
public override void Load() { Properties = new ModProperties() { Autoload = true, AutoloadBackgrounds = true, AutoloadSounds = true }; Config = new ModConfig("WingSlot"); RightClickOverrides = new List <Func <bool> >(); Config.Add(AllowAccessorySlots, false); Config.Add(SlotLocation, 1); Config.Load(); }
public override void Load() { Config.Add(DisabledCommands, new string[] { }); Config.Load(); LoadCommands(Commands, (string[])Config.Get(DisabledCommands)); }
public override void Load() { Properties = new ModProperties() { Autoload = true, AutoloadBackgrounds = true, AutoloadSounds = true }; TerraUI.Utilities.UIUtils.Mod = this; TerraUI.Utilities.UIUtils.Subdirectory = "TerraUI"; Config.Add(ALLOW_ACCESSORY_SLOTS, false); Config.Add(SLOT_LOCATION, 1); Config.Load(); }