Наследование: MonoBehaviour
Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     LudusLatrunculorum = new MainMenu();
     Application.Run(LudusLatrunculorum);
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {

        mainMenu = (MainMenu)(GameObject.Find("Main Menu").GetComponent("MainMenu"));
        CelebTextures = mainMenu.CelebTextures;
        if (GameStateManager.CelebFriend != -1 ) 
            FriendTexture = CelebTextures[GameStateManager.CelebFriend];
        else if (GameStateManager.FriendTexture != null) FriendTexture = GameStateManager.FriendTexture;

        float diceRoll = Random.value;
        if (diceRoll <= FriendThreshold)
        {
            gameObject.tag = "Friend";
            renderer.material.mainTexture = FriendTexture;
        }
        else
        {
            gameObject.tag = "Enemy";
            int numValidCelebs =  GameStateManager.CelebFriend == -1 ? CelebTextures.Length - 1 : CelebTextures.Length - 2;
            int which = Random.Range(0,numValidCelebs);
            if (GameStateManager.CelebFriend == which)
                which = CelebTextures.Length - 1;
            EnemyTexture = CelebTextures[which];
            renderer.material.mainTexture = EnemyTexture;
        }
    }
Пример #3
0
	public MainForm ()
	{
		// 
		// _mainMenu
		// 
		_mainMenu = new MainMenu ();
		// 
		// _fileMenu
		// 
		_fileMenu = new MenuItem ("&File");
		_fileMenu.MenuItems.Add (new MenuItem ("New"));
		_fileMenu.MenuItems.Add (new MenuItem ("Open"));
		_fileMenu.MenuItems.Add (new MenuItem ("Save"));
		_mainMenu.MenuItems.Add (_fileMenu);
		// 
		// _editMenu
		// 
		_editMenu = new MenuItem ("&Edit");
		_editMenu.MenuItems.Add (new MenuItem ("Copy"));
		_editMenu.MenuItems.Add (new MenuItem ("Cut"));
		_editMenu.MenuItems.Add (new MenuItem ("Paste"));
		_mainMenu.MenuItems.Add (_editMenu);
		// 
		// MainForm
		// 
		ClientSize = new Size (300, 50);
		Location = new Point (250, 100);
		Menu = _mainMenu;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #333668";
		Load += new EventHandler (MainForm_Load);
	}
Пример #4
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (UsuarioBox.Text == null | PassBox.Text == null)
     {
         MessageBox.Show("Por favor llene ambos campos");
     }
     else
     {
         string user;
         string pass;
         user = UsuarioBox.Text;
         pass = PassBox.Text;
         if (ConfirmarLogin(user, pass))
         {
             MainMenu mm = new MainMenu();
             mm.ShowDialog();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Credenciales inválidos");
             UsuarioBox.Focus();
         }
     }
 }
        public StartPage()
        {
            try
            {
                InitializeComponent();
                _dbConnectionString  = ConfigurationSettings.AppSettings["DBConStr"];

                DataAccess.conStr = _dbConnectionString;

                MainMenu _mainMenu = new MainMenu(_dbConnectionString);
                _mainFrame.Navigate(_mainMenu);
                dataAccess = new DataAccess();
                lines = dataAccess.getLines();
                lineQ = new Queue<int>();

                foreach (line l in lines)
                    lineQ.Enqueue(l.ID);

                reference = new Reference();

                andonManager = new AndonManager(AndonManager.MODE.SLAVE);                        
                
                andonManager.andonAlertEvent += new EventHandler<AndonAlertEventArgs>(andonManager_andonAlertEvent);

                andonManager.start();

            }

            catch( Exception e)
            {
                tbMsg.Text+= e.Message;
            }
        }
Пример #6
0
    public void Create()
    {
        //menuObjects.Add(CreateObject("SpaceSceneMenu", "Menu/SpaceSceneMenu"));
        GameObject root = new GameObject ();
        GameObject cam = CreateObject ("MenuCamera", "Menu/MenuCamera");

        GameObject newObj;
        menuCam = cam;
        root.transform.position = cam.transform.position;
        root.transform.rotation = cam.transform.rotation;

        cam.transform.parent = root.transform;
        root.name = "MenuRoot";
        menuObjects.Add(root);
        menuObjects.Add(cam);

        newObj = CreateObject ("NewGame", "Menu/NewGame"); newObj.transform.parent = root.transform;
        menuObjects.Add(newObj);
        newObj = CreateObject ("Continue", "Menu/Continue"); newObj.transform.parent = root.transform;
        menuObjects.Add(newObj);
        newObj = CreateObject ("SaveQuit", "Menu/SaveQuit"); newObj.transform.parent = root.transform;
        menuObjects.Add(newObj);
        newObj = CreateObject ("SpaceSceneMenu", "Menu/SpaceSceneMenu"); newObj.transform.parent = root.transform;
        menuObjects.Add(newObj);

        //Set up the menu instance
        newObj = CreateObject ("SRLName", "Menu/SRLName"); newObj.transform.parent = root.transform;
        menuObjects.Add(newObj);
        menuSystem = newObj.GetComponent<MainMenu>();

        isShown = true;
    }
Пример #7
0
    public MenuDialog()
    {
        Size = new Size(500,200);

        text.Size = new Size(490,190);
        text.Multiline = true;
        text.ScrollBars = ScrollBars.Both;
        text.WordWrap = false;
        text.Location = new Point(5,5);

        MenuItem fileMenu = new MenuItem("File");
        MenuItem open = new MenuItem("Open");
        open.Shortcut = Shortcut.CtrlO;
        MenuItem save = new MenuItem("Save");
        save.Shortcut = Shortcut.CtrlS;
        fileMenu.MenuItems.Add(open);
        fileMenu.MenuItems.Add(save);

        MenuItem formatMenu = new MenuItem("Format");
        MenuItem font = new MenuItem("Font");
        font.Shortcut = Shortcut.CtrlF;
        formatMenu.MenuItems.Add(font);

        MainMenu bar = new MainMenu();
        Menu = bar;
        bar.MenuItems.Add(fileMenu);
        bar.MenuItems.Add(formatMenu);

        Controls.Add(text);

        open.Click += new EventHandler(Open_Click);
        save.Click += new EventHandler(Save_Click);
        font.Click += new EventHandler(Font_Click);
    }
Пример #8
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     mainForm = new MainMenu();
     Application.Run(mainForm);
 }
Пример #9
0
 private void RulesBackButton_Click(object sender, EventArgs e)
 {
     this.Hide();
     var myForm = new MainMenu();
     myForm.Closed += (send, args) => this.Close();
     myForm.Show();
 }
Пример #10
0
        private void loginBT_Click(object sender, EventArgs e)
        {
            if (usernameTB.Text.Length > 0 && passwordTB.Text.Length > 0) // Έλεγχος
            {

                var userid = DB.DbQueries.AuthenticateAuthor(usernameTB.Text, passwordTB.Text);

                if (userid > 0)
                {
                    ActiveAuthor.SetCurrentAuthor(userid); // Θέτουμε τον ActiveAuthor
                    var mm = new MainMenu { Tag = this }; // Ανοίγουμε το Main Menu
                    mm.Show(this);
                    Hide();
                }
                else if (userid == 0)
                {
                    MessageBox.Show("Invalid Username/Password!",
                       "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

            }
            else
            {
                MessageBox.Show("You need to enter Username and Password!",
                    "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Пример #11
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            // 
            // appMenu
            // 
            UserControl_MainMenu = new MainMenu(this);
            /*
            this.appMenu = UserControl_MainMenu;
            this.appMenu.Location = new System.Drawing.Point(0, 0);
            this.appMenu.Name = "appMenu";
            this.appMenu.Size = new System.Drawing.Size(640, 23);
            this.appMenu.TabIndex = 0;
            this.Controls.Add(this.appMenu);
            */

            this.appMenu = UserControl_MainMenu;
            UserControl_MainMenu.Location = new System.Drawing.Point(0, 0);
            UserControl_MainMenu.Name = "UserControl_MainMenu";
            UserControl_MainMenu.Size = new System.Drawing.Size(640, 23);
            this.Controls.Add(UserControl_MainMenu);

            this.CenterToScreen();
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;            
            
       }
Пример #12
0
 private void debugLogin_Click(object sender, EventArgs e)
 {
     MainMenu mainPage = new MainMenu();
     mainPage.loginPage = this;
     mainPage.Show();
     Hide();
 }
Пример #13
0
    public MForm2()
    {
        Text = "Check menu item";

        sb = new StatusBar();
        sb.Parent = this;
        sb.Text = "Ready";

        MainMenu mainMenu = new MainMenu();

        MenuItem file = mainMenu.MenuItems.Add("&File");
        file.MenuItems.Add(new MenuItem("E&xit",
            new EventHandler(OnExit), Shortcut.CtrlX));

        MenuItem view = mainMenu.MenuItems.Add("&View");
        viewStatusBar = new MenuItem("View StatusBar");
        viewStatusBar.Checked = true;
        viewStatusBar.Click += new EventHandler(ToggleStatusBar);
        view.MenuItems.Add(viewStatusBar);

        Menu = mainMenu;
        Size = new Size(250, 200);

        CenterToScreen();
    }
Пример #14
0
 private void LoginButton_Click(object sender, EventArgs e)
 {
     try
     {
         var username = this.UsernameField.Text;
         var password = this.PasswordField.Text;
         Program.infoController.LoginPlayer(username, password);
         this.Hide();
         var mainPage = new MainMenu();
         mainPage.ShowDialog();
     }
     catch (FaultException<InvalidUsernameFault>)
     {
         MessageBox.Show("Invalid username.");
     }
     catch (FaultException<InvalidPasswordFault>)
     {
         MessageBox.Show("Invalid password.");
     }
     catch (CommunicationException)
     {
         MessageBox.Show("Unable to connect to server!\nPlease try again Later.");
     }
     catch (Exception ex)
     {
         MessageBox.Show("Unforseen error!, " + ex.Message);
     }
 }
Пример #15
0
	public MainForm ()
	{
		// 
		// _mainMenu
		// 
		_mainMenu = new MainMenu ();
		Menu = _mainMenu;
		// 
		// _menuFile
		// 
		_menuFile = new MenuItem ();
		_menuFile.Text = "&File";
		_mainMenu.MenuItems.Add (_menuFile);
		// 
		// _menuItemTab
		// 
		_menuItemTab = new MenuItem ();
		_menuItemTab.Text = "Two\tWords";
		_menuFile.MenuItems.Add (_menuItemTab);
		// 
		// _menuItemLong
		// 
		_menuItemLong = new MenuItem ();
		_menuItemLong.Text = "It's a long long road that leads us to nowhere";
		_menuFile.MenuItems.Add (_menuItemLong);
		// 
		// MainForm
		// 
		ClientSize = new Size (292, 100);
		Location = new Point (250, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #355196";
		Load += new EventHandler (MainForm_Load);
	}
Пример #16
0
    public MyForm()
    {
        // Set the form's title
        Text = "Image Viewer";

        // Set the form's size
        ClientSize = new Size (640, 480);

        // Create a menu
        MainMenu menu = new MainMenu ();
        MenuItem item = menu.MenuItems.Add ("&Options");
        item.Popup += new EventHandler (OnPopupOptionsMenu);
        item.MenuItems.Add (new MenuItem ("&Open...",
            new EventHandler (OnOpenImage), Shortcut.CtrlO));
        item.MenuItems.Add ("-");
        item.MenuItems.Add (_itemFitToWindow =
            new MenuItem ("Size Image to &Fit Window",
            new EventHandler (OnFitToWindow))
        );
        item.MenuItems.Add (_itemNativeSize =
            new MenuItem ("Show Image in &Native Size",
            new EventHandler (OnNativeSize))
        );
        item.MenuItems.Add ("-");
        item.MenuItems.Add (new MenuItem ("E&xit",
            new EventHandler (OnExit)));

        // Attach the menu to the form
        Menu = menu;
    }
Пример #17
0
	public MainForm ()
	{
		// 
		// _mainMenu
		// 
		_mainMenu = new MainMenu ();

		// 
		// _fileMenu
		// 
		_fileMenuItem = new MenuItem ();
		_fileMenuItem.Text = "&File";
		_mainMenu.MenuItems.Add (_fileMenuItem);
		// 
		// openToolStripMenuItem
		// 
		_openMenuItem = new MenuItem ();
		_openMenuItem.Text = "&Open";
		_openMenuItem.Click += new EventHandler (OpenMenuItem_Click);
		_fileMenuItem.MenuItems.Add (_openMenuItem);
		// 
		// MainForm
		// 
		ClientSize = new Size (400, 300);
		IsMdiContainer = true;
		Location = new Point (200, 100);
		Menu = _mainMenu;
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81651";
		Load += new EventHandler (MainForm_Load);
	}
Пример #18
0
        public static void Open(Pinball Pinball, Form Owner=null)
        {


            foreach (Form F in Application.OpenForms)
            {
                if (F.GetType() == typeof(MainMenu))
                {
                    F.BringToFront();
                    F.Focus();
                    return;
                }
            }

            MainMenu M = new MainMenu(Pinball);

            if (Owner == null)
            {
                M.Show();
            }
            else
            {
                M.StartPosition = FormStartPosition.CenterParent;
                M.Show(Owner);
            }
        }
Пример #19
0
 public TutorialButton(MainMenu m)
 {
     mainMenu = m;
     tutorialFrame = Frame.Create("Tutorial");
     tutorialFrame.AddButton(new TutorialBasicButton());
     tutorialFrame.AddButton(new TutorialSkillButton());
 }
Пример #20
0
 public CreateGameGUI(NetworkInterface nif, MainMenu m)
 {
     networkInterface = nif;
     networkInterface.AddMessageRecipient((INetworkMessage)this);
     mainMenu = m;
     SetUpScreen();
 }
Пример #21
0
 private void button1_Click(object sender, EventArgs e)
 {
     SqlConnection con = new SqlConnection("Data Source=DESKTOP-PDO5AM4\\SQLExpress;Initial Catalog=SoundSystem;Integrated Security=True");
     con.Open();
     SqlCommand cmd = new SqlCommand("Data_Entry", con);
     cmd.CommandType = CommandType.StoredProcedure;
     SqlParameter email = new SqlParameter("@mail", textBox1.Text);
     cmd.Parameters.Add(email);
     SqlParameter pass = new SqlParameter("@pass", textBox2.Text);
     cmd.Parameters.Add(pass);
     SqlDataReader reader = cmd.ExecuteReader();
     if (reader.Read())
     {
         string name = (string)reader[0];
         Globals.email = textBox1.Text;
         MessageBox.Show("Welcome " + name);
         this.Hide();
         MainMenu main = new MainMenu(name,textBox1.Text);
         main.ShowDialog();
         this.Close();
     }
     else
         MessageBox.Show("Invalid email or password!");
     reader.Close();
     con.Close();
 }
Пример #22
0
 public override void ManagerSetup()
 {
     _mnuMain = gobMenuManager.GetComponent<MainMenu>() as MainMenu;
     _mnuMain.RegisterManager(this);
     _txtPlay = gobPlayButton.transform.GetChild(0).gameObject.GetComponent<Text>();
     AdditionalSetup();
 }
Пример #23
0
 public static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     home = new MainMenu(args);
     Application.Run(home);
 }
Пример #24
0
 public void SetGameOverState()
 {
     var menu = new MainMenu(Resolve<Window>());
     menu.CurrentLevel = 1;
     menu.Clear();
     menu.SetGameOverState();
 }
Пример #25
0
        public Game(int width, int height)
            : base(width, height, GraphicsMode.Default, windowName, GameWindowFlags.Default, DisplayDevice.Default, 2, 1, GraphicsContextFlags.Default)
        {
            renderer = RendererFactory.Instance.CreateRenderer();
            Keyboard.KeyRepeat = false;
            GL.Enable(EnableCap.Texture2D);
            GL.Enable(EnableCap.Blend);
            GL.BlendFunc(BlendingFactorSrc.One, BlendingFactorDest.OneMinusSrcAlpha);

            m = new MainMenu(windowWidth, windowHeight);
            Keyboard.KeyDown += OnMenuControl;

            mapTextureList = new[]
                {
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources.empty)),
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources.brick)),
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources.concrete)),
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources.water)),
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources.forest)),
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources._base))
                };

            tankTextureList = new[]
                {
                    new Texture(new Bitmap(GraphicsLib.Properties.Resources.tankPlayerNormal))
                };

            WindowBorder = WindowBorder.Fixed;
            windowWidth = width;
            windowHeight = height;
            gameRenderer = new GameRenderer(windowWidth, windowHeight, mapTextureList, tankTextureList);
        }
