public override void Load() { Config.Load(); ModTranslation text = CreateTranslation("DC1"); text.SetDefault("Damage type changed to Magic"); text.AddTranslation(GameCulture.Russian, "Тип урона изменён на Магический"); AddTranslation(text); text = CreateTranslation("DC2"); text.SetDefault("Damage type changed to Melee"); text.AddTranslation(GameCulture.Russian, "Тип урона изменён на Ближний"); AddTranslation(text); LampLight = RegisterHotKey("Lamp Light Toggle", "L"); if (!Main.dedServ) { AddEquipTexture(null, EquipType.Legs, "somebody0214Robe_Legs", "AlchemistNPC/Items/Armor/somebody0214Robe_Legs"); } ReversivityCoinTier1ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier1Data(ItemType <Items.ReversivityCoinTier1>(), 999L)); ReversivityCoinTier2ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier2Data(ItemType <Items.ReversivityCoinTier2>(), 999L)); ReversivityCoinTier3ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier3Data(ItemType <Items.ReversivityCoinTier3>(), 999L)); ReversivityCoinTier4ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier4Data(ItemType <Items.ReversivityCoinTier4>(), 999L)); ReversivityCoinTier5ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier5Data(ItemType <Items.ReversivityCoinTier5>(), 999L)); ReversivityCoinTier6ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier6Data(ItemType <Items.ReversivityCoinTier6>(), 999L)); instance = this; }
public override void Load() { Instance = this; Config.Load(); //SBMW:Try to add translation for hotkey, seems worked, but requires to reload mod if change game language, first load after build mod may not work string LampLightToggle = Language.GetTextValue("Lamp Light Toggle"); string DiscordBuffTeleportation = Language.GetTextValue("Discord Buff Teleportation"); string PipBoy = Language.GetTextValue("Pip-Boy Teleportation Menu"); LampLight = RegisterHotKey(LampLightToggle, "L"); DiscordBuff = RegisterHotKey(DiscordBuffTeleportation, "Q"); PipBoyTP = RegisterHotKey(PipBoy, "P"); if (!Main.dedServ) { AddEquipTexture(null, EquipType.Legs, "somebody0214Robe_Legs", "AlchemistNPC/Items/Armor/somebody0214Robe_Legs"); } ReversivityCoinTier1ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier1Data(ItemType <Items.Misc.ReversivityCoinTier1>(), 999L)); ReversivityCoinTier2ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier2Data(ItemType <Items.Misc.ReversivityCoinTier2>(), 999L)); ReversivityCoinTier3ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier3Data(ItemType <Items.Misc.ReversivityCoinTier3>(), 999L)); ReversivityCoinTier4ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier4Data(ItemType <Items.Misc.ReversivityCoinTier4>(), 999L)); ReversivityCoinTier5ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier5Data(ItemType <Items.Misc.ReversivityCoinTier5>(), 999L)); ReversivityCoinTier6ID = CustomCurrencyManager.RegisterCurrency(new ReversivityCoinTier6Data(ItemType <Items.Misc.ReversivityCoinTier6>(), 999L)); instance = this; SetTranslation(); if (!Main.dedServ) { AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - Chaos King"), ItemType("ChaosKingMusicBox"), TileType("ChaosKingMusicBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - Field of Hopes And Dreams"), ItemType("FieldsMusicBox"), TileType("FieldsMusicBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - Lantern"), ItemType("SheamMusicBox"), TileType("SheamMusicBox")); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/Deltarune OST - The World Revolving"), ItemType("TheWorldRevolvingMusicBox"), TileType("TheWorldRevolvingMusicBox")); alchemistUI = new ShopChangeUI(); alchemistUI.Activate(); alchemistUserInterface = new UserInterface(); alchemistUserInterface.SetState(alchemistUI); alchemistUIA = new ShopChangeUIA(); alchemistUIA.Activate(); alchemistUserInterfaceA = new UserInterface(); alchemistUserInterfaceA.SetState(alchemistUIA); alchemistUIO = new ShopChangeUIO(); alchemistUIO.Activate(); alchemistUserInterfaceO = new UserInterface(); alchemistUserInterfaceO.SetState(alchemistUIO); pipboyUI = new PipBoyTPMenu(); pipboyUI.Activate(); alchemistUserInterfaceP = new UserInterface(); alchemistUserInterfaceP.SetState(pipboyUI); } }
public override void Unload() { instance = null; }