public BuildCreator(Menu parentMenu, string dir, string build = "") { sugBuild = build; property = typeof(CheckBox).GetProperty("Position"); buildFile = Path.Combine(dir + "\\" + AutoWalker.p.ChampionName + "-" + Game.MapId + ".txt"); l = new Label("Shopping list for " + Game.MapId); enabled = new CheckBox("Auto buy enabled", true); myBuild = new List <BuildElement>(); menu = parentMenu.AddSubMenu("AutoShop: " + AutoWalker.p.ChampionName, "AB_SHOP_" + AutoWalker.p.ChampionName); menu.Add("eeewgrververv", l); menu.Add(AutoWalker.p.ChampionName + "enabled", enabled); LoadBuild(); shop = new EasyShopV2(myBuild, enabled); Menu info = parentMenu.AddSubMenu("Shop-instructions"); toDefault = new CheckBox("Delete custom build and set default ADC build", false); PropertyInfo property2 = typeof(CheckBox).GetProperty("Size"); property2.GetSetMethod(true).Invoke(toDefault, new object[] { new Vector2(400, 25) }); info.Add("defbuild", toDefault); info.AddSeparator(150); info.AddLabel( @" Commands(type them in the chat): /b itemName :buy an item, you don't need to type exact name for the item, just few first characters, for example for BT its enough: /b thebloodt /s itemName : sell an item /buyhp:keep buying 1 hp potion(if not in champ's inventory already) /stophp : stop buying hp potion and sell if any is owned. AUTOSHOP WILL STOP WORKING IF FINDS ANY ITEMS IN INVENTORY THAT AREN'T IN THE SEQUENCE. Don't add to the list items that you can't buy, for example jungle items without smite. Autoshop will stop if you have items that are not listed, so it's recommended to sell whole inventory after changing list. Builds are saved in C:\Users\Username\AppData\Roaming\AutoBuddy\Builds you can copy/share them. "); toDefault.OnValueChange += toDefault_OnValueChange; Chat.OnInput += Chat_OnInput; Drawing.OnEndScene += Drawing_OnEndScene; }
public BuildCreator(Menu parentMenu, string dir, string build="") { sugBuild = build; property = typeof(CheckBox).GetProperty("Position"); buildFile = Path.Combine(dir + "\\" + AutoWalker.myHero.ChampionName + "-" + Game.MapId + ".txt"); l = new Label("Shopping list for " + Game.MapId); enabled = new CheckBox("Auto buy enabled", true); myBuild = new List<BuildElement>(); menu = parentMenu.AddSubMenu("AutoShop: " + AutoWalker.myHero.ChampionName, "AB_SHOP_" + AutoWalker.myHero.ChampionName); menu.Add("eeewgrververv", l); menu.Add(AutoWalker.myHero.ChampionName + "enabled", enabled); LoadBuild(); shop = new EasyShopV2(myBuild, enabled); Menu info = parentMenu.AddSubMenu("Shop-instructions"); toDefault=new CheckBox("Delete custom build and set default ADC build", false); PropertyInfo property2 = typeof(CheckBox).GetProperty("Size"); property2.GetSetMethod(true).Invoke(toDefault, new object[] { new Vector2(400, 25) }); info.Add("defbuild", toDefault); info.AddSeparator(150); info.AddLabel( @" Commands(type them in the chat): /b itemName :buy an item, you don't need to type exact name for the item, just few first characters, for example for BT its enough: /b thebloodt /s itemName : sell an item /buyhp:keep buying 1 hp potion(if not in champ's inventory already) /stophp : stop buying hp potion and sell if any is owned. AUTOSHOP WILL STOP WORKING IF FINDS ANY ITEMS IN INVENTORY THAT AREN'T IN THE SEQUENCE. Don't add to the list items that you can't buy, for example jungle items without smite. Autoshop will stop if you have items that are not listed, so it's recommended to sell whole inventory after changing list. Builds are saved in C:\Users\Username\AppData\Roaming\AutoBuddy\Builds you can copy/share them. "); toDefault.OnValueChange += toDefault_OnValueChange; Chat.OnInput += Chat_OnInput; Drawing.OnEndScene += Drawing_OnEndScene; }