Пример #26
0
 public void StartListening()
 {
     this.menu = GameObject.FindObjectOfType<MainMenu>();
     Debug.Assert(menu != null);
     if (this.udp == null) this.udp = new UdpClient(port);
     this.listen = true;
     Listen();
 }
Пример #27
0
        //Constructor
        public OrdersForm(MainMenu mainMenu)
        {
            this.mainMenu = mainMenu;
            this.StartPosition = FormStartPosition.CenterScreen;
            InitializeComponent();

            setup();
        }
Пример #28
0
        //Constructor
        public CustomerForm(MainMenu mainMenu)
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.mainMenu = mainMenu;

            setup();
        }
Пример #29
0
	void Awake()
    {
        text = GetComponent<Text>();
        text.text = Screen.currentResolution.width + "x" + Screen.currentResolution.height;
        mainMenu = GameObject.Find("Canvas").GetComponent<MainMenu>();

        resolutions = Screen.resolutions;
    }
Пример #30
0
		private MainMenu GiveMenuSimulatingGameLost(int level = 1) 
		{
			var menu = new MainMenu(Resolve<Window>());
			menu.CurrentLevel = level;
			menu.Clear();
			menu.SetGameOverState();
			return menu;
		}
Пример #31
0
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Varus")
            {
                return;
            }
            Bootstrap.Init(null);


            // Spell instances
            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1650, 4);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular);
            R = new Spell.Skillshot(SpellSlot.R, 1100, SkillShotType.Linear);

            //Menu Instances
            VarusMenu = MainMenu.AddMenu("xRP Varus", "xrpvarus");
            VarusMenu.AddGroupLabel("xRP-Varus");
            VarusMenu.AddSeparator();
            VarusMenu.AddGroupLabel("Made by: xRPdev");


            ComboMenu = VarusMenu.AddSubMenu("Combo", "sbtwcombo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
            ComboMenu.Add("usecomboe", new CheckBox("Use E"));
            ComboMenu.Add("usecombor", new CheckBox("R to Stun"));


            HarassMenu = VarusMenu.AddSubMenu("HarassMenu", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.AddSeparator();
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("waitAA", new CheckBox("wait for AA to finish", false));

            MiscMenu = VarusMenu.AddSubMenu("Misc", "misc");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("kse", new CheckBox("KS with E"));
            MiscMenu.Add("ksq", new CheckBox("KS with Q"));
            MiscMenu.AddSeparator();
            MiscMenu.Add("gapr", new CheckBox("R on Gapcloser"));

            DrawMenu = VarusMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawq", new CheckBox("Draw Q"));
            DrawMenu.Add("drawe", new CheckBox("Draw E"));
            DrawMenu.Add("drawr", new CheckBox("Draw R"));
            DrawMenu.Add("drawAA", new CheckBox("Draw AutoAttack"));

            LaneClearMenu = VarusMenu.AddSubMenu("Lane Clear", "laneclear");
            LaneClearMenu.AddGroupLabel("Lane Clear Settings");
            LaneClearMenu.AddSeparator();
            LaneClearMenu.Add("LCQ", new CheckBox("Use Q"));
            LaneClearMenu.Add("countM", new Slider("Min minions to Q", 3, 0, 6));
            LaneClearMenu.Add("LCE", new CheckBox("Use E"));
            LaneClearMenu.Add("countME", new Slider("Min minions to E", 3, 0, 6));



            Game.OnTick           += Tick;
            Drawing.OnDraw        += OnDraw;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
        }
Пример #32
0
 private void MenuButton_Click(object sender, EventArgs e)
 {
     MainMenu.Show(MenuButton, 0, MenuButton.Height);
 }
Пример #33
0
        public static void CreateMenu()
        {
            FirstMenu      = MainMenu.AddMenu("Ronin " + Player.Instance.ChampionName, Player.Instance.ChampionName.ToLower() + "hue");
            ComboMenu      = FirstMenu.AddSubMenu("♠ Combo", ComboMenuID);
            HarassMenu     = FirstMenu.AddSubMenu("♠ Harass", HarassMenuID);
            AutoHarassMenu = FirstMenu.AddSubMenu("♠ AutoHarass", AutoHarassMenuID);
            LaneClearMenu  = FirstMenu.AddSubMenu("♠ LaneClear", LaneClearMenuID);
            //LasthitMenu = FirstMenu.AddSubMenu("♠ LastHit", LastHitMenuID);
            JungleClearMenu = FirstMenu.AddSubMenu("♠ JungleClear", JungleClearMenuID);
            KillStealMenu   = FirstMenu.AddSubMenu("♠ KillSteal", KillStealMenuID);
            //ItemMenu = FirstMenu.AddSubMenu("♠ Items", ItemMenuID);
            MiscMenu     = FirstMenu.AddSubMenu("♠ Misc", MiscMenuID);
            DrawingsMenu = FirstMenu.AddSubMenu("♠ Drawings", DrawingsMenuID);


            ComboMenu.AddGroupLabel("ComboMenu");
            ComboMenu.AddGroupLabel("ONLY USE ON COMBO");
            ComboMenu.AddSeparator(15);
            // --------------------------------------------------------------COMBO LOGICS-------------------------------------------------------------- //
            ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            ///ComboMenu.CreateComboBox("Choose your Logic", "Logics", new List<string> { "Normal", "Normal 2", "Gank" });
            //ComboMenu.Add("ComboLogics", new ComboBox("Choose your Logics", 0, "1 - [ComboOne]", "2 - [ComboTwo]", "3 - [GankCombo]"));
            ComboMenu.AddLabel("ComboLogics");
            ComboMenu.CreateCheckBox("Normal", "cOne", false);
            ComboMenu.AddGroupLabel("Combo R - W - E - Q");
            ComboMenu.AddSeparator(15);
            ComboMenu.CreateCheckBox("Combo Two", "cTwo", false);
            ComboMenu.AddGroupLabel("Combo R - E - W - Q");
            ComboMenu.AddSeparator(15);
            ComboMenu.CreateCheckBox("Combo Three", "cThree", true);
            ComboMenu.AddGroupLabel("Combo R - Q - E");
            ComboMenu.AddSeparator(15);
            //ComboMenu.CreateCheckBox("Gank Combo", "gThree");
            //ComboMenu.AddSeparator(15);
            ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            ComboMenu.CreateCheckBox(" - Use Q", "qUse");
            ComboMenu.CreateCheckBox(" - Use W", "wUse");
            ComboMenu.CreateCheckBox(" - Use E", "eUse");
            ComboMenu.CreateCheckBox(" - Use R", "rUse");
            ComboMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            // --------------------------------------------------------------COMBO LOGICS-------------------------------------------------------------- //

            HarassMenu.AddGroupLabel("HarassMenu");
            HarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            HarassMenu.CreateCheckBox(" - Use Q", "qUse", true);
            HarassMenu.CreateCheckBox(" - Use E", "eUse");
            HarassMenu.AddGroupLabel("Settings");
            HarassMenu.CreateSlider("Mana must be higher than [{0}%] to use Harass spells", "manaSlider", 30);
            HarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            HarassMenu.AddSeparator();

            AutoHarassMenu.AddGroupLabel("AutoHarass");
            AutoHarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            AutoHarassMenu.CreateCheckBox(" - Use Q", "qUse");
            AutoHarassMenu.CreateCheckBox(" - Use E", "eUse");
            AutoHarassMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            AutoHarassMenu.AddGroupLabel("Settings");
            AutoHarassMenu.CreateKeyBind("Enable/Disable AutoHarass", "autoHarassKey", 'Z', 'U');
            AutoHarassMenu.CreateSlider("Mana must be lower than [{0}%] to use AutoHarass spells", "manaSlider", 80);

            LaneClearMenu.AddGroupLabel("LaneClear");
            LaneClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            LaneClearMenu.CreateCheckBox(" - Use Q", "qUse");
            LaneClearMenu.CreateCheckBox(" - Use E", "eUse", false);
            LaneClearMenu.AddGroupLabel("Settings");
            LaneClearMenu.CreateSlider("Mana must be higher than [{0}%] to use LaneClear spells", "manaSlider", 30);
            LaneClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            LaneClearMenu.AddSeparator();

            //LasthitMenu.AddGroupLabel("LastHit");
            //LasthitMenu.CreateCheckBox(" - Use Q", "qUse");
            //LasthitMenu.CreateCheckBox(" - Use W", "wUse");
            //LasthitMenu.CreateCheckBox(" - Use E", "eUse");
            //LasthitMenu.CreateCheckBox(" - Use R", "rUse");
            //LasthitMenu.AddGroupLabel("Settings");
            //LasthitMenu.CreateSlider("Mana must be lower than [{0}%] to use LastHit spells", "manaSlider", 30);
            //LasthitMenu.AddSeparator();

            JungleClearMenu.AddGroupLabel("JungleClear");
            JungleClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            JungleClearMenu.CreateCheckBox(" - Use Q", "qUse");
            JungleClearMenu.CreateCheckBox(" - Use W", "wUse");
            JungleClearMenu.CreateCheckBox(" - Use E", "eUse");
            JungleClearMenu.AddGroupLabel("Settings");
            JungleClearMenu.CreateSlider("Mana must be higher than [{0}%] to use JungleClear spells", "manaSlider", 20);
            JungleClearMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            JungleClearMenu.AddSeparator();

            KillStealMenu.AddGroupLabel("KS Farm");
            KillStealMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            KillStealMenu.CreateCheckBox(" - Use Q", "qUse", true);
            KillStealMenu.CreateCheckBox(" - Use E", "eUse", true);
            KillStealMenu.CreateCheckBox(" - Use R", "rUse", false);
            KillStealMenu.AddGroupLabel("Settings");
            KillStealMenu.CreateSlider("Mana must be higher than [{0}%] to use Killsteal spells", "manaSlider", 10);
            KillStealMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            KillStealMenu.AddSeparator();

            //ItemMenu.AddGroupLabel("Items");
            //ItemMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");

            //ItemMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            //ItemMenu.AddSeparator();

            MiscMenu.Add("UseWInt", new CheckBox("W Save Interrupt"));
            if (SpellsManager.Smite.IsLearned)
            {
                MiscMenu.AddLabel("Smite Spell");
                MiscMenu.CreateCheckBox("Use Smite to KS", "sks");
                MiscMenu.CreateCheckBox("Use Smite in JGL", "sjgl");
                MiscMenu.CreateCheckBox("Use Smite in Fight", "fjgl", false);
                MiscMenu.Add("smitekey", new KeyBind("Smite Activated", false, KeyBind.BindTypes.PressToggle, 'M'));
                MiscMenu.AddSeparator(15);
                MiscMenu.Add("vSmiteDrawSmiteStatus", new CheckBox("Draw Smite Status"));
                MiscMenu.Add("vSmiteDrawSmiteable", new CheckBox("Draw Smiteable Monsters"));
                MiscMenu.Add("vSmiteDrawRange", new CheckBox("Draw Smite Range"));
            }


            MiscMenu.AddGroupLabel("Skin Changer");

            var skinList = Mario_s_Lib.DataBases.Skins.SkinsDB.FirstOrDefault(list => list.Champ == Player.Instance.Hero);

            if (skinList != null)
            {
                MiscMenu.CreateComboBox("Choose the skin", "skinComboBox", skinList.Skins);
                MiscMenu.Get <ComboBox>("skinComboBox").OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                {
                    Player.Instance.SetSkinId(sender.CurrentValue);
                };
            }
            MiscMenu.AddLabel("▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬");
            MiscMenu.CreateCheckBox("- Use OP W Logic", "wLogic");
            MiscMenu.AddSeparator(10);

            DrawingsMenu.AddGroupLabel("Draw Settings");
            DrawingsMenu.CreateCheckBox(" - Draw Spell`s range only if they are ready.", "readyDraw");
            DrawingsMenu.CreateCheckBox(" - Draw damage indicator.", "damageDraw");
            DrawingsMenu.CreateCheckBox(" - Draw damage indicator percent.", "perDraw");
            DrawingsMenu.CreateCheckBox(" - Draw damage indicator statistics.", "statDraw", false);
            DrawingsMenu.AddGroupLabel("Spells");
            DrawingsMenu.CreateCheckBox(" - Draw Q.", "qDraw");
            DrawingsMenu.CreateCheckBox(" - Draw W.", "wDraw");
            DrawingsMenu.CreateCheckBox(" - Draw E.", "eDraw");
            DrawingsMenu.CreateCheckBox(" - Draw R.", "rDraw");
            DrawingsMenu.AddGroupLabel("Drawings Color");
            QColorSlide = new ColorSlide(DrawingsMenu, "qColor", Color.Red, "Q Color:");
            WColorSlide = new ColorSlide(DrawingsMenu, "wColor", Color.Purple, "W Color:");
            EColorSlide = new ColorSlide(DrawingsMenu, "eColor", Color.Orange, "E Color:");
            RColorSlide = new ColorSlide(DrawingsMenu, "rColor", Color.DeepPink, "R Color:");
            DamageIndicatorColorSlide = new ColorSlide(DrawingsMenu, "healthColor", Color.YellowGreen, "DamageIndicator Color:");
            DrawingsMenu.AddSeparator();
        }
Пример #34
0
 public void OnPrefabInit(MainMenu __instance)
 {
     this.menu = __instance;
     this.Button_ModOptions.onClick += new System.Action(ModOptions);
 }
Пример #35
0
 private static void MyCaitlynTheTrollPage()
 {
     _myMenu = MainMenu.AddMenu("Caitlyn The Troll", "main");
     _myMenu.AddLabel(" Caitlyn The Troll " + Program.Version);
     _myMenu.AddLabel(" Made by MeLoSenpai");
 }
Пример #36
0
        /// <summary>
        ///     This is where jeff creates his first Menu in a long time
        /// </summary>
        private void CreateMenu()
        {
            Menu = MainMenu.AddMenu("i滑板鞋:重生", "com.ikalista");

            comboMenu = Menu.AddSubMenu("连招", "com.ikalista.combo");
            comboMenu.Add("com.ikalista.combo.useQ", new CheckBox("使用 Q"));
            comboMenu.Add("com.ikalista.combo.useE", new CheckBox("使用 E"));
            comboMenu.Add("com.ikalista.combo.stacks", new Slider("X 层叠加使用 E", 10, 1, 20));
            comboMenu.Add("com.ikalista.combo.eLeaving", new CheckBox("使用 E 远离", true));
            comboMenu.Add("com.ikalista.combo.ePercent", new Slider("最低蓝量% 使用E 远离", 50, 10, 100));
            comboMenu.Add("com.ikalista.combo.saveMana", new CheckBox("为E 保留蓝"));
            comboMenu.Add("com.ikalista.combo.saveAlly", new CheckBox("为R 保留蓝"));
            comboMenu.Add("com.ikalista.combo.balista", new CheckBox("使用合体技", true));
            comboMenu.Add("com.ikalista.combo.autoE", new CheckBox("自动E 小兵 > 英雄"));
            comboMenu.Add("com.ikalista.combo.orbwalkMinions", new CheckBox("连招走砍时攻击小兵移动"));
            comboMenu.Add("com.ikalista.combo.allyPercent", new Slider("队友最低血量%", 20, 10));

            mixedMenu = Menu.AddSubMenu("混合", "com.ikalista.mixed");
            mixedMenu.Add("com.ikalista.mixed.useQ", new CheckBox("使用 Q"));
            mixedMenu.Add("com.ikalista.mixed.useE", new CheckBox("使用 E"));
            mixedMenu.Add("com.ikalista.mixed.stacks", new Slider("X 层叠加使用 E", 10, 1, 20));

            laneclearMenu = Menu.AddSubMenu("清线", "com.ikalista.laneclear");
            laneclearMenu.Add("com.ikalista.laneclear.useQ", new CheckBox("使用 Q"));
            laneclearMenu.Add("com.ikalista.laneclear.qMinions", new Slider("最低小兵数量 Q", 3, 1, 10));
            laneclearMenu.Add("com.ikalista.laneclear.useE", new CheckBox("使用 E"));
            laneclearMenu.Add("com.ikalista.laneclear.eMinions", new Slider("最低小兵数量 E", 5, 1, 10));
            laneclearMenu.Add("com.ikalista.laneclear.useEUnkillable", new CheckBox("E 不可击杀小兵"));
            laneclearMenu.Add("com.ikalista.laneclear.eSiege", new CheckBox("自动E炮车", true));

            jungleStealMenu = Menu.AddSubMenu("清野", "com.ikalista.jungleSteal");
            jungleStealMenu.Add("com.ikalista.jungleSteal.enabled", new CheckBox("使用 E 偷野怪", true));
            foreach (var minion in JungleMinions)
            {
                jungleStealMenu.Add(minion.Key, new CheckBox(minion.Value, true));
            }
            jungleStealMenu.Add("com.ikalista.jungleSteal.small", new CheckBox("杀死小型兵", true));
            jungleStealMenu.Add("com.ikalista.jungleSteal.large", new CheckBox("杀死大型兵", true));
            jungleStealMenu.Add("com.ikalista.jungleSteal.legendary", new CheckBox("杀死远古怪", true));

            miscMenu = Menu.AddSubMenu("杂项", "com.ikalista.Misc");
            miscMenu.Add("com.ikalista.misc.reduceE", new Slider("减少 E 伤害", 50, 0, 300));
            miscMenu.Add("com.ikalista.misc.forceW", new CheckBox("集火被W发现的目标"));
            if (Game.MapId != GameMapId.SummonersRift)
            {
                miscMenu.AddLabel("对不起,守卫控制只能用于召唤师峡谷.");
            }
            else
            {
                miscMenu.AddGroupLabel("守卫控制 (HellSing) :");
                miscMenu.Add("enabled", new CheckBox("开启"));
                miscMenu.Add("noMode", new CheckBox("只在无模式时使用"));
                miscMenu.Add("alert", new CheckBox("提示当守卫受到攻击"));
                miscMenu.Add("mana", new Slider("最低蓝量使用 W ({0}%)", 40));
                miscMenu.AddLabel("发送守卫至以下位置:");
                miscMenu.Add("baron", new CheckBox("男爵 (卡男爵)"));
                miscMenu.Add("dragon", new CheckBox("龙 (卡龙池)"));
                miscMenu.Add("mid", new CheckBox("中路草"));
                miscMenu.Add("blue", new CheckBox("蓝 Buff"));
                miscMenu.Add("red", new CheckBox("红 buff"));
                SentinelManager.RecalculateOpenLocations();

                miscMenu["baron"].Cast <CheckBox>().OnValueChange  += OnValueChange;
                miscMenu["dragon"].Cast <CheckBox>().OnValueChange += OnValueChange;
                miscMenu["mid"].Cast <CheckBox>().OnValueChange    += OnValueChange;
                miscMenu["blue"].Cast <CheckBox>().OnValueChange   += OnValueChange;
                miscMenu["red"].Cast <CheckBox>().OnValueChange    += OnValueChange;
            }

            drawingMenu = Menu.AddSubMenu("线圈", "com.ikalista.drawing");
            drawingMenu.Add("com.ikalista.drawing.spellRanges", new CheckBox("显示技能范围"));
            drawingMenu.Add("com.ikalista.drawing.eDamage", new CheckBox("显示 E 伤害"));       //.SetValue(new Circle(true, Color.DarkOliveGreen)));
            drawingMenu.Add("com.ikalista.drawing.eDamageJ", new CheckBox("显示 E 伤害 (野怪)")); //.SetValue(new Circle(true, Color.DarkOliveGreen)));
            drawingMenu.Add("com.ikalista.drawing.damagePercent", new CheckBox("显示伤害百分比")); //.SetValue(new Circle(true, Color.DarkOliveGreen)));
        }
Пример #37
0
 public OnClick(int index, MainMenu menu)
 {
     this.index = index;
     this.menu  = menu;
 }
Пример #38
0
        public static void Game_OnGameLoad()
        {
            _player = ObjectManager.Player;
            if (ObjectManager.Player.ChampionName != ChampionName)
            {
                return;
            }

            _q       = new Spell(SpellSlot.Q, 800);
            _w       = new Spell(SpellSlot.W, 825);
            _e       = new Spell(SpellSlot.E, 1100);
            _r       = new Spell(SpellSlot.R, 700);
            _passive = new Spell(SpellSlot.Q, 1470);

            _q.SetSkillshot(0.6f, 85f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            _e.SetSkillshot(0.5f, 70f, 1150f, false, SkillshotType.SkillshotLine);
            _r.SetSkillshot(0.5f, 500f, 20f, false, SkillshotType.SkillshotCircle);
            _passive.SetSkillshot(0.5f, 70f, 1400f, false, SkillshotType.SkillshotLine);

            //D Zyra
            _config = MainMenu.AddMenu("D-Zyra", "D-Zyra");

            //Combo usedfg, useignite
            comboMenu = _config.AddSubMenu("Combo", "Combo");
            comboMenu.Add("useQC", new CheckBox("Use Q"));
            comboMenu.Add("useW_Passive", new CheckBox("Plant on Q"));
            comboMenu.Add("useEC", new CheckBox("Use E"));
            comboMenu.Add("useWE_Passive", new CheckBox("Plant on E"));
            comboMenu.Add("use_ulti", new CheckBox("Use R If Killable"));
            comboMenu.Add("UseRE", new CheckBox("Use AutoR"));
            comboMenu.Add("MinTargets", new Slider("AutoR if Min Targets >=", 2, 1, 5));
            comboMenu.Add("useRaim", new KeyBind("Use R(Semi-Manual)", false, KeyBind.BindTypes.HoldActive, 'T'));

            //harass
            harassMenu = _config.AddSubMenu("Harass", "Harass");
            harassMenu.Add("useQH", new CheckBox("Use Q"));
            harassMenu.Add("useW_Passiveh", new CheckBox("Plant on Q"));
            harassMenu.Add("useEH", new CheckBox("Use E"));
            harassMenu.Add("useWE_Passiveh", new CheckBox("Plant on E"));
            harassMenu.Add("harassmana", new Slider("Minimum Mana% >", 35, 1));
            harassMenu.Add("harasstoggle", new KeyBind("AutoHarass (toggle)", false, KeyBind.BindTypes.PressToggle, 'G'));

            //Farm
            farmMenu = _config.AddSubMenu("Farm", "Farm");
            farmMenu.AddGroupLabel("Lane");
            farmMenu.Add("useQL", new CheckBox("Use Q"));
            farmMenu.Add("useW_Passivel", new CheckBox("Plant on Q"));
            farmMenu.Add("useEL", new CheckBox("Use E"));
            farmMenu.Add("useWE_Passivel", new CheckBox("Plant on E"));
            farmMenu.Add("lanemana", new Slider("Minimum Mana% >", 35, 1));

            farmMenu.AddGroupLabel("Jungle");
            farmMenu.Add("useQJ", new CheckBox("Use Q"));
            farmMenu.Add("useW_Passivej", new CheckBox("Plant on Q"));
            farmMenu.Add("useEJ", new CheckBox("Use E"));
            farmMenu.Add("useWE_Passivej", new CheckBox("Plant on E"));
            farmMenu.Add("junglemana", new Slider("Minimum Mana% >", 35, 1));

            //Misc
            miscMenu = _config.AddSubMenu("Misc", "Misc");
            miscMenu.Add("useQkill", new CheckBox("Q to Killsteal"));
            miscMenu.Add("useEkill", new CheckBox("E to Killsteal"));
            miscMenu.Add("Inter_E", new CheckBox("Interrupter E"));
            miscMenu.Add("Gap_E", new CheckBox("GapClosers E"));
            miscMenu.Add("usefrostq", new CheckBox("Frost Queen to GapClosers"));
            miscMenu.Add("support", new CheckBox("Support Mode", false));
            miscMenu.AddGroupLabel("E Hit Change");
            miscMenu.Add("Echange", new ComboBox("E Hit Change", 3, "Low", "Medium", "High", "Very High"));

            //Draw
            drawMenu = _config.AddSubMenu("Drawing", "Drawing");
            drawMenu.Add("DrawQ", new CheckBox("Draw Q", false));
            drawMenu.Add("DrawW", new CheckBox("Draw W", false));
            drawMenu.Add("DrawE", new CheckBox("Draw E", false));
            drawMenu.Add("DrawR", new CheckBox("Draw R", false));
            drawMenu.Add("damagetest", new CheckBox("Damage Text", false));
            drawMenu.Add("Drawharass", new CheckBox("Draw AutoHarass"));

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += Game_OnGameUpdate;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
        }
Пример #39
0
        static void Main(string[] args)
        {
            MainMenu menu = new MainMenu();

            menu.Menu();
        }
Пример #40
0
        private void BuildHeader()
        {
            header_table = new Table(2, 2, false);
            header_table.Show();
            primary_vbox.PackStart(header_table, false, false, 0);

            main_menu = new MainMenu();

            if (!PlatformDetection.IsMac && !PlatformDetection.IsMeeGo)
            {
                main_menu.Show();
                header_table.Attach(main_menu, 0, 1, 0, 1,
                                    AttachOptions.Expand | AttachOptions.Fill,
                                    AttachOptions.Shrink, 0, 0);
            }

            Alignment toolbar_alignment = new Alignment(0.0f, 0.0f, 1.0f, 1.0f);

            toolbar_alignment.TopPadding    = PlatformDetection.IsMeeGo ? 0u : 3u;
            toolbar_alignment.BottomPadding = PlatformDetection.IsMeeGo ? 0u : 3u;

            header_toolbar              = (Toolbar)ActionService.UIManager.GetWidget("/HeaderToolbar");
            header_toolbar.ShowArrow    = false;
            header_toolbar.ToolbarStyle = ToolbarStyle.BothHoriz;
            header_toolbar.Show();

            if (PlatformDetection.IsMeeGo)
            {
                header_toolbar.IconSize = IconSize.LargeToolbar;
                header_toolbar.Name     = "meego-toolbar";
            }

            toolbar_alignment.Add(header_toolbar);
            toolbar_alignment.Show();

            header_table.Attach(toolbar_alignment, 0, 2, 1, 2,
                                AttachOptions.Expand | AttachOptions.Fill,
                                AttachOptions.Shrink, 0, 0);

            var next_button = new NextButton(ActionService, PlatformDetection.IsMeeGo);

            next_button.Show();
            ActionService.PopulateToolbarPlaceholder(header_toolbar, "/HeaderToolbar/NextArrowButton", next_button);

            seek_slider = new ConnectedSeekSlider()
            {
                Resizable = ShowSeekSliderResizer.Get()
            };
            seek_slider.SeekSlider.WidthRequest   = SeekSliderWidth.Get();
            seek_slider.SeekSlider.SizeAllocated += (o, a) => {
                SeekSliderWidth.Set(seek_slider.SeekSlider.Allocation.Width);
            };
            seek_slider.ShowAll();
            ActionService.PopulateToolbarPlaceholder(header_toolbar, "/HeaderToolbar/SeekSlider", seek_slider);

            var track_info_display = new ClassicTrackInfoDisplay();

            track_info_display.Show();
            track_info_container = TrackInfoDisplay.GetEditable(track_info_display);
            track_info_container.Show();
            ActionService.PopulateToolbarPlaceholder(header_toolbar, "/HeaderToolbar/TrackInfoDisplay", track_info_container, true);

            if (PlatformDetection.IsMeeGo)
            {
                track_info_display.ArtworkSpacing = 5;
                seek_slider.LeftPadding           = 20;
                seek_slider.RightPadding          = 20;

                var menu        = (Menu)(ActionService.UIManager.GetWidget("/ToolbarMenu"));
                var menu_button = new Hyena.Widgets.MenuButton(new Image(Stock.Preferences, IconSize.LargeToolbar), menu, true);
                menu_button.Show();
                ActionService.PopulateToolbarPlaceholder(header_toolbar, "/HeaderToolbar/ToolbarMenuPlaceholder", menu_button);

                var close_button = new Button(Image.NewFromIconName("window-close", IconSize.LargeToolbar))
                {
                    TooltipText = Catalog.GetString("Close")
                };

                close_button.Clicked += (o, e) => {
                    if (ServiceManager.PlayerEngine.IsPlaying() &&
                        (ServiceManager.PlayerEngine.CurrentState != PlayerState.Paused) &&
                        ServiceManager.PlayerEngine.CurrentTrack.HasAttribute(TrackMediaAttributes.VideoStream))
                    {
                        ServiceManager.PlayerEngine.Pause();
                    }
                    Hide();
                };
                close_button.ShowAll();
                ActionService.PopulateToolbarPlaceholder(header_toolbar, "/HeaderToolbar/ClosePlaceholder", close_button);
            }
            else
            {
                var volume_button = new ConnectedVolumeButton();
                volume_button.Show();
                ActionService.PopulateToolbarPlaceholder(header_toolbar, "/HeaderToolbar/VolumeButton", volume_button);
            }
        }
Пример #41
0
        /// <summary>
        ///     This is where jeff creates his first Menu in a long time
        /// </summary>
        private void CreateMenu()
        {
            Menu = MainMenu.AddMenu("iKalista: Reborn", "com.ikalista");

            comboMenu = Menu.AddSubMenu("iKalista: Reborn - Combo", "com.ikalista.combo");
            comboMenu.Add("com.ikalista.combo.useQ", new CheckBox("Use Q", true));
            comboMenu.Add("com.ikalista.combo.useE", new CheckBox("Use E", true));
            comboMenu.Add("com.ikalista.combo.stacks", new Slider("Rend at X stacks", 10, 1, 20));
            comboMenu.Add("com.ikalista.combo.eLeaving", new CheckBox("Use E Leaving", true));
            comboMenu.Add("com.ikalista.combo.ePercent", new Slider("Min Percent for E Leaving", 50, 10, 100));
            comboMenu.Add("com.ikalista.combo.saveMana", new CheckBox("Save Mana for E", true));
            comboMenu.Add("com.ikalista.combo.saveAlly", new CheckBox("Save Ally With R", true));
            comboMenu.Add("com.ikalista.combo.balista", new CheckBox("Use Balista", true));
            comboMenu.Add("com.ikalista.combo.autoE", new CheckBox("Auto E Minion > Champion", true));
            comboMenu.Add("com.ikalista.combo.orbwalkMinions", new CheckBox("Orbwalk Minions in combo", true));
            comboMenu.Add("com.ikalista.combo.allyPercent", new Slider("Min Health % for Ally", 20, 10, 100));

            mixedMenu = Menu.AddSubMenu("iKalista: Reborn - Mixed", "com.ikalista.mixed");
            mixedMenu.Add("com.ikalista.mixed.useQ", new CheckBox("Use Q", true));
            mixedMenu.Add("com.ikalista.mixed.useE", new CheckBox("Use E", true));
            mixedMenu.Add("com.ikalista.mixed.stacks", new Slider("Rend at X stacks", 10, 1, 20));

            laneclearMenu = Menu.AddSubMenu("iKalista: Reborn - Laneclear", "com.ikalista.laneclear");
            laneclearMenu.Add("com.ikalista.laneclear.useQ", new CheckBox("Use Q", true));
            laneclearMenu.Add("com.ikalista.laneclear.qMinions", new Slider("Min Minions for Q", 3, 1, 10));
            laneclearMenu.Add("com.ikalista.laneclear.useE", new CheckBox("Use E", true));
            laneclearMenu.Add("com.ikalista.laneclear.eMinions", new Slider("Min Minions for E", 5, 1, 10));
            laneclearMenu.Add("com.ikalista.laneclear.useEUnkillable", new CheckBox("E Unkillable Minions", true));
            laneclearMenu.Add("com.ikalista.laneclear.eSiege", new CheckBox("Auto E Siege Minions", true));

            jungleStealMenu = Menu.AddSubMenu("iKalista: Reborn - Jungle Steal", "com.ikalista.jungleSteal");
            jungleStealMenu.Add("com.ikalista.jungleSteal.enabled", new CheckBox("Use Rend To Steal Jungle Minions", true));
            foreach (var minion in JungleMinions)
            {
                jungleStealMenu.Add(minion.Key, new CheckBox(minion.Value, true));
            }
            jungleStealMenu.Add("com.ikalista.jungleSteal.small", new CheckBox("Kill Small Minions", true));
            jungleStealMenu.Add("com.ikalista.jungleSteal.large", new CheckBox("Kill Large Minions", true));
            jungleStealMenu.Add("com.ikalista.jungleSteal.legendary", new CheckBox("Kill Legendary Minions", true));

            miscMenu = Menu.AddSubMenu("iKalista: Reborn - Misc", "com.ikalista.Misc");
            miscMenu.Add("com.ikalista.misc.reduceE", new Slider("Reduce Rend Damage", 90, 0, 300));
            miscMenu.Add("com.ikalista.misc.forceW", new CheckBox("Focus Enemy With W"));
            if (Game.MapId != GameMapId.SummonersRift)
            {
                miscMenu.AddLabel("Sentinel Manager is only on Summoners Rift, sorry.");
            }
            else
            {
                miscMenu.AddGroupLabel("Sentinel Manager (HellSing) :");
                miscMenu.Add("enabled", new CheckBox("Enabled"));
                miscMenu.Add("noMode", new CheckBox("Only use when no mode active"));
                miscMenu.Add("alert", new CheckBox("Alert when sentinel is taking damage"));
                miscMenu.Add("mana", new Slider("Minimum mana available when casting W ({0}%)", 40));
                miscMenu.AddLabel("Send to the following locations (no specific order):");
                miscMenu.Add("baron", new CheckBox("Baron (stuck bug usage)"));
                miscMenu.Add("dragon", new CheckBox("Dragon (stuck bug usage)"));
                miscMenu.Add("mid", new CheckBox("Mid lane brush"));
                miscMenu.Add("blue", new CheckBox("Blue buff"));
                miscMenu.Add("red", new CheckBox("Red buff"));
                SentinelManager.RecalculateOpenLocations();

                miscMenu["baron"].Cast <CheckBox>().OnValueChange  += OnValueChange;
                miscMenu["dragon"].Cast <CheckBox>().OnValueChange += OnValueChange;
                miscMenu["mid"].Cast <CheckBox>().OnValueChange    += OnValueChange;
                miscMenu["blue"].Cast <CheckBox>().OnValueChange   += OnValueChange;
                miscMenu["red"].Cast <CheckBox>().OnValueChange    += OnValueChange;
            }

            drawingMenu = Menu.AddSubMenu("iKalista: Reborn - Drawing", "com.ikalista.drawing");
            drawingMenu.Add("com.ikalista.drawing.spellRanges", new CheckBox("Draw Spell Ranges"));
            drawingMenu.Add("com.ikalista.drawing.eDamage", new CheckBox("Draw E Damage to Enemies"));         //.SetValue(new Circle(true, Color.DarkOliveGreen)));
            drawingMenu.Add("com.ikalista.drawing.eDamageJ", new CheckBox("Draw E Damage to Jungle Minions")); //.SetValue(new Circle(true, Color.DarkOliveGreen)));
            drawingMenu.Add("com.ikalista.drawing.damagePercent", new CheckBox("Draw Percent Damage"));        //.SetValue(new Circle(true, Color.DarkOliveGreen)));
        }
Пример #42
0
 private static void Mainmenu()
 {
     YMenu = MainMenu.AddMenu("Aka´s Draven", "akasdraven");
     YMenu.AddGroupLabel("Hosgeldiniz benim Draaaaaven Addonuma iyi eglenceler! :)");
 }
Пример #43
0
        public static void OnLoad(EventArgs args)
        {
            var champion = ObjectManager.Player.ChampionName;

            MenuIni = MainMenu.AddMenu("Auto Steal ", "Auto Steal");

            KillStealMenu = MenuIni.AddSubMenu("Kill Steal ", "Kill Steal");
            KillStealMenu.AddGroupLabel("Kill Çalma Ayarları");
            KillStealMenu.Add(
                champion + "EnableKST",
                new KeyBind("Kill çalma aktif tuşu", true, KeyBind.BindTypes.PressToggle, 'M'));
            KillStealMenu.Add(
                champion + "EnableKSA",
                new KeyBind("Kill çalma aktif", false, KeyBind.BindTypes.HoldActive));
            KillStealMenu.AddSeparator();
            KillStealMenu.AddGroupLabel(champion + " Kill Çalma Büyüleri");
            KillStealMenu.Add(champion + "AAC", new CheckBox("Kullan AA "));
            KillStealMenu.Add(champion + "QC", new CheckBox("Kullan Q "));
            KillStealMenu.Add(champion + "WC", new CheckBox("Kullan W "));
            KillStealMenu.Add(champion + "EC", new CheckBox("Kullan E "));
            KillStealMenu.Add(champion + "RC", new CheckBox("Kullan R "));
            KillStealMenu.AddSeparator();
            KillStealMenu.AddGroupLabel("Şampiyon Seç");
            foreach (var enemy in ObjectManager.Get <AIHeroClient>())
            {
                var cb = new CheckBox(enemy.BaseSkinName)
                {
                    CurrentValue = true
                };
                if (enemy.Team != Player.Instance.Team)
                {
                    KillStealMenu.Add(champion + "Steal" + enemy.BaseSkinName, cb);
                }
            }
            KillStealMenu.AddGroupLabel(champion + " Ek Ayarlar");
            KillStealMenu.AddSeparator();
            KillStealMenu.Add(champion + "all", new CheckBox("Tüm hazır büyülerin hasarını hesapla", false));

            JungleStealMenu = MenuIni.AddSubMenu("Jungle Steal ", "Jungle Steal");
            JungleStealMenu.AddGroupLabel("Orman Çalma Ayarları");
            JungleStealMenu.Add(
                champion + "EnableJST",
                new KeyBind("Orman Çalma Aktif Tuşu", true, KeyBind.BindTypes.PressToggle, 'M'));
            JungleStealMenu.Add(
                champion + "EnableJSA",
                new KeyBind("Orman Çalma Aktif", false, KeyBind.BindTypes.HoldActive));
            JungleStealMenu.AddSeparator();
            JungleStealMenu.AddGroupLabel(champion + " Orman Çalma Büyüleri");
            JungleStealMenu.Add(champion + "AAJ", new CheckBox("Kullan AA "));
            JungleStealMenu.Add(champion + "QJ", new CheckBox("Kullan Q "));
            JungleStealMenu.Add(champion + "WJ", new CheckBox("Kullan W "));
            JungleStealMenu.Add(champion + "EJ", new CheckBox("Kullan E "));
            JungleStealMenu.Add(champion + "RJ", new CheckBox("Kullan R "));
            JungleStealMenu.AddGroupLabel(champion + " Ek Ayarlar");
            JungleStealMenu.AddSeparator();
            JungleStealMenu.Add(champion + "all", new CheckBox("Tüm hazır büyülerin hasarını hesapla", false));
            JungleStealMenu.AddSeparator();
            JungleStealMenu.AddGroupLabel("Orman Canavalarını seç");
            JungleStealMenu.Add(champion + "blue", new CheckBox("Çal Mavi "));
            JungleStealMenu.Add(champion + "red", new CheckBox("Çal Kırmızı "));
            JungleStealMenu.Add(champion + "baron", new CheckBox("Çal Baron "));
            JungleStealMenu.Add(champion + "drake", new CheckBox("Çal Ejder "));
            JungleStealMenu.Add(champion + "gromp", new CheckBox("Çal Kurbağa "));
            JungleStealMenu.Add(champion + "krug", new CheckBox("Çal Golem "));
            JungleStealMenu.Add(champion + "razorbeak", new CheckBox("Çal Sivrigagalar "));
            JungleStealMenu.Add(champion + "crab", new CheckBox("Çal YampiriYengeç "));
            JungleStealMenu.Add(champion + "murkwolf", new CheckBox("Çal Alacakurtlar "));

            Special = MenuIni.AddSubMenu("Special Stealer ", "Special Stealer");
            Special.AddGroupLabel("Özel çalma ayarları");
            var asc = Special.Add(champion + "Ascension", new CheckBox("Yükseliş mobları çalma(baska harita)"));

            if (Game.Type != GameType.Ascension)
            {
                Special.AddLabel("Bu oyun modu özel :(");
                asc.IsVisible = false;
            }

            SpellManager.Initialize();
            SpellLibrary.Initialize();
            Game.OnUpdate += OnUpdate;
        }
Пример #44
0
        protected override void CreateMenu()
        {
            try
            {
                #region Mainmenu
                Menu = MainMenu.AddMenu("UB" + player.Hero, "UBAddons.MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto");
                Menu.AddGroupLabel("General Setting");
                Menu.CreatSlotHitChance(SpellSlot.Q);
                Menu.Add("UBAddons.Anivia.E.Auto", new CheckBox("Auto E if x2"));
                Menu.Add("UBAddons.Anivia.R.Auto", new CheckBox("Auto Turn off R"));
                #endregion

                #region Combo
                ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "UB" + player.Hero + " - Settings your combo below");
                {
                    ComboMenu.CreatSlotCheckBox(SpellSlot.Q);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.W);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.E);
                    ComboMenu.Add("UBAddons.Anivia.E.Only.Iced", new CheckBox("Only E if x2"));
                    ComboMenu.CreatSlotCheckBox(SpellSlot.R);
                }
                #endregion

                #region Harass
                HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "UB" + player.Hero + " - Settings your harass below");
                {
                    HarassMenu.CreatSlotCheckBox(SpellSlot.Q);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.W);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.E);
                    HarassMenu.Add("UBAddons.Anivia.E.Only.Iced", new CheckBox("Only E if x2"));
                    HarassMenu.CreatSlotCheckBox(SpellSlot.R);
                    HarassMenu.CreatManaLimit();
                    HarassMenu.CreatHarassKeyBind();
                }
                #endregion

                #region LaneClear
                LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "UB" + player.Hero + " - Settings your laneclear below");
                {
                    LaneClearMenu.CreatLaneClearOpening();
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    LaneClearMenu.CreatSlotHitSlider(SpellSlot.Q, 5, 1, 10);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.R, null, false);
                    LaneClearMenu.CreatSlotHitSlider(SpellSlot.R, 5, 1, 10);
                    LaneClearMenu.CreatManaLimit();
                }
                #endregion

                #region JungleClear
                JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "UB" + player.Hero + " - Settings your jungleclear below");
                {
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.E);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.R);
                    JungleClearMenu.CreatManaLimit();
                }
                #endregion

                #region Lasthit
                LasthitMenu = Menu.AddSubMenu("Lasthit", "UBAddons.Lasthit" + player.Hero, "UB" + player.Hero + " - Settings your unkillable minion below");
                {
                    LasthitMenu.CreatLasthitOpening();
                    LasthitMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    LasthitMenu.CreatSlotCheckBox(SpellSlot.E);
                    LasthitMenu.CreatSlotCheckBox(SpellSlot.R);
                    LasthitMenu.CreatManaLimit();
                }
                #endregion

                #region Misc
                MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "UB" + player.Hero + " - Settings your misc below");
                {
                    MiscMenu.AddGroupLabel("Anti Gapcloser settings");
                    MiscMenu.CreatMiscGapCloser();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "GapCloser");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "GapCloser");
                    MiscMenu.AddGroupLabel("Interrupter settings");
                    MiscMenu.CreatDangerValueBox();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "Interrupter");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "Interrupter");
                    MiscMenu.AddGroupLabel("Killsteal settings");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.E, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.R, "KillSteal");
                }
                #endregion

                #region Drawings
                DrawMenu = Menu.AddSubMenu("Drawings");
                {
                    DrawMenu.CreatDrawingOpening();
                    DrawMenu.CreatColorPicker(SpellSlot.Q);
                    DrawMenu.CreatColorPicker(SpellSlot.W);
                    DrawMenu.CreatColorPicker(SpellSlot.E);
                    DrawMenu.CreatColorPicker(SpellSlot.R);
                    DrawMenu.CreatColorPicker(SpellSlot.Unknown);
                }
                #endregion

                DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg);
            }
            catch (Exception exception)
            {
                Debug.Print(exception.ToString(), Console_Message.Error);
            }
        }
