public override void OnWorldLoad() { downedDOGIceQueen = false; downedDOGPumpking = false; downedSandElemental = false; if (!Main.dedServ) { 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); alchemistUIM = new ShopChangeUIM(); alchemistUIM.Activate(); alchemistUserInterfaceM = new UserInterface(); alchemistUserInterfaceM.SetState(alchemistUIM); } }
public override void Load() { Config.Load(); Instance = this; string DiscordBuffTeleportation = Language.GetTextValue("Discord Buff Teleportation"); DiscordBuff = RegisterHotKey(DiscordBuffTeleportation, "Q"); SetTranslation(); instance = this; if (!Main.dedServ) { 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); alchemistUIM = new ShopChangeUIM(); alchemistUIM.Activate(); alchemistUserInterfaceM = new UserInterface(); alchemistUserInterfaceM.SetState(alchemistUIM); } }
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); } }