示例#1
0
 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);
     }
 }
示例#2
0
 public static void ActivateTransMenu()
 {
     transMenu = new TransMenu();
     transMenu.Activate();
     TransMenuInterface = new UserInterface();
     TransMenuInterface.SetState(transMenu);
 }