Пример #45
0
        private static void GenerateQuiz()
        {
            MainMenu mmChoice = MainMenu.UNASSIGNED;

            if (isQuizStarted != false)
            {
                sInput = "6";
            }
            else
            {
                sInput = Console.ReadLine();
            }

            if (Enum.TryParse(sInput, out mmChoice))
            {
                switch (mmChoice)
                {
                case MainMenu.LOADQUIZ:
                    Console.Clear();
                    Console.WriteLine("Set the path to the question file");
                    quizFilePath = Console.ReadLine();
                    FileProcessor.ReadFile();
                    Console.Clear();
                    ShowMenu();
                    break;

                case MainMenu.SETNUMQUESTIONS:
                    SetNumQuestion();
                    break;

                case MainMenu.STARTQUIZ:
                    stopWatch.Start();
                    if (QuizSettings.setNumQuestions == 0)
                    {
                        SetNumQuestion();
                    }

                    if (QuizSettings.SetPlayerName == null)
                    {
                        SetPlayerName();
                    }

                    StartQuiz();

                    break;

                case MainMenu.QUIT:
                    Console.WriteLine("Goodbye!");
                    Environment.Exit(0);

                    break;

                case MainMenu.LOADSCORES:
                    if (File.Exists(QuizSettings.GlobalLogPath + QuizSettings.LogName))
                    {
                        ReadLogFile();
                    }
                    else
                    {
                        Console.WriteLine("There is no log file. Play a few rounds to get on generated");
                        System.Threading.Thread.Sleep(2000);
                        ShowMenu();
                    }

                    break;

                case MainMenu.SETTIMER:
                    var valid = false;

                    while (!valid)
                    {
                        Console.WriteLine("Set the number of seconds for the quiz.\nTo have unlimited time put in 0 \nRemember 1 minute = 60 seconds.");
                        var val = Console.ReadLine();
                        valid = !string.IsNullOrWhiteSpace(val) &&
                                val.All(c => c >= '0' && c <= '9');
                        if (valid == true)
                        {
                            QuizSettings.SetTimeLimit = Int32.Parse(val);
                            Console.WriteLine("The timer is set for: " + val);
                            System.Threading.Thread.Sleep(2500);
                            Console.Clear();
                            ShowMenu();
                        }
                        if (!valid)
                        {
                            Console.WriteLine("Please enter a valid a number!");
                        }
                    }


                    break;

                case MainMenu.SETLOGLOCATION:
                    Console.Clear();
                    Console.WriteLine("Set the path to the log file");
                    QuizSettings.GlobalLogPath = Console.ReadLine();
                    SetLogPath();

                    break;

                case MainMenu.UNASSIGNED:
                    break;
                }
            }
        }
