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 override void PostDrawInterface(SpriteBatch spriteBatch) { if ((bool)Config.Get(ConfigOptionBool)) { // do something } }
public override void Load() { Config.Add(DisabledCommands, new string[] { }); Config.Load(); LoadCommands(Commands, (string[])Config.Get(DisabledCommands)); }
private void GetChirpsForSetting(string settingKeys, IEnumerable <string> messages) { if (ModConfig.Get(settingKeys)) { foreach (var message in messages) { filteredMessages.Add(message); } } }