Inheritance: MonoBehaviour
Esempio n. 1
0
        public IList <InfoMenu> FromItemInfoXml()
        {
            IList <InfoMenu> list = new List <InfoMenu>();
            XElement         x    = XElement.Parse(_menuInfoItem);

            if (x.Name != "Menu")
            {
                return(list);
            }
            XAttribute ver = x.Attribute("Version");

            if (ver == null || ver.Value != "1")
            {
                return(list);
            }
            IList <XElement> xitems = x.Descendants("InfoItem").ToList();

            if (xitems.Count > 0)
            {
                foreach (var xElement in xitems)
                {
                    InfoMenu item = new InfoMenu
                    {
                        Id       = xElement.Attribute("Id").Value.ToInt32Req(),
                        Guid     = xElement.Attribute("Guid").Value,
                        MenuName = xElement.Attribute("MenuName").Value,
                    };
                    list.Add(item);
                }
                return(list);
            }
            return(null);
        }
Esempio n. 2
0
    public void Start()
    {
        anim = GetComponent <Animator>();

        buttonSource = buttonHolder.GetComponent <AudioSource>();

        slider      = GameObject.FindGameObjectWithTag("Slider");
        resetHolder = GameObject.FindGameObjectWithTag("ResetSlide");
        resetPos    = resetHolder.GetComponent <RectTransform>();
        sliderPos   = slider.GetComponent <RectTransform>();


        maxVal  = 150;
        maxCats = 5;

        currentFPS = 0;
        ifAuto     = false;

        currentVal   = 0;
        currentCats  = 0;
        currentClick = 10;
        currentSpawn = lvl1;

        mergeCheck = false;

        popUpHolder = GameObject.FindGameObjectWithTag("Manager");
        popUpScript = popUpHolder.GetComponent <PopUpSys>();

        infoHolder = GameObject.FindGameObjectWithTag("Info");
        infoMenu   = infoHolder.GetComponent <InfoMenu>();
    }
Esempio n. 3
0
        private void AddInfoMenu(UIElement menu)
        {
            InfoMenu = UIElement.GetContainer("InfoMenu", 0, UIHelper.GetTopRight(margins * -1, margins, (menuWidth / 2) - (2 * margins), menuHeight - (2 * margins)));
            InfoBack = UIElement.GetImage(PyDraw.getBorderedRectangle((menuWidth / 2) - (2 * margins), menuHeight - (2 * margins), Color.White * 0.2f, 1, Color.White), Color.MediumOrchid, positioner: UIHelper.GetCentered());
            InfoMenu.Add(InfoBack);

            menu.Add(InfoMenu);
        }
Esempio n. 4
0
    void Awake()
    {
        img   = GetComponent <Image> ();
        trans = transform;

        infoMenu = trans.parent.GetComponent <InfoMenu> ();

        //-1 to ignore the main button
        index = trans.GetSiblingIndex() - 1;

        //add click listener
        button = GetComponent <Button> ();
        button.onClick.AddListener(OnItemClick);
    }
Esempio n. 5
0
 //-------------------------------------------------------------------------------------------------
 // unity methods
 //-------------------------------------------------------------------------------------------------
 void Start()
 {
     //instantiate tab menu and set its position
     mTabMenu = Instantiate(ObjectManager.getMenu("TabMenu"), transform).GetComponent <TabMenu>();
     mTabMenu.setPositions(0, 0, 0, 0, 0, 0.1f, 1, 0.9f);
     //make the sub menus
     mInfoMenu      = Instantiate(ObjectManager.getMenu("InfoMenu"), mTabMenu.transform).GetComponent <InfoMenu>();
     mInventoryMenu = Instantiate(ObjectManager.getMenu("InventoryMenu"), mTabMenu.transform).GetComponent <InventoryMenu>();
     mActionMenu    = Instantiate(ObjectManager.getMenu("ActionMenu"), mTabMenu.transform).GetComponent <ActionMenu>();
     //add submenus as tabs
     mTabMenu.addMenu(0, mInfoMenu, "INFO");
     mTabMenu.addMenu(1, mInventoryMenu, "ITEMS");
     mTabMenu.addMenu(2, mActionMenu, "ACTIONS");
 }