Пример #46
0
        public static void OnLoad()
        {
            Q  = SpellManager.Q;
            W  = SpellManager.W;
            E  = SpellManager.E;
            R  = SpellManager.R;
            ER = SpellManager.ER;

            menu = MainMenu.AddMenu("PopBlanc", "PopBlanc");

            qMenu = menu.AddSubMenu("Q");
            qMenu.Add("ComboQ", new CheckBox("Use in Combo"));
            qMenu.Add("HarassQ", new CheckBox("Use in Harass"));
            qMenu.Add("LastHitQ", new CheckBox("Use in Last Hit"));
            qMenu.Add("LaneClearQ", new CheckBox("Use in Lane Clear"));
            qMenu.Add("FarmQMana", new Slider("Farm Minimum Mana", 40));

            wMenu = menu.AddSubMenu("W");
            wMenu.Add("ComboW", new CheckBox("Use in Combo"));
            wMenu.Add("HarassW", new CheckBox("Use in Harass"));
            wMenu.Add("LaneClearW", new CheckBox("Use in Lane Clear"));
            wMenu.Add("FarmWMinions", new Slider("Farm Minimum Minions", 3, 1, 5));
            wMenu.Add("WBackHarass", new CheckBox("Harass W Back"));
            wMenu.Add("WBackFarm", new CheckBox("Farm W Back"));
            wMenu.Add("WBackClick", new CheckBox("Left Click W Back", false));

            eMenu = menu.AddSubMenu("E");
            eMenu.Add("ComboE", new CheckBox("Use in Combo"));
            eMenu.Add("HarassE", new CheckBox("Use in Harass"));
            eMenu.Add("ERangeDecrease", new Slider("Decrease Range"));
            E.Range = ERange - getSliderItem(eMenu, "ERangeDecrease");
            eMenu.Add("ComboEFirst", new CheckBox("Combo E First", false));
            eMenu.Add("AntiGapcloser", new CheckBox("AntiGapCloser with E"));
            eMenu.Add("AutoEImmobile", new CheckBox("Auto E Immobile Targets"));

            rMenu = menu.AddSubMenu("R");
            rMenu.Add("ComboR", new CheckBox("Use in Combo"));
            rMenu.Add("HarassR", new CheckBox("Use in Harass"));
            rMenu.Add("LaneClearR", new CheckBox("Use in LaneClear", false));
            rMenu.Add("AntiGapcloserR", new CheckBox("AntiGapCloser with R(E)", false));
            rMenu.Add("RBackClick", new CheckBox("Left Click R(W) Back", false));

            comboMenu = menu.AddSubMenu("Combo", "Other Combos");
            comboMenu.AddGroupLabel("2 Chainz (E > R(E))");
            comboMenu.Add("2Key", new KeyBind("Combo Key", false, KeyBind.BindTypes.HoldActive, 'H'));
            comboMenu.Add("2Selected", new CheckBox("Selected Target Only", false));
            comboMenu.Add("2W", new CheckBox("Use W if out of range"));
            comboMenu.AddSeparator();

            comboMenu.AddGroupLabel("AOECombo (W > R(W))");
            comboMenu.Add("AOECombo", new KeyBind("Combo Key", false, KeyBind.BindTypes.HoldActive, 'N'));
            comboMenu.Add("AOEW", new CheckBox("Use W"));
            comboMenu.Add("GapcloseW", new CheckBox("Use W to Gapclose"));
            comboMenu.Add("AOER", new CheckBox("Use R(W)"));
            comboMenu.Add("AOEEnemies", new Slider("Minimum Enemies", 2, 1, 5));
            comboMenu.AddSeparator();
            comboMenu.Add("ComboOrbwalk", new CheckBox("Orbwalk when Comboing"));

            ksMenu = menu.AddSubMenu("Killsteal");
            ksMenu.Add("SmartKS", new CheckBox("Smart Killsteal"));
            ksMenu.Add("KSMana", new Slider("Minimum Mana", 30));
            ksMenu.Add("KSHealth", new Slider("Minimum Health to W", 40));
            ksMenu.Add("KSGapclose", new CheckBox("Use W to Gapclose", false));
            ksMenu.Add("KSEnemies", new Slider("Maximum Enemies to W", 3, 1, 4));

            fleeMenu = menu.AddSubMenu("Flee", "Flee");
            fleeMenu.Add("Flee", new KeyBind("Flee", false, KeyBind.BindTypes.HoldActive, 'T'));
            fleeMenu.Add("FleeW", new CheckBox("Use W"));
            fleeMenu.Add("FleeRW", new CheckBox("Use R(W)"));
            fleeMenu.Add("FleeMove", new CheckBox("Move to Cursor Position"));

            drawMenu = menu.AddSubMenu("Drawings");
            drawMenu.Add("Draw0", new CheckBox("Draw Q Range"));
            drawMenu.Add("Draw1", new CheckBox("Draw W Range"));
            drawMenu.Add("Draw2", new CheckBox("Draw E Range"));
            drawMenu.Add("DrawCD", new CheckBox("Draw on CD"));
            drawMenu.Add("DrawWBack", new CheckBox("Draw W Back Position"));
            drawMenu.AddSeparator();

            SpellManager.Initialize(menu);
            WBackPosition.Initialize();

            Drawing.OnDraw += Drawing_OnDraw;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Game.OnWndProc += Game_OnWndProc;
            Game.OnUpdate  += Game_OnUpdate;
        }
