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 Unload() { if (!Main.dedServ) { kiBar.Visible = false; characterTransformationsMenu.Visible = false; overloadBar.Visible = false; WishMenu.menuVisible = false; StylePreviewGFX.UnloadPreviewGFX(); WishMenuGFX.UnloadWishGFX(); } Instance = null; }