Esempio n. 6
0
        public MenuManager()
        {
            menu = new Menu(" Debugger", "debugger", true, "chaos_knight_reality_rift", true).SetFontColor(
                Color.PaleVioletRed);

            OnAddRemove        = new OnAddRemoveMenu(menu);
            OnChangeMenu       = new OnChangeMenu(menu);
            OnExecuteOrderMenu = new OnExecuteOrderMenu(menu);
            GameEventsMenu     = new GameEventsMenu(menu);
            DumpMenu           = new DumpMenu(menu);
            InfoMenu           = new InfoMenu(menu);

            menu.AddToMainMenu();
        }
Esempio n. 7
0
        private void SetupMenu()
        {
            try
            {
                SFXMenu = new Menu(Global.Name, "sfx", true);

                Menu = SFXMenu.AddSubMenu(new Menu(Player.ChampionName, "." + Player.ChampionName));

                DrawingManager.AddToMenu(
                    Menu.AddSubMenu(new Menu(Global.Lang.Get("G_Drawing"), Menu.Name + ".drawing")), this);

                TargetSelector.AddToMenu(
                    SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_TargetSelector"), SFXMenu.Name + ".ts")));

                Orbwalker =
                    new Orbwalking.Orbwalker(
                        SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_Orbwalker"), SFXMenu.Name + ".orb")));
                KillstealManager.AddToMenu(
                    SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_MK"), SFXMenu.Name + ".killsteal")));
                ItemManager.AddToMenu(
                    SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_MI"), SFXMenu.Name + ".items")), ItemFlags);
                SummonerManager.AddToMenu(
                    SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_MS"), SFXMenu.Name + ".summoners")));

                LanguageMenu.AddToMenu(
                    SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_Settings"), SFXMenu.Name + ".settings")));

                InfoMenu.AddToMenu(SFXMenu.AddSubMenu(new Menu(Global.Lang.Get("F_Info"), SFXMenu.Name + ".info")));

                DebugMenu.AddToMenu(SFXMenu, Spells);

                TickMenu.AddToMenu(SFXMenu);

                SFXMenu.AddToMainMenu();

                try
                {
                    AddToMenu();
                }
                catch (Exception ex)
                {
                    Global.Logger.AddItem(new LogItem(ex));
                }
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Esempio n. 8
0
        private void ClickItem(Point p, bool h, bool r, bool s, UIElement element)
        {
            if (r)
            {
                element.Parent.Children.ForEach(e =>
                {
                    HideElement(e);

                    if (element.Id.StartsWith(e.Id))
                    {
                        ShowElement(e, true);
                    }
                    else if (e.Id.StartsWith(element.Id) && e.Z == element.Z + 1)
                    {
                        ShowElement(e);
                    }
                    else if (e.Z <= element.Z && element.Id.Split('.') is string[] elm && e.Id.Split('.') is string[] el)
                    {
                        if (el.Length == 2 && el[0] == elm[0])
                        {
                            ShowElement(e);
                        }

                        if (el.Length == 3 && el[1] == elm[1])
                        {
                            ShowElement(e);
                        }

                        if (el.Length == 4 && el[2] == elm[2])
                        {
                            ShowElement(e);
                        }

                        if (el.Length == 5 && el[3] == elm[3])
                        {
                            ShowElement(e);
                        }
                    }
                });

                if (FindMenuItem(menuItems, element.Id) is MenuItem item && item.Screen is UIElement screen)
                {
                    InfoMenu.Clear();
                    InfoMenu.Add(InfoBack);
                    InfoMenu.Add(screen);
                    InfoMenu.UpdateBounds();
                }
            }
        }
Esempio n. 9
0
        public void ConstructInfoScreen()
        {
            GameScreen gameScreen = GameScreen.Instance;

            ClientSize = new Size(gameScreen.SCREEN_WIDTH, gameScreen.SCREEN_HEIGHT);

            ControlsBuilder menuBuilder = new InfoMenu();

            gameScreen.Construct(menuBuilder);
            Controls.AddRange(menuBuilder.Controls.ToArray());

            ControlsBuilder boardBuilder = new InfoPanel();

            gameScreen.Construct(boardBuilder);
            Controls.AddRange(boardBuilder.Controls.ToArray());
        }
Esempio n. 10
0
        private void SetupMenu()
        {
            try
            {
                SFXMenu = new Menu(Global.Name, "sfx", true);

                Menu = new Menu(Global.Prefix + Player.ChampionName, SFXMenu.Name + "." + Player.ChampionName, true);

                DrawingManager.AddToMenu(Menu.AddSubMenu(new Menu("Drawings", Menu.Name + ".drawing")), this);

                TargetSelector.AddToMenu(SFXMenu.AddSubMenu(new Menu("Target Selector", SFXMenu.Name + ".ts")));

                Orbwalker = new Orbwalking.Orbwalker(SFXMenu.AddSubMenu(new Menu("Orbwalker", SFXMenu.Name + ".orb")));

                KillstealManager.AddToMenu(SFXMenu.AddSubMenu(new Menu("Killsteal", SFXMenu.Name + ".killsteal")));

                var itemMenu = SFXMenu.AddSubMenu(new Menu("Items", SFXMenu.Name + ".items"));
                TearStackManager.AddToMenu(
                    itemMenu.AddSubMenu(new Menu("Tear Stacking", SFXMenu.Name + ".tear-stack." + Player.ChampionName)),
                    Spells);
                ItemManager.AddToMenu(itemMenu, ItemFlags);
                SummonerManager.AddToMenu(SFXMenu.AddSubMenu(new Menu("Summoners", SFXMenu.Name + ".summoners")));

                InfoMenu.AddToMenu(SFXMenu.AddSubMenu(new Menu("Info", SFXMenu.Name + ".info")));
                DebugMenu.AddToMenu(SFXMenu, Spells);

                Menu.AddToMainMenu();
                SFXMenu.AddToMainMenu();

                try
                {
                    AddToMenu();
                }
                catch (Exception ex)
                {
                    Global.Logger.AddItem(new LogItem(ex));
                }
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Esempio n. 11
0
    private void Start()
    {
        if (gameObject.tag == "VetShop" || gameObject.tag == "PetShop")
        {
            shopSprite = transform.Find("Image").gameObject;
            shopAnim   = shopSprite.GetComponent <Animator>();
        }
        spawnHolder  = GameObject.FindGameObjectWithTag("SPHolder");
        buttonScript = spawnHolder.GetComponent <ButtonScript>();

        manageHolder3 = GameObject.FindGameObjectWithTag("Manager");
        money3        = manageHolder3.GetComponent <Money>();

        resetFood = GameObject.FindGameObjectWithTag("ResetFood");
        food      = GameObject.FindGameObjectWithTag("Food");

        sprite = food.gameObject.GetComponent <SpriteRenderer>();

        sprite.color = new Color(sprite.color.r, sprite.color.g, sprite.color.b, 0f);
        //future problem with cats autospawning and reseting mid drag VVVVVVV fix it by calling it in the start of another script that doesnt respawns
        food.transform.position = resetFood.transform.position;

        foodHolder = GameObject.FindGameObjectWithTag("FoodS");
        foodMunch  = Resources.Load <AudioClip>("FoodSound");
        foodSource = foodHolder.GetComponent <AudioSource>();

        shopHolder = GameObject.FindGameObjectWithTag("ShopS");
        shopBell   = Resources.Load <AudioClip>("hoverShop");
        shopSource = shopHolder.GetComponent <AudioSource>();

        infoHolder = GameObject.FindGameObjectWithTag("Info");
        infoMenu   = infoHolder.GetComponent <InfoMenu>();

        isDead = false;

        if (gameObject.tag != "VetShop" && gameObject.tag != "PetShop" && gameObject.tag != "Food")
        {
            healthBar = transform.Find("HealthBar").gameObject;
            healthBar.SetActive(false);
        }
    }
Esempio n. 12
0
        private static async void BotOnMessageRecived(object sender, Telegram.Bot.Args.MessageEventArgs e)
        {
            var message = e.Message;

            Console.WriteLine(message.Text);
            //if (message.Text.Equals("/start")) { }
            //if (message.Text.Equals("/help")) { }
            //if (message.Text.Equals("/Назад")) { }
            //NearBars.Execute();
            //TopOfBars

            //InfoMenu.MessageRecived(sender,e);
            //SearchMenu.Execute();
            //SearchByConditions
            //SittingsMenu.Execute();
            if (InfoMenu.Contains(message))
            {
                if (message.Text.Equals("\U00002049"))
                {
                    await bot.SendTextMessageAsync(message.Chat.Id, InfoMenu.Info, replyMarkup : InfoMenu.ReplyKeyboard);

                    InfoMenu.MessageRecived(sender, e);
                }
                else
                {
                    InfoMenu.MessageRecived(sender, e);
                }
            }
            else if (NearBars.Contains(message))
            {
                if (message.Type == Telegram.Bot.Types.Enums.MessageType.Location)
                {
                    NearBars.MessageRecived(sender, e);
                }
                else if (message.Text.Equals("\U0001F43E"))
                {
                    await bot.SendTextMessageAsync(message.Chat.Id, NearBars.AskLocation, replyMarkup : NearBars.ReplyKeyboardGeo);

                    NearBars.MessageRecived(sender, e);
                }
                else
                {
                    NearBars.MessageRecived(sender, e);
                }
            }
            else if (SearchMenu.Contains(message))
            {
                if (message.Text.Equals("\U0001F50D"))
                {
                    //await bot.SendTextMessageAsync(message.Chat.Id, SearchMenu.Menu, replyMarkup: SearchMenu.ReplyKeyboard);
                    //SearchMenu.MessageRecived(sender, e);
                    SearchMenu.FlagToWriteName = true;
                    //SearchMenu.UserNameRecived(sender, e);
                    await bot.SendTextMessageAsync(message.Chat.Id, "Введите название бара", replyMarkup : NearBars.ReplyKeyboarBack);
                }
            }
            else if (message.Text.Equals("/start"))
            {
                answ = await bot.SendTextMessageAsync(message.Chat.Id, StartMenu.Greeting, replyMarkup : StartMenu.ReplyKeyboard);
            }
            else if (message.Text.Equals("/help"))
            {
                answ = await bot.SendTextMessageAsync(message.Chat.Id, InfoMenu.Info);
            }
            else if (message.Text.Equals("Назад"))
            {
                await bot.SendTextMessageAsync(message.Chat.Id, StartMenu.menu, replyMarkup : StartMenu.ReplyKeyboard);

                NearBars.FlagToWriteRange  = false;
                SearchMenu.FlagToWriteName = false;
            }

            else if (SittingsMenu.Contains(message))
            {
                if (message.Text.Equals("\U00002699"))
                {
                    await bot.SendTextMessageAsync(message.From.Id, SittingsMenu.Greeting, replyMarkup : SittingsMenu.ReplyKeyboard);

                    SittingsMenu.MessageRecived(sender, e);
                }
                else
                {
                    SittingsMenu.MessageRecived(sender, e);
                }
            }
            else if (TopOfBars.Contains(message))
            {
                if (message.Text.Equals("\U0001F51D"))
                {
                    await bot.SendTextMessageAsync(message.Chat.Id, "Тут будет топ баров");
                }
                else
                {
                    await bot.SendTextMessageAsync(message.Chat.Id, "Тут будет топ баров");
                }
            }
            else if (AllBarsWithMenu.Contains(message))
            {
                AllBarsWithMenu.MessageRecived(sender, e);
            }
            else if (NearBars.FlagToWriteRange == true)
            {
                double range;
                bool   res = Double.TryParse(message.Text, out range);
                if (res == true)
                {
                    NearBars.UsersRangeRecived(sender, e, range);
                }
                else
                {
                    await bot.SendTextMessageAsync(message.Chat.Id, "вы ввели не кореектное число\nили вообще не число");
                }
            }

            else if (SearchMenu.FlagToWriteName == true)
            {
                SearchMenu.UserNameRecived(sender, e);
            }


            else
            {
                //SearchMenu.MessageRecived(sender, e);
            }


            switch (message.Text)
            {
            /*
             * case "/start":
             *  answ=await bot.SendTextMessageAsync(message.Chat.Id, StartMenu.Greeting, replyMarkup: StartMenu.ReplyKeyboard);
             *  MessagesFromBot.Add(answ);
             *  break;
             * case "/help":
             *  answ=await bot.SendTextMessageAsync(message.Chat.Id, InfoMenu.Info);
             *  MessagesFromBot.Add(answ);
             *  break;
             * case "Назад":
             *  //в главное меню
             *  await bot.SendTextMessageAsync(message.Chat.Id, StartMenu.menu, replyMarkup: StartMenu.ReplyKeyboard);
             *  break;
             */
            /*
             * case "\U0001F43E":
             * //near bars
             * await bot.SendTextMessageAsync(message.Chat.Id, NearBars.AskLocation, replyMarkup: NearBars.ReplyKeyboardGeo);
             * NearBars.Execute();
             * Console.WriteLine("рядом");
             * break;
             */
            /*
             * case "\U0001F51D":
             * //top of bars
             * Console.WriteLine("топ");
             * break;
             */
/*
 *              case "\U00002049":
 *                  //info about application and other secondary things
 *                   //inf= new InfoMenu();
 *                  await bot.SendTextMessageAsync(message.Chat.Id, InfoMenu.Info, replyMarkup: InfoMenu.ReplyKeyboard);
 *                  InfoMenu.Execute(sender,e);
 *                  //Program.MessagesFromBot.Add(answ);
 *                  Console.WriteLine("инфо");
 *                  break;
 */
            /*
             * case "\U0001F50D":
             * //search
             * await bot.SendTextMessageAsync(message.Chat.Id, SearchMenu.Menu, replyMarkup: SearchMenu.ReplyKeyboard);
             * SearchMenu.Execute();
             * Console.WriteLine("поиск");
             * break;
             */
            /*
             * case "\U0001F52E":
             * //search by conditions
             * Console.WriteLine("поиск по критериям");
             * break;
             */
            /*
             * case "\U00002699":
             * //sittings
             * await bot.SendTextMessageAsync(message.From.Id, SittingsMenu.Greeting, replyMarkup: SittingsMenu.ReplyKeyboard);
             * SittingsMenu.Execute();
             * //MessagesFromBot.Add(answ);
             * Console.WriteLine("настройки");
             * break;
             */
            default:
                //StartMenu.Execute();
                //await bot.SendTextMessageAsync(message.From.Id,"Это что то незнакомое...");
                break;
            }
        }
Esempio n. 13
0
        private static void CreateMenu()
        {
            try
            {
                foreach (var p in CurrentPatchs)
                {
                    BuildsServices.Add(new BuildServices(p.Key, p.Value));
                }

                MenuIni    = MainMenu.AddMenu("AramBuddy", "AramBuddy");
                SpellsMenu = MenuIni.AddSubMenu("Spells");
                MenuIni.AddGroupLabel("AramBuddy Version: " + version);
                MenuIni.AddGroupLabel("AramBuddy Settings");

                BuildMenu = MenuIni.AddSubMenu("Current Build");
                InfoMenu  = MenuIni.AddSubMenu("Extra Options");

                var lolversion  = BuildMenu.Add("buildpatch", new ComboBox("Select Build Patch: ", 0, BuildsServices.Select(s => s.Patch).ToArray()));
                var buildsource = BuildMenu.Add("buildsource", new ComboBox("Builds Service: ", 0, BuildsServices[lolversion.CurrentValue].AvailableServices));

                lolversion.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                {
                    foreach (var i in BuildsServices[args.OldValue].AvailableServices)
                    {
                        buildsource.Remove(i);
                    }
                    foreach (var i in BuildsServices[args.NewValue].AvailableServices)
                    {
                        buildsource.Add(i);
                    }
                };

                BuildMenu.AddLabel("MetaSrc: Very Good For Aram");
                BuildMenu.AddLabel("Championgg: Decent For Aram");
                BuildMenu.AddLabel("KoreanBuilds: Decent For Aram");
                BuildMenu.AddLabel("LoLSkill: Not Good For Aram");

                var debug         = MenuIni.CreateCheckBox("debug", "Enable Debugging Mode");
                var activator     = MenuIni.CreateCheckBox("activator", "Enable Built-In Activator");
                var DisableSpells = MenuIni.CreateCheckBox("DisableSpells", "Disable Built-in Casting Logic", false);
                var CustomPlugin  = MenuIni.CreateCheckBox("CustomPlugin", "Enable Custom Plugins");
                var quit          = MenuIni.CreateCheckBox("quit", "Quit On Game End");
                var stealhr       = MenuIni.CreateCheckBox("stealhr", "Dont Steal Health Relics From Allies", false);
                var chat          = MenuIni.CreateCheckBox("chat", "Send Start / End msg In-Game Chat", false);
                var texture       = MenuIni.CreateCheckBox("texture1", "Disable In-Game Texture (Less RAM/CPU)", false);
                var evade         = MenuIni.CreateCheckBox("evade", "Evade Integration[BETA]");
                var ff            = MenuIni.CreateCheckBox("ff", "Vote Surrender With Team Always");
                var cameralock    = MenuIni.CreateCheckBox("cameralock", "Lock Camera Always");

                MenuIni.AddSeparator(0);
                var Safe = MenuIni.CreateSlider("Safe1", "Safe Slider (Recommended 1250)", 1250, 0, 2500);
                //MenuIni.AddLabel("More Safe Value = more defensive playstyle");
                //MenuIni.AddSeparator(0);
                var HRHP = MenuIni.CreateSlider("HRHP", "Health Percent To Pick Health Relics (Recommended 75%)", 75);
                var HRMP = MenuIni.CreateSlider("HRMP", "Mana Percent To Pick Health Relics (Recommended 15%)", 15);
                MenuIni.AddSeparator(0);
                var Reset = MenuIni.CreateCheckBox("reset", "Reset All Settings To Default", false);

                // Misc Settings
                MiscMenu = MenuIni.AddSubMenu("Misc Settings");
                var autolvl    = MiscMenu.CreateCheckBox("autolvl", "Enable AutoLvlUP");
                var autoshop   = MiscMenu.CreateCheckBox("autoshop", "Enable AutoShop");
                var fixdive    = MiscMenu.CreateCheckBox("fixdive", "Try to Fix Diving Towers");
                var kite       = MiscMenu.CreateCheckBox("kite", "Try Kite Near Enemies");
                var ping       = MiscMenu.CreateCheckBox("ping", "Move To AllySpawn On High Ping/Ping-Spikes");
                var bardchime  = MiscMenu.CreateCheckBox("bardchime", "Pick Bard Chimes");
                var corkibomb  = MiscMenu.CreateCheckBox("corkibomb", "Pick Corki Bomb");
                var dravenaxe  = MiscMenu.CreateCheckBox("dravenaxe", "Pick Draves Axes");
                var olafaxe    = MiscMenu.CreateCheckBox("olafaxe", "Pick Olaf Axe");
                var zacpassive = MiscMenu.CreateCheckBox("zacpassive", "Pick Zac Blops");
                var azirtower  = MiscMenu.CreateCheckBox("azirtower", "Create Azir Towers");
                var teleport   = MiscMenu.CreateCheckBox("tp", "Enable use of Teleporting Logic");
                var logs       = MiscMenu.CreateCheckBox("logs", "Save AramBuddy Logs", false);
                var savechat   = MiscMenu.CreateCheckBox("savechat", "Save In-Game Chat", false);
                var tyler1     = MiscMenu.CreateCheckBox("bigbrother", "Run it down mid", false);
                var tyler1g    = MiscMenu.CreateSlider("gold", "Run it down mid if my Gold >= {0}", 3000, 500, 17500);

                Reset.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
                {
                    if (args.NewValue)
                    {
                        Reset.CurrentValue         = false;
                        debug.CurrentValue         = true;
                        activator.CurrentValue     = true;
                        DisableSpells.CurrentValue = false;
                        CustomPlugin.CurrentValue  = true;
                        quit.CurrentValue          = true;
                        stealhr.CurrentValue       = false;
                        chat.CurrentValue          = true;
                        texture.CurrentValue       = false;
                        evade.CurrentValue         = true;
                        ff.CurrentValue            = true;
                        cameralock.CurrentValue    = true;
                        Safe.CurrentValue          = 1250;
                        HRHP.CurrentValue          = 75;
                        HRMP.CurrentValue          = 15;

                        // Misc
                        autolvl.CurrentValue    = true;
                        autoshop.CurrentValue   = true;
                        fixdive.CurrentValue    = true;
                        kite.CurrentValue       = true;
                        ping.CurrentValue       = true;
                        bardchime.CurrentValue  = true;
                        corkibomb.CurrentValue  = true;
                        dravenaxe.CurrentValue  = true;
                        olafaxe.CurrentValue    = true;
                        zacpassive.CurrentValue = true;
                        azirtower.CurrentValue  = true;
                        teleport.CurrentValue   = true;
                        logs.CurrentValue       = false;
                        savechat.CurrentValue   = false;
                        tyler1.CurrentValue     = false;
                        tyler1g.CurrentValue    = 3000;
                    }
                };

                Safe.IsVisible      = false; // disabled
                corkibomb.IsVisible = false; // disable for now

                SpellsMenu.AddGroupLabel("Built-In Casting Logic:");
                SpellsMenu.CreateCheckBox("combo", "Use Spells in Combo Mode");
                SpellsMenu.CreateCheckBox("harass", "Use Spells in Harass Mode");
                SpellsMenu.CreateCheckBox("flee", "Use Spells in Flee Mode");
                SpellsMenu.CreateCheckBox("laneclear", "Use Spells in Lane Clear Mode");
                SpellsMenu.AddSeparator(0);
                SpellsMenu.AddGroupLabel("SummonerSpells");
                SpellsMenu.Add("Heal", new CheckBox("Use Heal"));
                SpellsMenu.Add("Barrier", new CheckBox("Use Barrier"));
                SpellsMenu.Add("Clarity", new CheckBox("Use Clarity"));
                SpellsMenu.Add("Ghost", new CheckBox("Use Ghost"));
                SpellsMenu.Add("Flash", new CheckBox("Use Flash"));
                SpellsMenu.Add("Cleanse", new CheckBox("Use Cleanse"));

                InfoMenu.AddGroupLabel("Disabling In-Game Texture");
                InfoMenu.AddLabel("To Disable In-Game Texture Type In Chat \"Disable Texture\"");
                InfoMenu.AddLabel("To Enable In-Game Texture Type In Chat \"Enable Texture\"");
                InfoMenu.AddLabel("Takes affect after 1 or 2 games");

                Console.Title = $"{Drawing.Width}x{Drawing.Height}";

                texture.IsVisible = false;

                if (DisableTexture)
                {
                    Disabletexture();
                }
                else
                {
                    Enabletexture();
                }

                Chat.OnInput += delegate(ChatInputEventArgs args)
                {
                    if (args.Input.ToLower().Contains("disable texture"))
                    {
                        Disabletexture();
                        texture.CurrentValue = true;
                        args.Process         = false;
                    }
                    if (args.Input.ToLower().Contains("enable texture"))
                    {
                        Enabletexture();
                        texture.CurrentValue = false;
                        args.Process         = false;
                    }
                };
            }
            catch (Exception ex)
            {
                Logger.Send("Program Error At CreateMenu", ex, Logger.LogLevel.Error);
            }
        }
Esempio n. 14
0
 private void Awake()
 {
     instance = this;
 }
Esempio n. 15
0
 void Awake()
 {
     instance = this;
 }