Пример #47
0
        public static void Init()
        {
            var AddonName = Champion.AddonName;
            var Author    = Champion.Author;

            AddonMenu = MainMenu.AddMenu(AddonName, AddonName + " by " + Author + " v1.1");
            AddonMenu.AddLabel(AddonName + " made by " + Author);

            SubMenu["Prediction"] = AddonMenu.AddSubMenu("Prediction", "Prediction");
            SubMenu["Prediction"].AddGroupLabel("Q Settings");
            SubMenu["Prediction"].Add("QCombo", new Slider("Combo HitChancePercent", 85, 0, 100));
            SubMenu["Prediction"].Add("QHarass", new Slider("Harass HitChancePercent", 91, 0, 100));

            //Combo
            SubMenu["Combo"] = AddonMenu.AddSubMenu("Combo", "Combo");
            SubMenu["Combo"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["Combo"].Add("W", new CheckBox("Use W to GapClose", true));
            SubMenu["Combo"].Add("E", new CheckBox("Use E", true));
            SubMenu["Combo"].Add("Smite", new CheckBox("Use Smite", false));
            SubMenu["Combo"].Add("Items", new CheckBox("Use Offensive Items", true));
            var switcher = SubMenu["Combo"].Add("Switcher", new KeyBind("Combo Switcher", false, KeyBind.BindTypes.HoldActive, (uint)'K'));

            switcher.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
            {
                if (args.NewValue == true)
                {
                    var cast = GetSubMenu("Combo")["Mode"].Cast <Slider>();
                    if (cast.CurrentValue == cast.MaxValue)
                    {
                        cast.CurrentValue = 0;
                    }
                    else
                    {
                        cast.CurrentValue++;
                    }
                }
            };
            SubMenu["Combo"].AddStringList("Mode", "Combo Mode", new[] { "Normal Combo", "Star Combo", "Gank Combo" }, 0);
            SubMenu["Combo"]["Mode"].Cast <Slider>().CurrentValue = 0; //E L I M I N A R

            SubMenu["Combo"].AddGroupLabel("Normal Combo");
            SubMenu["Combo"].Add("Normal.R", new CheckBox("Use R on Target", false));
            SubMenu["Combo"].Add("Normal.Ward", new CheckBox("Use Ward", false));
            SubMenu["Combo"].Add("Normal.Stack", new Slider("Use X passive before using another spell", 1, 0, 2));
            SubMenu["Combo"].Add("Normal.W", new Slider("Use W if HealthPercent", 25, 0, 100));
            SubMenu["Combo"].Add("Normal.R.Hit", new Slider("Use R if Hit >=", 3, 1, 5));

            SubMenu["Combo"].AddSeparator();

            SubMenu["Combo"].AddGroupLabel("Star Combo");
            SubMenu["Combo"].Add("Star.Ward", new CheckBox("Use Ward", true));
            SubMenu["Combo"].Add("Star.Stack", new Slider("Use x passive before using another spell", 0, 0, 2));
            SubMenu["Combo"].AddStringList("Star.Mode", "Star Combo Mode", new[] { "Q1 R Q2", "R Q1 Q2" }, 0);

            SubMenu["Combo"].AddSeparator();

            SubMenu["Combo"].AddGroupLabel("Gank Combo");
            SubMenu["Combo"].Add("Gank.R", new CheckBox("Use R", true));
            SubMenu["Combo"].Add("Gank.Ward", new CheckBox("Use Ward", true));
            SubMenu["Combo"].Add("Gank.Stack", new Slider("Use x passive before using another spell", 1, 0, 2));

            //Insec
            SubMenu["Insec"] = AddonMenu.AddSubMenu("Insec", "Insec");
            SubMenu["Insec"].Add("Key", new KeyBind("Insec Key (Make sure that this key is unique)", false, KeyBind.BindTypes.HoldActive, (uint)'R'));
            SubMenu["Insec"].Add("Object", new CheckBox("Use q on enemy hero/minion if can't hit target", true));
            SubMenu["Insec"].AddSeparator(0);
            SubMenu["Insec"].Add("Flash", new CheckBox("Use flash to return", false));
            SubMenu["Insec"].AddStringList("Priority", "Priority", new[] { "WardJump > Flash", "Flash > WardJump" }, 0);
            SubMenu["Insec"].AddStringList("Position", "Insec End Position", new[] { "Ally Selected > Position Selected > Turret > Ally Near > Current Position", "Mouse Position", "Current Position" }, 0);
            SubMenu["Insec"].Add("DistanceBetweenPercent", new Slider("% of distance between ward and target", 20, 0, 100));
            SubMenu["Insec"].AddGroupLabel("Tips");
            SubMenu["Insec"].AddLabel("To select an ally just use left click on that ally.");
            SubMenu["Insec"].AddLabel("To select a target just use left click on that target.");
            SubMenu["Insec"].AddLabel("To select a position just use left click on that position.");

            SubMenu["Harass"] = AddonMenu.AddSubMenu("Harass", "Harass");
            SubMenu["Harass"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["Harass"].Add("W", new CheckBox("Use W to escape", true));
            SubMenu["Harass"].Add("E", new CheckBox("Use E", true));

            SubMenu["Smite"] = AddonMenu.AddSubMenu("Smite", "Smite");
            SubMenu["Smite"].Add("Q.Combo", new CheckBox("Use Q - Smite in Combo", true));
            SubMenu["Smite"].Add("Q.Harass", new CheckBox("Use Q - Smite in Harass", false));
            SubMenu["Smite"].Add("Q.Insec", new CheckBox("Use Q - Smite in Insec", true));
            SubMenu["Smite"].Add("DragonSteal", new CheckBox("Use Smite on Dragon/Baron", true));
            //SubMenu["Smite"].Add("KillSteal", new CheckBox("Use Smite to KillSteal", true));

            SubMenu["JungleClear"] = AddonMenu.AddSubMenu("JungleClear", "JungleClear");
            SubMenu["JungleClear"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["JungleClear"].Add("W", new CheckBox("Use W", true));
            SubMenu["JungleClear"].Add("E", new CheckBox("Use E", true));
            SubMenu["JungleClear"].Add("Smite", new CheckBox("Use Smite on Dragon/Baron", true));

            SubMenu["KillSteal"] = AddonMenu.AddSubMenu("KillSteal", "KillSteal");
            SubMenu["KillSteal"].Add("Ward", new CheckBox("Use Ward to GapClose", false));
            SubMenu["KillSteal"].Add("Q", new CheckBox("Use Q", false));
            SubMenu["KillSteal"].Add("W", new CheckBox("Use W to GapClose", true));
            SubMenu["KillSteal"].Add("E", new CheckBox("Use E", true));
            SubMenu["KillSteal"].Add("R", new CheckBox("Use R", false));
            SubMenu["KillSteal"].Add("Ignite", new CheckBox("Use Ignite", true));
            SubMenu["KillSteal"].Add("Smite", new CheckBox("Use Smite", true));

            SubMenu["Drawings"] = AddonMenu.AddSubMenu("Drawings", "Drawings");
            SubMenu["Drawings"].Add("Disable", new CheckBox("Disable all drawings", false));
            SubMenu["Drawings"].Add("Q", new CheckBox("Use Q", true));
            SubMenu["Drawings"].Add("W", new CheckBox("Use W", true));
            SubMenu["Drawings"].Add("E", new CheckBox("Use E", false));
            SubMenu["Drawings"].Add("R", new CheckBox("Use R", false));
            SubMenu["Drawings"].Add("Combo.Mode", new CheckBox("Draw text of current mode", true));
            SubMenu["Drawings"].Add("Insec.Line", new CheckBox("Draw line of insec", true));
            SubMenu["Drawings"].Add("Target", new CheckBox("Draw circle on target", true));

            SubMenu["Flee"] = AddonMenu.AddSubMenu("Flee", "Flee");
            SubMenu["Flee"].Add("WardJump", new CheckBox("Use WardJump", true));
            SubMenu["Flee"].Add("W", new CheckBox("Use W on objects near mouse", true));

            SubMenu["Misc"] = AddonMenu.AddSubMenu("Misc", "Misc");
            SubMenu["Misc"].Add("Interrupter", new CheckBox("Use R to interrupt channeling spells", true));
            SubMenu["Misc"].Add("Overkill", new Slider("Overkill % for damage prediction", 10, 0, 100));
            SubMenu["Misc"].Add("R.Hit", new Slider("Use R if Hit >=", 3, 1, 5));
        }
Пример #48
0
        private void CreateMenu()
        {
            this.Menu = MainMenu.AddMenu("MoonDraven", "cmMoonDraven");

            // Combo
            comboMenu = Menu.AddSubMenu("Combo", "combo");
            comboMenu.Add("UseQCombo", new CheckBox("Use Q"));
            comboMenu.Add("UseWCombo", new CheckBox("Use W"));
            comboMenu.Add("UseECombo", new CheckBox("Use E"));
            comboMenu.Add("UseRCombo", new CheckBox("Use R"));


            // Harass
            harassMenu = Menu.AddSubMenu("Harass", "harass");
            harassMenu.Add("UseEHarass", new CheckBox("Use E"));
            harassMenu.Add("UseHarassToggle", new CheckBox("Harass! (Toggle)"));


            // Lane Clear
            laneClearMenu = Menu.AddSubMenu("Wave Clear", "waveclear");
            laneClearMenu.Add("UseQWaveClear", new CheckBox("Use Q"));
            laneClearMenu.Add("UseWWaveClear", new CheckBox("Use W"));
            laneClearMenu.Add("UseEWaveClear", new CheckBox("Use E", false));
            laneClearMenu.Add("WaveClearManaPercent", new Slider("Mana Percent", 50));


            // Axe Menu
            axeMenu = Menu.AddSubMenu("Axe Settings", "axeSetting");

            /*axeMenu.AddItem(
             *  new MenuItem("AxeMode", "Catch Axe on Mode:").SetValue(
             *      new StringList(new[] { "Combo", "Any", "Always" }, 2)));*/
            axeMenu.AddLabel("AxeMode");
            var AxeMode      = axeMenu.Add("AxeMode", new Slider("Catch Axe on Mode:", 2, 0, 2));
            var modeArrayAxe = new[] { "Combo", "Any", "Always" };

            AxeMode.DisplayName    = modeArrayAxe[AxeMode.CurrentValue];
            AxeMode.OnValueChange +=
                delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = modeArrayAxe[changeArgs.NewValue];
            };
            axeMenu.Add("CatchAxeRange", new Slider("Catch Axe Range", 800, 120, 1500));
            axeMenu.Add("MaxAxes", new Slider("Maximum Axes", 2, 1, 3));
            axeMenu.Add("UseWForQ", new CheckBox("Use W if Axe too far"));
            axeMenu.Add("DontCatchUnderTurret", new CheckBox("Don't Catch Axe Under Turret"));


            // Drawing
            drawMenu = Menu.AddSubMenu("Drawing", "draw");
            drawMenu.Add("DrawE", new CheckBox("Draw E"));
            drawMenu.Add("DrawAxeLocation", new CheckBox("Draw Axe Location"));
            drawMenu.Add("DrawAxeRange", new CheckBox("Draw Axe Catch Range"));


            // Misc Menu
            miscMenu = Menu.AddSubMenu("Misc", "misc");
            miscMenu.Add("UseWSetting", new CheckBox("Use W Instantly(When Available)", false));
            miscMenu.Add("UseEGapcloser", new CheckBox("Use E on Gapcloser"));
            miscMenu.Add("UseEInterrupt", new CheckBox("Use E to Interrupt"));
            miscMenu.Add("UseWManaPercent", new Slider("Use W Mana Percent", 50));
            miscMenu.Add("UseWSlow", new CheckBox("Use W if Slowed"));
        }
Пример #49
0
        public CharacterSelectionMenuEventWiring(CharacterSelectionMenu selectionMenu, MainMenu mainMenu, CharacterList characterList)
        {
            selectionMenu.OnEscape += sender =>
            {
                mainMenu.Open();
            };

            selectionMenu.CharacterSelected += (sender, character) =>
            {
                characterList.SetActiveCharacter(character);
                mainMenu.SetDisplayCharacter(character);
                mainMenu.Open();
                sender.Close();
            };
        }
Пример #50
0
        static void OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Renekton"))
            {
                return;
            }
            Chat.Print("Renekton7 Loaded!", Color.Orange);
            Bootstrap.Init(null);
            Q       = new Spell.Active(SpellSlot.Q, 325);
            W       = new Spell.Active(SpellSlot.W);
            E       = new Spell.Skillshot(SpellSlot.E, 450, SkillShotType.Linear);
            R       = new Spell.Active(SpellSlot.R);
            Ignite  = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            Tiamat  = new Item(ItemId.Tiamat_Melee_Only, 400);
            Hydra   = new Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
            Titanic = new Item(ItemId.Titanic_Hydra, Player.Instance.GetAutoAttackRange());

            Menu = MainMenu.AddMenu("Renekton7", "Renekton");
            Menu.AddSeparator();
            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("ComboQ", new CheckBox("Use [Q] Combo"));
            ComboMenu.Add("ComboW", new CheckBox("Use [W] Reset AA", false));
            ComboMenu.Add("FastW", new CheckBox("Use [W] Fast"));
            ComboMenu.AddGroupLabel("Combo [E] Settings");
            ComboMenu.Add("ComboE", new CheckBox("Use [E] Combo"));
            ComboMenu.Add("ComboE2", new CheckBox("Use [E2] Combo"));
            ComboMenu.Add("Edis", new Slider("Distance Use [E2]", 250, 0, 450));
            ComboMenu.AddGroupLabel("Items Settings");
            ComboMenu.Add("hydra", new CheckBox("Use [Hydra] Reset AA"));

            Ulti = Menu.AddSubMenu("Ultimate Settings", "Ulti");
            Ulti.AddGroupLabel("Ultimate Health Settings");
            Ulti.Add("ultiR", new CheckBox("Use [R] My Health"));
            Ulti.Add("MinR", new Slider("Min Health Use [R]", 50));
            Ulti.AddGroupLabel("Ultimate Enemies Count");
            Ulti.Add("ultiR2", new CheckBox("Use [R] Enemies In Range", false));
            Ulti.Add("MinE", new Slider("Min Enemies Use [R]", 3, 1, 5));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("HarassQ", new CheckBox("Use [Q] Harass"));
            HarassMenu.Add("HarassW", new CheckBox("Use [W] Harass"));

            LaneClearMenu = Menu.AddSubMenu("LaneClear Settings", "LaneClear");
            LaneClearMenu.AddGroupLabel("Lane Clear Settings");
            LaneClearMenu.Add("QLC", new CheckBox("Use [Q] LaneClear"));
            LaneClearMenu.Add("WLC", new CheckBox("Use [W] LaneClear", false));
            LaneClearMenu.AddSeparator();
            LaneClearMenu.AddGroupLabel("LastHit Settings");
            LaneClearMenu.Add("LHQ", new CheckBox("Use [Q] LastHit", false));
            LaneClearMenu.Add("LHW", new CheckBox("Use [W] LastHit", false));

            JungleClearMenu = Menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            JungleClearMenu.Add("QJungle", new CheckBox("Use [Q] JungleClear"));
            JungleClearMenu.Add("WJungle", new CheckBox("Use [W] JungleClear"));
            JungleClearMenu.Add("EJungle", new CheckBox("Use [E] JungleClear"));

            KillStealMenu = Menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("KsQ", new CheckBox("Use [Q] KillSteal"));
            KillStealMenu.Add("KsW", new CheckBox("Use [W] KillSteal"));
            KillStealMenu.Add("KsE", new CheckBox("Use [E] KillSteal"));
            KillStealMenu.Add("KsEQ", new CheckBox("Use [E-Q] KillSteal", false));
            KillStealMenu.Add("ign", new CheckBox("Use [Ignite] KillSteal"));

            Misc = Menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("Skin Settings");
            Misc.Add("checkSkin", new CheckBox("Use Skin Changer"));
            Misc.Add("skin.Id", new ComboBox("Skin Mode", 0, "Default", "1", "2", "3", "4", "5", "6", "7"));
            Misc.AddGroupLabel("Drawing Settings");
            Misc.Add("DrawQ", new CheckBox("Q Range"));
            Misc.Add("DrawE", new CheckBox("E Range", false));

            Drawing.OnDraw         += Drawing_OnDraw;
            Game.OnTick            += Game_OnTick;
            Orbwalker.OnPostAttack += ResetAttack;
        }
Пример #51
0
        private void LogicW()
        {
            var t = TargetSelector.GetTarget(650, TargetSelector.DamageType.Physical);

            if (t.IsValidTarget() && !Q.IsReady())
            {
                if (Program.Combo && Player.Mana > RMANA + WMANA)
                {
                    W.Cast();
                }
                else if (Program.Harass && MainMenu.Item("harassW", true).GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA && MainMenu.Item("Harass" + t.ChampionName).GetValue <bool>())
                {
                    W.Cast();
                }
            }
            var tks = TargetSelector.GetTarget(1600, TargetSelector.DamageType.Physical);

            if (tks.IsValidTarget())
            {
                if (W.GetDamage(tks) * 3 > tks.Health - OktwCommon.GetIncomingDamage(tks))
                {
                    W.Cast();
                }
            }

            if (FarmSpells && MainMenu.Item("farmW", true).GetValue <bool>())
            {
                var allMinionsQ = Cache.GetMinions(Player.ServerPosition, 600);
                if (allMinionsQ.Count >= FarmMinions)
                {
                    W.Cast();
                }
            }
        }
Пример #52
0
 private static void Hauptmenu()
 {
     HMenu = MainMenu.AddMenu("AkaCore", "akacdsore");
     HMenu.AddGroupLabel("Extension for my addons.");
 }
Пример #53
0
        private void LogicE()
        {
            var torb = Orbwalker.GetTarget();

            if (torb == null || torb.Type != GameObjectType.obj_AI_Hero)
            {
                return;
            }
            else
            {
                var t = torb as Obj_AI_Hero;

                if (t.IsValidTarget(E.Range))
                {
                    if (!MainMenu.Item("Euse" + t.ChampionName, true).GetValue <bool>())
                    {
                        return;
                    }
                    if (Program.Combo && Player.Mana > RMANA + EMANA)
                    {
                        E.CastOnUnit(t);
                    }
                    else if (Program.Harass && MainMenu.Item("harassE", true).GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA && MainMenu.Item("Harass" + t.ChampionName).GetValue <bool>())
                    {
                        E.CastOnUnit(t);
                    }
                }
            }
        }
Пример #54
0
 public void OnNextButtonPressed()
 {
     Close();
     MainMenu.Show();
 }
Пример #55
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Braum.Hero != Champion.Braum)
            {
                return;
            }

            _q = new Spell.Skillshot(SpellSlot.Q, 1000, SkillShotType.Linear, 250, 1700, 60)
            {
                AllowedCollisionCount = 0
            };
            _w = new Spell.Targeted(SpellSlot.W, 650);
            _e = new Spell.Skillshot(SpellSlot.E, 1500, SkillShotType.Cone, 250, 2000, 350);
            _r = new Spell.Skillshot(SpellSlot.R, 1250, SkillShotType.Linear, (int)0.5f, 1300, 115)
            {
                AllowedCollisionCount = int.MaxValue
            };

            Game.OnTick                      += BraumActive;
            Drawing.OnDraw                   += SpellDraw;
            Gapcloser.OnGapcloser            += AntiGapCloser;
            Interrupter.OnInterruptableSpell += DangerousSpellsInterupt;
            Obj_AI_Base.OnProcessSpellCast   += AutoProtection;
            Obj_AI_Base.OnBasicAttack        += AutoAttack;
            _lvl = Braum.Spellbook;
            Obj_AI_Base.OnLevelUp += OnLevelUpR;
            Chat.Print("<font color='#00FFCC'><b>[FrOnDaL]</b></font> Braum Successfully loaded.");

            _main = MainMenu.AddMenu("FrOnDaL Braum", "index");
            _main.AddGroupLabel("Welcome FrOnDaL Braum");
            _main.AddSeparator(5);
            _main.AddLabel("For faults please visit the 'elobuddy' forum and let me know.");
            _main.AddSeparator(5);
            _main.AddLabel("My good deeds -> FrOnDaL");

            /*Combo*/
            _combo = _main.AddSubMenu("Combo");
            _combo.AddGroupLabel("Combo mode settings for Braum");
            _combo.AddLabel("Use Combo Q (On/Off)");
            _combo.Add("q", new CheckBox("Use Q"));
            _combo.AddSeparator(5);
            _combo.AddLabel("Auto Use W (On/Off)");
            _combo.Add("autow", new CheckBox("Auto Use W", false));
            _combo.Add("Wmana", new Slider("Auto W Mana Control Min mana percentage ({0}%)", 10, 1));
            _combo.AddSeparator(5);
            _combo.AddLabel("Auto Use E (On/Off)");
            _combo.Add("autoe", new CheckBox("Auto Use E"));
            _combo.Add("Emana", new Slider("Auto E Mana Control Min mana percentage ({0}%)", 10, 1));
            _combo.AddSeparator(5);
            _combo.AddLabel("Enemy AA Use E (Shield AA below HP) (On/Off)");
            _combo.Add("AAuseE", new CheckBox("Enemy AA Use E (Combo in)"));
            _combo.Add("alliedHeal", new Slider("Shield AA below ({0}%) HP", 80, 1));
            _combo.AddSeparator(5);
            _combo.AddLabel("Auto Use W/E (On/Off)" + "                                " + "Combo in Use R (On/Off)");
            _combo.Add("autowande", new CheckBox("Auto Use W/E"));
            _combo.Add("comboR", new CheckBox("Combo Use R", false));
            _combo.Add("WEmana", new Slider("Auto W and E Mana Control Min mana percentage ({0}%)", 10, 1));
            _combo.AddSeparator(5);
            _combo.AddLabel("Enable Auto Protection for :");
            foreach (var spells in SkillShots.Where(spells => EntityManager.Heroes.Enemies.Any(enemy => enemy.Spellbook.Spells.Any(x => x.SData.Name == spells && (_slot = x.Slot.ToString()) == x.Slot.ToString() && (_hero = enemy.BaseSkinName) == enemy.BaseSkinName))))
            {
                _combo.Add(spells, new CheckBox(_hero + " " + _slot));
            }
            _combo.AddSeparator(5);
            _combo.AddLabel("Use Manuel R");
            _combo.Add("r", new KeyBind("Use R Key", false, KeyBind.BindTypes.HoldActive, 'T'));
            _combo.AddSeparator(5);
            _combo.Add("RHit", new Slider("Manual R Hits ", 1, 1, 5));
            _combo.AddSeparator(8);
            /*Combo*/

            /*Draw*/
            _drawings = _main.AddSubMenu("Drawings");
            _drawings.AddLabel("Use Drawings Q-W-R (On/Off)");
            _drawings.Add("q", new CheckBox("Draw Q", false));
            _drawings.Add("w", new CheckBox("Draw W", false));
            _drawings.Add("r", new CheckBox("Draw R", false));
            /*Draw*/

            /*Misc*/
            _misc = _main.AddSubMenu("Misc");
            _misc.AddLabel("Anti Gap Closer Q-R (On/Off)");
            _misc.Add("Qgap", new CheckBox("Use Q Anti Gap Closer (On/Off)"));
            _misc.Add("Rgap", new CheckBox("Use R Anti Gap Closer (On/Off)"));
            _misc.AddSeparator(5);
            _misc.AddLabel("Interrupt Dangerous Spells (On/Off)");
            _misc.Add("interruptR", new CheckBox("Use R Interrupt (On/Off)"));
            /*Misc*/
        }
