private static void AddPotion(Menu subMenu, ItemManager item) { var active = new Menu(item.ActiveName, item.ActiveName); { active.AddItem(new MenuItem(item.ActiveName, item.ActiveName, true).SetValue(true)); if (item.Mode == 3 || item.Mode == 4) active.AddItem(new MenuItem(item.ActiveName + "myHP", "Use if HP <= %", true).SetValue(new Slider(50))); if (item.Mode == 3 || item.Mode == 5) active.AddItem(new MenuItem(item.ActiveName + "myMP", "Use if MP <= %", true).SetValue(new Slider(50))); subMenu.AddSubMenu(active); } }
private static void AddOffensiveItem(Menu subMenu, ItemManager item) { var active = new Menu(item.ActiveName, item.ActiveName); { active.AddItem(new MenuItem(item.ActiveName, item.ActiveName, true).SetValue(true)); active.AddItem(new MenuItem(item.ActiveName + "dmgCalc", "Add to damage Calculation", true).SetValue(true)); active.AddItem(new MenuItem(item.ActiveName + "killAble", "Use only if enemy is killable", true).SetValue(false)); active.AddItem(new MenuItem(item.ActiveName + "always", "Always use", true).SetValue(item.Mode == 1 || item.Mode == 2)); active.AddItem(new MenuItem(item.ActiveName + "myHP", "Use if HP <= %", true).SetValue(new Slider(25))); active.AddItem(new MenuItem(item.ActiveName + "enemyHP", "Use if target HP <= %", true).SetValue(new Slider(50))); subMenu.AddSubMenu(active); } }