﻿namespace ElSmite
{
    using LeagueSharp.Common;

    // ReSharper disable once ClassNeverInstantiated.Global
    public class InitializeMenu
    {
        #region Static Fields

        public static Menu Menu, ChampionMenu;

        #endregion

        #region Public Methods and Operators

        public static void Load()
        {
            Menu = new Menu("【红叶推介】EL 红蓝惩戒", "ElSmite", true);

            var mainMenu = Menu.AddSubMenu(new Menu("Default", "Default"));
            {
                if (Entry.IsSummonersRift)
                {
                    mainMenu.AddItem(
                        new MenuItem("ElSmite.Activated", "Activated").SetValue(
                            new KeyBind("M".ToCharArray()[0], KeyBindType.Toggle, true)));
                    mainMenu.AddItem(new MenuItem("SRU_Dragon", "Dragon").SetValue(true));
                    mainMenu.AddItem(new MenuItem("SRU_Baron", "Baron").SetValue(true));
                    mainMenu.AddItem(new MenuItem("SRU_Red", "Red buff").SetValue(true));
                    mainMenu.AddItem(new MenuItem("SRU_Blue", "Blue buff").SetValue(true));

                    //Bullshit smites
                    mainMenu.AddItem(new MenuItem("SRU_Gromp", "Gromp").SetValue(false));
                    mainMenu.AddItem(new MenuItem("SRU_Murkwolf", "Wolves").SetValue(false));
                    mainMenu.AddItem(new MenuItem("SRU_Krug", "Krug").SetValue(false));
                    mainMenu.AddItem(new MenuItem("SRU_Razorbeak", "Chicken camp").SetValue(false));
                    mainMenu.AddItem(new MenuItem("Sru_Crab", "Crab").SetValue(false));
                }

                if (Entry.IsTwistedTreeline)
                {
                    mainMenu.AddItem(new MenuItem("TT_Spiderboss", "Vilemaw Enabled").SetValue(true));
                    mainMenu.AddItem(new MenuItem("TT_NGolem", "Golem Enabled").SetValue(true));
                    mainMenu.AddItem(new MenuItem("TT_NWolf", "Wolf Enabled").SetValue(true));
                    mainMenu.AddItem(new MenuItem("TT_NWraith", "Wraith Enabled").SetValue(true));
                }
            }

            var combatMenu = Menu.AddSubMenu(new Menu("Killsteal", "Killsteal"));
            {
                combatMenu.AddItem(new MenuItem("ElSmite.KS.Activated", "Use smite to killsteal").SetValue(true));
            }

            var drawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings"));
            {
                drawMenu.AddItem(new MenuItem("ElSmite.Draw.Range", "Draw smite Range").SetValue(new Circle()));
                drawMenu.AddItem(new MenuItem("ElSmite.Draw.Text", "Draw smite text").SetValue(true));
                drawMenu.AddItem(new MenuItem("ElSmite.Draw.Damage", "Draw smite Damage").SetValue(true));
            }

            /*var credits = Menu.AddSubMenu(new Menu("Credits", "jQuery"));
            {
                credits.AddItem(new MenuItem("ElRengar.Paypal", "if you would like to donate via paypal:"));
                credits.AddItem(new MenuItem("ElRengar.Email", "info@zavox.nl"));
            }*/

            Menu.AddItem(new MenuItem("seperator", ""));
            Menu.AddItem(new MenuItem("422442fsaafsf", string.Format("Version: {0}", Entry.ScriptVersion)));
            Menu.AddItem(new MenuItem("by.jQuery", "Made By jQuery"));

            Menu.AddToMainMenu();
        }

        #endregion
    }
}