Пример #56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExecutorTemplateForm));
     this.txLog               = new System.Windows.Forms.TextBox();
     this.statusBar           = new System.Windows.Forms.StatusBar();
     this.TrayIcon            = new System.Windows.Forms.NotifyIcon(this.components);
     this.TrayMenu            = new System.Windows.Forms.ContextMenu();
     this.tmExit              = new System.Windows.Forms.MenuItem();
     this.MainMenu            = new System.Windows.Forms.MainMenu(this.components);
     this.menuItem1           = new System.Windows.Forms.MenuItem();
     this.mmExit              = new System.Windows.Forms.MenuItem();
     this.menuItem2           = new System.Windows.Forms.MenuItem();
     this.mmAbout             = new System.Windows.Forms.MenuItem();
     this.HideTimer           = new System.Windows.Forms.Timer(this.components);
     this.tabControl          = new System.Windows.Forms.TabControl();
     this.tabConnection       = new System.Windows.Forms.TabPage();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.label5              = new System.Windows.Forms.Label();
     this.label6              = new System.Windows.Forms.Label();
     this.txPassword          = new System.Windows.Forms.TextBox();
     this.txUsername          = new System.Windows.Forms.TextBox();
     this.btReset             = new System.Windows.Forms.Button();
     this.btDisconnect        = new System.Windows.Forms.Button();
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.txId                = new System.Windows.Forms.TextBox();
     this.cbDedicated         = new System.Windows.Forms.CheckBox();
     this.label4              = new System.Windows.Forms.Label();
     this.btConnect           = new System.Windows.Forms.Button();
     this.tabExecution        = new System.Windows.Forms.TabPage();
     this.btStopExec          = new System.Windows.Forms.Button();
     this.btStartExec         = new System.Windows.Forms.Button();
     this.tabOptions          = new System.Windows.Forms.TabPage();
     this.checkBox1           = new System.Windows.Forms.CheckBox();
     this.label11             = new System.Windows.Forms.Label();
     this.udMaxRetry          = new System.Windows.Forms.NumericUpDown();
     this.label10             = new System.Windows.Forms.Label();
     this.label9              = new System.Windows.Forms.Label();
     this.chkRetryConnect     = new System.Windows.Forms.CheckBox();
     this.udReconnectInterval = new System.Windows.Forms.NumericUpDown();
     this.label8              = new System.Windows.Forms.Label();
     this.label7              = new System.Windows.Forms.Label();
     this.lblHBInt            = new System.Windows.Forms.Label();
     this.udHBInterval        = new System.Windows.Forms.NumericUpDown();
     this.pbar                = new System.Windows.Forms.ProgressBar();
     this.label12             = new System.Windows.Forms.Label();
     this.lnkViewLog          = new System.Windows.Forms.LinkLabel();
     this.ucManagerEndPoint   = new Alchemi.Core.EndPointUtils.EndPointControl();
     this.ucOwnEndPoint       = new Alchemi.Core.EndPointUtils.EndPointControl();
     this.tabControl.SuspendLayout();
     this.tabConnection.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.tabExecution.SuspendLayout();
     this.tabOptions.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.udMaxRetry)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.udReconnectInterval)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.udHBInterval)).BeginInit();
     this.SuspendLayout();
     //
     // txLog
     //
     this.txLog.BackColor    = System.Drawing.SystemColors.Info;
     this.txLog.Cursor       = System.Windows.Forms.Cursors.IBeam;
     this.txLog.Location     = new System.Drawing.Point(16, 427);
     this.txLog.Multiline    = true;
     this.txLog.Name         = "txLog";
     this.txLog.ReadOnly     = true;
     this.txLog.ScrollBars   = System.Windows.Forms.ScrollBars.Both;
     this.txLog.Size         = new System.Drawing.Size(424, 96);
     this.txLog.TabIndex     = 11;
     this.txLog.TabStop      = false;
     this.txLog.DoubleClick += new System.EventHandler(this.txLog_DoubleClick);
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 521);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(458, 22);
     this.statusBar.TabIndex = 2;
     //
     // TrayIcon
     //
     this.TrayIcon.ContextMenu = this.TrayMenu;
     this.TrayIcon.Icon        = ((System.Drawing.Icon)(resources.GetObject("TrayIcon.Icon")));
     this.TrayIcon.Text        = "Alchemi Executor";
     this.TrayIcon.Visible     = true;
     this.TrayIcon.Click      += new System.EventHandler(this.TrayIcon_Click);
     //
     // TrayMenu
     //
     this.TrayMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.tmExit
     });
     //
     // tmExit
     //
     this.tmExit.Index  = 0;
     this.tmExit.Text   = "Exit";
     this.tmExit.Click += new System.EventHandler(this.tmExit_Click);
     //
     // MainMenu
     //
     this.MainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.menuItem1,
         this.menuItem2
     });
     //
     // menuItem1
     //
     this.menuItem1.Index = 0;
     this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mmExit
     });
     this.menuItem1.Text = "Executor";
     //
     // mmExit
     //
     this.mmExit.Index  = 0;
     this.mmExit.Text   = "Exit";
     this.mmExit.Click += new System.EventHandler(this.mmExit_Click);
     //
     // menuItem2
     //
     this.menuItem2.Index = 1;
     this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mmAbout
     });
     this.menuItem2.Text = "Help";
     //
     // mmAbout
     //
     this.mmAbout.Index  = 0;
     this.mmAbout.Text   = "About";
     this.mmAbout.Click += new System.EventHandler(this.mmAbout_Click);
     //
     // HideTimer
     //
     this.HideTimer.Interval = 1000;
     this.HideTimer.Tick    += new System.EventHandler(this.HideTimer_Tick);
     //
     // tabControl
     //
     this.tabControl.Controls.Add(this.tabConnection);
     this.tabControl.Controls.Add(this.tabExecution);
     this.tabControl.Controls.Add(this.tabOptions);
     this.tabControl.ItemSize      = new System.Drawing.Size(97, 18);
     this.tabControl.Location      = new System.Drawing.Point(8, 8);
     this.tabControl.Name          = "tabControl";
     this.tabControl.SelectedIndex = 0;
     this.tabControl.Size          = new System.Drawing.Size(440, 392);
     this.tabControl.TabIndex      = 6;
     //
     // tabConnection
     //
     this.tabConnection.BackColor = System.Drawing.SystemColors.Control;
     this.tabConnection.Controls.Add(this.groupBox3);
     this.tabConnection.Controls.Add(this.btReset);
     this.tabConnection.Controls.Add(this.btDisconnect);
     this.tabConnection.Controls.Add(this.groupBox1);
     this.tabConnection.Controls.Add(this.groupBox2);
     this.tabConnection.Controls.Add(this.btConnect);
     this.tabConnection.Location = new System.Drawing.Point(4, 22);
     this.tabConnection.Name     = "tabConnection";
     this.tabConnection.Size     = new System.Drawing.Size(432, 366);
     this.tabConnection.TabIndex = 0;
     this.tabConnection.Text     = "Setup Connection";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Controls.Add(this.txPassword);
     this.groupBox3.Controls.Add(this.txUsername);
     this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox3.Location  = new System.Drawing.Point(4, 199);
     this.groupBox3.Name      = "groupBox3";
     this.groupBox3.Size      = new System.Drawing.Size(210, 72);
     this.groupBox3.TabIndex  = 5;
     this.groupBox3.TabStop   = false;
     this.groupBox3.Text      = "Credentials";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(106, 24);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(64, 16);
     this.label5.TabIndex = 3;
     this.label5.Text     = "Password";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 24);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(96, 16);
     this.label6.TabIndex = 2;
     this.label6.Text     = "Username";
     //
     // txPassword
     //
     this.txPassword.Location     = new System.Drawing.Point(106, 40);
     this.txPassword.Name         = "txPassword";
     this.txPassword.PasswordChar = '*';
     this.txPassword.Size         = new System.Drawing.Size(84, 20);
     this.txPassword.TabIndex     = 4;
     //
     // txUsername
     //
     this.txUsername.Location = new System.Drawing.Point(16, 40);
     this.txUsername.Name     = "txUsername";
     this.txUsername.Size     = new System.Drawing.Size(84, 20);
     this.txUsername.TabIndex = 3;
     //
     // btReset
     //
     this.btReset.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btReset.Location  = new System.Drawing.Point(96, 296);
     this.btReset.Name      = "btReset";
     this.btReset.Size      = new System.Drawing.Size(224, 23);
     this.btReset.TabIndex  = 8;
     this.btReset.TabStop   = false;
     this.btReset.Text      = "Reset";
     this.btReset.Click    += new System.EventHandler(this.btReset_Click);
     //
     // btDisconnect
     //
     this.btDisconnect.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btDisconnect.Location  = new System.Drawing.Point(208, 328);
     this.btDisconnect.Name      = "btDisconnect";
     this.btDisconnect.Size      = new System.Drawing.Size(112, 23);
     this.btDisconnect.TabIndex  = 10;
     this.btDisconnect.Text      = "Disconnect";
     this.btDisconnect.Click    += new System.EventHandler(this.btDisconnect_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.ucManagerEndPoint);
     this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox1.Location  = new System.Drawing.Point(4, 3);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(210, 190);
     this.groupBox1.TabIndex  = 3;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Manager Node";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.ucOwnEndPoint);
     this.groupBox2.Controls.Add(this.txId);
     this.groupBox2.Controls.Add(this.cbDedicated);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.groupBox2.Location  = new System.Drawing.Point(218, 3);
     this.groupBox2.Name      = "groupBox2";
     this.groupBox2.Size      = new System.Drawing.Size(210, 268);
     this.groupBox2.TabIndex  = 4;
     this.groupBox2.TabStop   = false;
     this.groupBox2.Text      = "Own Node";
     //
     // txId
     //
     this.txId.BackColor = System.Drawing.SystemColors.Window;
     this.txId.Location  = new System.Drawing.Point(16, 39);
     this.txId.Name      = "txId";
     this.txId.ReadOnly  = true;
     this.txId.Size      = new System.Drawing.Size(188, 20);
     this.txId.TabIndex  = 12;
     this.txId.TabStop   = false;
     //
     // cbDedicated
     //
     this.cbDedicated.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.cbDedicated.Location        = new System.Drawing.Point(16, 65);
     this.cbDedicated.Name            = "cbDedicated";
     this.cbDedicated.Size            = new System.Drawing.Size(88, 32);
     this.cbDedicated.TabIndex        = 6;
     this.cbDedicated.Text            = "Dedicated?";
     this.cbDedicated.CheckedChanged += new System.EventHandler(this.cbDedicated_CheckedChanged);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 24);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(96, 16);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Id";
     //
     // btConnect
     //
     this.btConnect.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btConnect.Location  = new System.Drawing.Point(96, 328);
     this.btConnect.Name      = "btConnect";
     this.btConnect.Size      = new System.Drawing.Size(104, 23);
     this.btConnect.TabIndex  = 9;
     this.btConnect.Text      = "Connect";
     this.btConnect.Click    += new System.EventHandler(this.btConnect_Click);
     //
     // tabExecution
     //
     this.tabExecution.BackColor = System.Drawing.SystemColors.Control;
     this.tabExecution.Controls.Add(this.btStopExec);
     this.tabExecution.Controls.Add(this.btStartExec);
     this.tabExecution.Location = new System.Drawing.Point(4, 22);
     this.tabExecution.Name     = "tabExecution";
     this.tabExecution.Size     = new System.Drawing.Size(432, 366);
     this.tabExecution.TabIndex = 1;
     this.tabExecution.Text     = "Manage Execution";
     //
     // btStopExec
     //
     this.btStopExec.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btStopExec.Location  = new System.Drawing.Point(120, 152);
     this.btStopExec.Name      = "btStopExec";
     this.btStopExec.Size      = new System.Drawing.Size(192, 23);
     this.btStopExec.TabIndex  = 1;
     this.btStopExec.Text      = "Stop Executing";
     this.btStopExec.Click    += new System.EventHandler(this.btStopExec_Click);
     //
     // btStartExec
     //
     this.btStartExec.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.btStartExec.Location  = new System.Drawing.Point(120, 112);
     this.btStartExec.Name      = "btStartExec";
     this.btStartExec.Size      = new System.Drawing.Size(192, 23);
     this.btStartExec.TabIndex  = 0;
     this.btStartExec.Text      = "StartApplication Executing";
     this.btStartExec.Click    += new System.EventHandler(this.btStartExec_Click);
     //
     // tabOptions
     //
     this.tabOptions.Controls.Add(this.checkBox1);
     this.tabOptions.Controls.Add(this.label11);
     this.tabOptions.Controls.Add(this.udMaxRetry);
     this.tabOptions.Controls.Add(this.label10);
     this.tabOptions.Controls.Add(this.label9);
     this.tabOptions.Controls.Add(this.chkRetryConnect);
     this.tabOptions.Controls.Add(this.udReconnectInterval);
     this.tabOptions.Controls.Add(this.label8);
     this.tabOptions.Controls.Add(this.label7);
     this.tabOptions.Controls.Add(this.lblHBInt);
     this.tabOptions.Controls.Add(this.udHBInterval);
     this.tabOptions.Location = new System.Drawing.Point(4, 22);
     this.tabOptions.Name     = "tabOptions";
     this.tabOptions.Size     = new System.Drawing.Size(432, 366);
     this.tabOptions.TabIndex = 2;
     this.tabOptions.Text     = "Options";
     //
     // checkBox1
     //
     this.checkBox1.AutoSize   = true;
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Location   = new System.Drawing.Point(27, 184);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(299, 30);
     this.checkBox1.TabIndex   = 10;
     this.checkBox1.Text       = "Enforce secure sanboxed execution\r\n(Turn off this option to allow legacy applicat" +
                                 "ions ie. GJobs)";
     this.checkBox1.UseVisualStyleBackColor = true;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(183, 126);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(88, 16);
     this.label11.TabIndex = 9;
     this.label11.Text     = "times at most.";
     //
     // udMaxRetry
     //
     this.udMaxRetry.Location = new System.Drawing.Point(118, 124);
     this.udMaxRetry.Minimum  = new decimal(new int[] {
         1,
         0,
         0,
         -2147483648
     });
     this.udMaxRetry.Name      = "udMaxRetry";
     this.udMaxRetry.Size      = new System.Drawing.Size(52, 20);
     this.udMaxRetry.TabIndex  = 8;
     this.udMaxRetry.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.udMaxRetry.Value     = new decimal(new int[] {
         3,
         0,
         0,
         0
     });
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(24, 126);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(88, 16);
     this.label10.TabIndex = 7;
     this.label10.Text     = "Try to reconnect ";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(24, 99);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(176, 16);
     this.label9.TabIndex = 6;
     this.label9.Text     = "Continue to try and connect every";
     //
     // chkRetryConnect
     //
     this.chkRetryConnect.Checked    = true;
     this.chkRetryConnect.CheckState = System.Windows.Forms.CheckState.Checked;
     this.chkRetryConnect.Location   = new System.Drawing.Point(24, 72);
     this.chkRetryConnect.Name       = "chkRetryConnect";
     this.chkRetryConnect.Size       = new System.Drawing.Size(267, 17);
     this.chkRetryConnect.TabIndex   = 5;
     this.chkRetryConnect.Text       = "Retry connecting to Manager on disconnection.";
     //
     // udReconnectInterval
     //
     this.udReconnectInterval.Location = new System.Drawing.Point(200, 97);
     this.udReconnectInterval.Maximum  = new decimal(new int[] {
         10000,
         0,
         0,
         0
     });
     this.udReconnectInterval.Minimum = new decimal(new int[] {
         2,
         0,
         0,
         0
     });
     this.udReconnectInterval.Name      = "udReconnectInterval";
     this.udReconnectInterval.Size      = new System.Drawing.Size(72, 20);
     this.udReconnectInterval.TabIndex  = 4;
     this.udReconnectInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.udReconnectInterval.Value     = new decimal(new int[] {
         30,
         0,
         0,
         0
     });
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(280, 99);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(56, 16);
     this.label8.TabIndex = 3;
     this.label8.Text     = "seconds.";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(216, 24);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(56, 16);
     this.label7.TabIndex = 2;
     this.label7.Text     = "seconds.";
     //
     // lblHBInt
     //
     this.lblHBInt.Location = new System.Drawing.Point(24, 23);
     this.lblHBInt.Name     = "lblHBInt";
     this.lblHBInt.Size     = new System.Drawing.Size(100, 16);
     this.lblHBInt.TabIndex = 1;
     this.lblHBInt.Text     = "Heartbeat interval";
     //
     // udHBInterval
     //
     this.udHBInterval.Location = new System.Drawing.Point(133, 20);
     this.udHBInterval.Maximum  = new decimal(new int[] {
         10000,
         0,
         0,
         0
     });
     this.udHBInterval.Minimum = new decimal(new int[] {
         2,
         0,
         0,
         0
     });
     this.udHBInterval.Name      = "udHBInterval";
     this.udHBInterval.Size      = new System.Drawing.Size(72, 20);
     this.udHBInterval.TabIndex  = 0;
     this.udHBInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.udHBInterval.Value     = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     //
     // pbar
     //
     this.pbar.Location = new System.Drawing.Point(16, 527);
     this.pbar.Maximum  = 5;
     this.pbar.Name     = "pbar";
     this.pbar.Size     = new System.Drawing.Size(424, 8);
     this.pbar.Step     = 1;
     this.pbar.TabIndex = 12;
     this.pbar.Visible  = false;
     //
     // label12
     //
     this.label12.AutoSize  = true;
     this.label12.Location  = new System.Drawing.Point(13, 408);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(76, 13);
     this.label12.TabIndex  = 13;
     this.label12.Text      = "Log Messages";
     this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lnkViewLog
     //
     this.lnkViewLog.AutoSize     = true;
     this.lnkViewLog.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
     this.lnkViewLog.Location     = new System.Drawing.Point(96, 408);
     this.lnkViewLog.Name         = "lnkViewLog";
     this.lnkViewLog.Size         = new System.Drawing.Size(87, 13);
     this.lnkViewLog.TabIndex     = 14;
     this.lnkViewLog.TabStop      = true;
     this.lnkViewLog.Text         = "( View full log ... )";
     this.lnkViewLog.TextAlign    = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // ucManagerEndPoint
     //
     this.ucManagerEndPoint.AddressPart = "";
     this.ucManagerEndPoint.BindingConfigurationName = "";
     this.ucManagerEndPoint.BindingSettingType       = Alchemi.Core.WCFBindingSettingType.Default;
     this.ucManagerEndPoint.FixedAddressPart         = false;
     this.ucManagerEndPoint.FullAddress               = "http://localhost:0/";
     this.ucManagerEndPoint.Host                      = "localhost";
     this.ucManagerEndPoint.HostNameForPublishing     = "localhost";
     this.ucManagerEndPoint.Location                  = new System.Drawing.Point(6, 19);
     this.ucManagerEndPoint.Name                      = "ucManagerEndPoint";
     this.ucManagerEndPoint.Port                      = 0;
     this.ucManagerEndPoint.Protocol                  = "";
     this.ucManagerEndPoint.SelectedRemotingMechanism = Alchemi.Core.RemotingMechanism.WCF;
     this.ucManagerEndPoint.ServiceConfigurationName  = "";
     this.ucManagerEndPoint.Size                      = new System.Drawing.Size(198, 165);
     this.ucManagerEndPoint.TabIndex                  = 0;
     this.ucManagerEndPoint.WCFBinding                = Alchemi.Core.WCFBinding.None;
     //
     // ucOwnEndPoint
     //
     this.ucOwnEndPoint.AddressPart = "";
     this.ucOwnEndPoint.BindingConfigurationName = "";
     this.ucOwnEndPoint.BindingSettingType       = Alchemi.Core.WCFBindingSettingType.Default;
     this.ucOwnEndPoint.FixedAddressPart         = false;
     this.ucOwnEndPoint.FullAddress               = "http://localhost:0/";
     this.ucOwnEndPoint.Host                      = "localhost";
     this.ucOwnEndPoint.HostNameForPublishing     = "localhost";
     this.ucOwnEndPoint.Location                  = new System.Drawing.Point(9, 103);
     this.ucOwnEndPoint.Name                      = "ucOwnEndPoint";
     this.ucOwnEndPoint.Port                      = 0;
     this.ucOwnEndPoint.Protocol                  = "";
     this.ucOwnEndPoint.SelectedRemotingMechanism = Alchemi.Core.RemotingMechanism.WCF;
     this.ucOwnEndPoint.ServiceConfigurationName  = "";
     this.ucOwnEndPoint.Size                      = new System.Drawing.Size(195, 153);
     this.ucOwnEndPoint.TabIndex                  = 13;
     this.ucOwnEndPoint.WCFBinding                = Alchemi.Core.WCFBinding.None;
     //
     // ExecutorTemplateForm
     //
     this.AcceptButton      = this.btConnect;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(458, 543);
     this.Controls.Add(this.lnkViewLog);
     this.Controls.Add(this.label12);
     this.Controls.Add(this.txLog);
     this.Controls.Add(this.pbar);
     this.Controls.Add(this.statusBar);
     this.Controls.Add(this.tabControl);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.Menu          = this.MainMenu;
     this.Name          = "ExecutorTemplateForm";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Alchemi Executor";
     this.Load         += new System.EventHandler(this.ExecutorTemplateForm_Load);
     this.tabControl.ResumeLayout(false);
     this.tabConnection.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.tabExecution.ResumeLayout(false);
     this.tabOptions.ResumeLayout(false);
     this.tabOptions.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.udMaxRetry)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.udReconnectInterval)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.udHBInterval)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #57
