Ejemplo n.º 1
0
 public static void Update(object sender, EventArgs e)
 {
     if (Input.KeyPressed(Config.CharToXnaKey(Inventory_Enhancements.config.CAKey)) && Inventory_Enhancements.config.CAHotkeyEnabled)
     {
         Cycle();
     }
 }
 public static void Update(object sender, EventArgs e)
 {
     if (Main.gameMenu && !_notInGame)
     {
         _notInGame = true;
     }
     if (Main.gameMenu)
     {
         return;
     }
     if (Input.KeyPressed(Config.CharToXnaKey(config.SortKey)) && Main.keyState.IsKeyUp(Keys.LeftShift) && config.SortHotkeyEnabled)
     {
         AutoTrash.Trash();
         Clean();
         Sort();
     }
     if (Input.KeyPressed(Config.CharToXnaKey(config.HotbarSwapKey)) && config.HotbarSwapKeyEnabled)
     {
         SwapHotbar(config.HotbarCycle);
     }
     if (Input.KeyPressed(Config.CharToXnaKey(config.QSKey)) && config.QSHotkeyEnabled)
     {
         QuickStack();
     }
     if (Input.KeyPressed(Keys.O) && (Main.keyState.IsKeyDown(Keys.LeftShift) || Main.keyState.IsKeyDown(Keys.LeftAlt)))
     {
         if (Main.keyState.IsKeyDown(Keys.LeftShift))
         {
             ReloadConfig();
         }
         else
         {
             LaunchConfigurator();
         }
     }
     if (_notInGame)
     {
         ReloadConfig(true);
     }
     _notInGame = false;
 }
Ejemplo n.º 3
0
 public static void Update(object sender, EventArgs e)
 {
     if (Input.KeyPressed(Config.CharToXnaKey(Inventory_Enhancements.config.SortKey)) && Main.keyState.IsKeyDown(Keys.LeftShift))
     {
         if (Inventory_Enhancements.config.AutoTrash)
         {
             Inventory_Enhancements.config.AutoTrash = false;
             Main.NewText("Autotrash Disabled", 255, 50, 50);
             Inventory_Enhancements.config.SaveConfig();
         }
         else
         {
             Inventory_Enhancements.config.AutoTrash = true;
             Main.NewText("Autotrash Enabled", 255, 50, 50);
             Inventory_Enhancements.config.SaveConfig();
         }
     }
     if (Inventory_Enhancements.config.AutoTrash)
     {
         Trash();
     }
 }