Exemplo n.º 1
0
 public PositionSaver(Menu menu, Spell spellToUse)
 {
     _core           = new PositionSaverCore();
     _isEnabled      = menu.Add(new MenuBool("positionsaverenabled", "Auto use in custom positions", true));
     _saveKey        = menu.Add(new MenuKeyBind("positionsaversavekey", "Save cursor pos as custom pos!", Keys.I, KeyBindType.Press));
     _deleteOneKey   = menu.Add(new MenuKeyBind("positionsaverdeleteone", "Delete cursor position", Keys.J, KeyBindType.Press));
     _deleteKey      = menu.Add(new MenuKeyBind("positionsaverpurge", "Delete all positions", Keys.Delete, KeyBindType.Press));
     _spellToUse     = spellToUse;
     Drawing.OnDraw += OnDraw;
 }
Exemplo n.º 2
0
 public PositionSaver(Menu menu, Spell spellToUse)
 {
     _core = new PositionSaverCore();
     _isEnabled = menu.Add(new MenuBool("positionsaverenabled", "Auto use in custom positions", true));
     _saveKey = menu.Add(new MenuKeyBind("positionsaversavekey", "Save cursor pos as custom pos!", Keys.I, KeyBindType.Press));
     _deleteOneKey = menu.Add(new MenuKeyBind("positionsaverdeleteone", "Delete cursor position", Keys.J, KeyBindType.Press));
     _deleteKey = menu.Add(new MenuKeyBind("positionsaverpurge", "Delete all positions", Keys.Delete, KeyBindType.Press));
     _spellToUse = spellToUse;
     Drawing.OnDraw += OnDraw;
 }