0
        public static void Game_OnLoad()
        {
            #region main
            {
                Player = ObjectManager.Player;

                if (Player.ChampionName != ChampionName)
                {
                    return;
                }

                _q = new Spell(SpellSlot.Q, 600, DamageType.Physical);
                _w = new Spell(SpellSlot.W, 405, DamageType.Physical);
                _e = new Spell(SpellSlot.E, 400, DamageType.Magical);
                _r = new Spell(SpellSlot.R, 125, DamageType.Magical);

                _botrk   = new Items.Item(3153, 450f);
                _cutlass = new Items.Item(3144, 450f);
            }
            #endregion

            #region content menu

            Menu = MainMenu.AddMenu("Teddy Bear - ThunderBuddy", "teddy.bear");

            comboMenu = Menu.AddSubMenu("Combo", "teddy.bear.combo");
            comboMenu.Add("teddy.bear.combo.useq", new CheckBox("Use Q", true));
            comboMenu.Add("teddy.bear.combo.usew", new CheckBox("Use W", true));
            comboMenu.Add("teddy.bear.combo.usee", new CheckBox("Use E", true));
            comboMenu.Add("teddy.bear.combo.user", new CheckBox("Use R", true));

            laneclearing = Menu.AddSubMenu("Lane clear", "teddy.bear.laneclearing");
            laneclearing.Add("teddy.bear.laneclearing.useQ", new CheckBox("Use Q", true));
            laneclearing.Add("teddy.bear.laneclearing.useW", new CheckBox("Use W", true));
            laneclearing.Add("teddy.bear.laneclearing.useE", new CheckBox("Use E", true));


            fleeMenu = Menu.AddSubMenu("Flee", "teddy.bear.flee");
            fleeMenu.Add("teddy.bear.flee.useQ", new CheckBox("Use Q", true));
            fleeMenu.Add("teddy.bear.flee.useE", new CheckBox("Use E", true));


            misc = Menu.AddSubMenu("Misc", "teddy.bear.misc");
            misc.Add("teddy.bear.misc.skW", new CheckBox("safe kill with W", true));

            drawingMenu = Menu.AddSubMenu("Drawing", "teddy.bear.drawing");
            drawingMenu.Add("DrawQ", new CheckBox("Draw Q range", true));
            drawingMenu.Add("DrawW", new CheckBox("Draw W range", true));
            drawingMenu.Add("DrawE", new CheckBox("Draw E range", true));
            drawingMenu.Add("DrawR", new CheckBox("Draw R range", true));
            drawingMenu.Add("DrawHP", new CheckBox("Draw HP Indicator", true));


            #endregion

            Interrupter2.OnInterruptableTarget += Interrupter_OnPossibleToInterrupt;
            Game.OnUpdate      += Game_OnUpdate;
            Drawing.OnDraw     += Drawing_OnDraw;
            Drawing.OnEndScene += OnEndScene;
            Chat.Print("<font color='#881df2'>TeddyBear - Loaded.");
        }
