public override void Load() { instance = this; tremorLoaded = ModLoader.GetMod("Tremor") != null; thoriumLoaded = ModLoader.GetMod("ThoriumMod") != null; enigmaLoaded = ModLoader.GetMod("Laugicality") != null; battlerodsLoaded = ModLoader.GetMod("UnuBattleRods") != null; MyPlayer.KaiokenKey = RegisterHotKey("Kaioken", "J"); MyPlayer.EnergyCharge = RegisterHotKey("Energy Charge", "C"); MyPlayer.Transform = RegisterHotKey("Transform", "X"); MyPlayer.PowerDown = RegisterHotKey("Power Down", "V"); MyPlayer.SpeedToggle = RegisterHotKey("Speed Toggle", "Z"); MyPlayer.QuickKi = RegisterHotKey("Quick Ki", "N"); MyPlayer.TransMenu = RegisterHotKey("Transformation Menu", "K"); if (!Main.dedServ) { GFX.LoadGFX(this); KiBar.visible = true; transMenu = new TransMenu(); transMenu.Activate(); TransMenuInterface = new UserInterface(); TransMenuInterface.SetState(transMenu); kibar = new KiBar(); kibar.Activate(); KiBarInterface = new UserInterface(); KiBarInterface.SetState(kibar); } }
public static void ActivateKiBar() { kibar = new KiBar(); kibar.Activate(); KiBarInterface = new UserInterface(); KiBarInterface.SetState(kibar); }
public override void Load() { if (!Main.dedServ) { SteamHelper.Initialize(); #region HotKeys characterMenuKey = RegisterHotKey("Character Menu", "K"); energyChargeKey = RegisterHotKey("Energy Charge", "C"); speedToggleKey = RegisterHotKey("Speed Toggle", "Z"); transformDownKey = RegisterHotKey("Transform Down", "V"); transformUpKey = RegisterHotKey("Transform Up", "X"); #endregion #region Ki Bar kiBar = new KiBar(); kiBar.Activate(); kiBarInterface = new UserInterface(); kiBarInterface.SetState(kiBar); kiBar.Visible = true; #endregion dbtMenu = new DBTMenu(this); dbtMenu.Activate(); characterMenuInterface = new UserInterface(); characterMenuInterface.SetState(dbtMenu); } }
public override void Load() { if (!Main.dedServ) { StylePreviewGFX.LoadPreviewGFX(this); WishMenuGFX.LoadWishGFX(this); SteamHelper.Initialize(); #region HotKeys characterMenuKey = RegisterHotKey("Character Menu", "K"); energyChargeKey = RegisterHotKey("Energy Charge", "C"); speedToggleKey = RegisterHotKey("Speed Toggle", "Z"); transformDownKey = RegisterHotKey("Transform Down", "V"); transformUpKey = RegisterHotKey("Transform Up", "X"); flightToggleKey = RegisterHotKey("Flight Toggle", "Q"); instantTransmission = RegisterHotKey("Instant Transmission", "I"); #endregion kiBar = new KiBar(); kiBar.Activate(); kiBarInterface = new UserInterface(); kiBarInterface.SetState(kiBar); kiBarInterface = new UserInterface(); kiBarInterface.SetState(kiBar); kiBar.Visible = true; overloadBar = new OverloadBar(); overloadBar.Activate(); overloadBarInterface = new UserInterface(); overloadBarInterface.SetState(overloadBar); dbtMenu = new DBTMenu(); dbtMenu.Activate(); characterTransformationsMenu = new CharacterTransformationsMenu(this); characterTransformationsMenu.Activate(); characterMenuInterface = new UserInterface(); characterMenuInterface.SetState(characterTransformationsMenu); wishMenu = new WishMenu(); wishMenu.Activate(); wishMenuInterface = new UserInterface(); wishMenuInterface.SetState(wishMenu); Instance = this; circle = new CircleShader(new Ref <Effect>(GetEffect("Effects/CircleShader")), "Pass1"); } }
public override void Load() { if (!Main.dedServ) { HairGFX.LoadHairGFX(this); WishMenuGFX.LoadWishGFX(this); SteamHelper.Initialize(); #region HotKeys characterMenuKey = RegisterHotKey("Character Menu", "K"); energyChargeKey = RegisterHotKey("Energy Charge", "C"); speedToggleKey = RegisterHotKey("Speed Toggle", "Z"); transformDownKey = RegisterHotKey("Transform Down", "V"); transformUpKey = RegisterHotKey("Transform Up", "X"); flightToggleKey = RegisterHotKey("Flight Toggle", "Q"); instantTransmission = RegisterHotKey("Instant Transmission", "I"); techniqueMenuKey = RegisterHotKey("Technique Menu", "N"); #endregion kiBar = new KiBar(); kiBar.Activate(); kiBarInterface = new UserInterface(); kiBarInterface.SetState(kiBar); kiBarInterface = new UserInterface(); kiBarInterface.SetState(kiBar); kiBar.Visible = true; overloadBar = new OverloadBar(); overloadBar.Activate(); overloadBarInterface = new UserInterface(); overloadBarInterface.SetState(overloadBar); dbtMenu = new DBTMenu(); dbtMenu.Activate(); characterTransformationsMenu = new CharacterTransformationsMenu(this); characterTransformationsMenu.Activate(); characterMenuInterface = new UserInterface(); characterMenuInterface.SetState(characterTransformationsMenu); techniqueMenu = new TechniqueMenu(this); techniqueMenu.Activate(); techniqueMenuInterface = new UserInterface(); techniqueMenuInterface.SetState(techniqueMenu); wishMenu = new WishMenu(); wishMenu.Activate(); wishMenuInterface = new UserInterface(); wishMenuInterface.SetState(wishMenu); hairMenu = new HairMenu(); hairMenu.Activate(); hairMenuInterface = new UserInterface(); hairMenuInterface.SetState(hairMenu); namekBookUI = new NamekianBookUI(); namekBookUI.Activate(); namekBookInterface = new UserInterface(); namekBookInterface.SetState(namekBookUI); Ref <Effect> screenRef = new Ref <Effect>(GetEffect("Effects/ShockwaveEffect")); Filters.Scene["Shockwave"] = new Filter(new ScreenShaderData(screenRef, "Shockwave"), EffectPriority.VeryHigh); Filters.Scene["Shockwave"].Load(); circle = new CircleShader(new Ref <Effect>(GetEffect("Effects/CircleShader")), "Pass1"); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/BirthOfAGod"), ModContent.ItemType <AngelStaffBoxItem>(), ModContent.TileType <AngelStaffBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/HeadChala"), ModContent.ItemType <OneStarBoxItem>(), ModContent.TileType <OneStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/Budokai2"), ModContent.ItemType <TwoStarBoxItem>(), ModContent.TileType <TwoStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/Budokai3"), ModContent.ItemType <ThreeStarBoxItem>(), ModContent.TileType <ThreeStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/SSJ3Song"), ModContent.ItemType <FourStarBoxItem>(), ModContent.TileType <FourStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/Challenge"), ModContent.ItemType <FiveStarBoxItem>(), ModContent.TileType <FiveStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/LostCourage"), ModContent.ItemType <SixStarBoxItem>(), ModContent.TileType <SixStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/VegetaSSJ"), ModContent.ItemType <SevenStarBoxItem>(), ModContent.TileType <SevenStarBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/XV2Villain"), ModContent.ItemType <DragonBallsBoxItem>(), ModContent.TileType <DragonBallsBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/MusicBoxes/BurstLimit"), ModContent.ItemType <BabidisMagicBoxItem>(), ModContent.TileType <BabidisMagicBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/TheBarrenWastelands"), ModContent.ItemType <WastelandsBoxItem>(), ModContent.TileType <WastelandsBoxTile>()); AddMusicBox(GetSoundSlot(SoundType.Music, "Sounds/Music/TheUnexpectedArrival"), ModContent.ItemType <FFBoxItem>(), ModContent.TileType <FFBoxTile>()); } }