Пример #58
0
 static Config()
 {
     Menu = MainMenu.AddMenu(MenuName, MenuName.ToLower());
     Menu.AddGroupLabel("KA " + Player.Instance.ChampionName);
     Modes.Initialize();
 }
Пример #59
0
        private static void CreateMenu()
        {
            try
            {
                MenuIni    = MainMenu.AddMenu("AramBuddy", "AramBuddy");
                SpellsMenu = MenuIni.AddSubMenu("Spells");
                MenuIni.AddGroupLabel("AramBuddy Version: " + version);
                MenuIni.AddGroupLabel("AramBuddy Settings");

                BuildMenu = MenuIni.AddSubMenu("AutoShop Settings");
                InfoMenu  = MenuIni.AddSubMenu("Extra Options");

                var lolversion = BuildMenu.Add("buildpatch", new ComboBox("Select Build Patch: ", 0, CurrentPatchs.ToArray()));

                BuildMenu.AddLabel($"Current Build: {lolversion.SelectedText}");
                var minItem = BuildMenu.CreateSlider("minitem", "Min amount of Items to shop", 5, 1, 10);
                var maxItem = BuildMenu.CreateSlider("maxitem", "Max amount of Items to shop", 10, minItem.CurrentValue, 25);
                minItem.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                { maxItem.MinValue = minItem.MaxValue; };
                maxItem.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                { minItem.MaxValue = args.NewValue; };

                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;

                        //autoshop
                        minItem.CurrentValue = 5;
                        maxItem.CurrentValue = 10;
                    }
                };

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

                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)
                {
                    var input = args.Input.ToLower();
                    if (input.Contains("disable texture"))
                    {
                        Disabletexture();
                        texture.CurrentValue = true;
                        args.Process         = false;
                    }
                    if (input.Contains("enable texture"))
                    {
                        Enabletexture();
                        texture.CurrentValue = false;
                        args.Process         = false;
                    }
                    if (input.Contains("force start"))
                    {
                        TimeToStart  = 0;
                        args.Process = false;
                    }
                };
            }
            catch (Exception ex)
            {
                Logger.Send("Program Error At CreateMenu", ex, Logger.LogLevel.Error);
            }
        }
Пример #60
0
        private void InitSelfMenu()
        {
            var newScene = new MenuItem("Scene");

            newScene.Click += (sender, args) =>
            {
                var size = NumericPrompt.ShowDialog("Width", "Height", "Create scene");
                sceneEditor.CreateNewScene((int)size.Item1, (int)size.Item2);
                if (Mode != EditorMode.EditScene)
                {
                    SwitchMode(EditorMode.EditScene);
                }
            };

            var newObject = new MenuItem("Object");

            newObject.Click += (sender, args) =>
            {
                if (Mode != EditorMode.EditObject)
                {
                    SwitchMode(EditorMode.EditObject);
                }
                else
                {
                    objectEditor.CreateNewObject();
                }
            };

            var newSubmenu = new MenuItem("New");

            newSubmenu.MenuItems.Add(newScene);
            newSubmenu.MenuItems.Add(newObject);

            var saveScene = new MenuItem("Save as...");

            saveScene.Click += (sender, args) =>
            {
                using (SaveFileDialog dialog = new SaveFileDialog())
                {
                    dialog.Filter           = "Mirai Scene files (*.mss)|*.mss|All files (*.*)|*.*";
                    dialog.FilterIndex      = 1;
                    dialog.RestoreDirectory = false;
                    dialog.InitialDirectory = SceneManager.PathToScenes;

                    if (dialog.ShowDialog() == DialogResult.OK)
                    {
                        using (Stream stream = dialog.OpenFile())
                        {
                            SceneManager.SaveToStream(sceneEditor.Scene, stream);
                        }
                    }
                }
            };

            var openScene = new MenuItem("Open...");

            openScene.Click += (sender, args) =>
            {
                using (OpenFileDialog dialog = new OpenFileDialog())
                {
                    dialog.Filter           = "Mirai Scene files (*.mss)|*.mss|All files (*.*)|*.*";
                    dialog.FilterIndex      = 1;
                    dialog.RestoreDirectory = false;
                    dialog.InitialDirectory = SceneManager.PathToScenes;

                    if (dialog.ShowDialog() == DialogResult.OK)
                    {
                        using (Stream stream = dialog.OpenFile())
                        {
                            var screenSize  = new Vector2f(ClientSize.Width, ClientSize.Height);
                            var loadedScene = SceneManager.LoadFromStream(stream);
                            sceneEditor.CleanHands();
                            sceneEditor.Scene = loadedScene;
                        }
                    }
                }
            };

            var fileMenu = new MenuItem[]
            {
                newSubmenu,
                openScene,
                saveScene,
            };

            var helpMenu = new MenuItem[]
            {
                new MenuItem("About..."),
            };

            Menu = new MainMenu();
            Menu.MenuItems.Add("File", fileMenu);
            Menu.MenuItems.Add("Help", helpMenu);
        }