Exemplo n.º 1
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBox1.SelectedItem != null)
            {
                lockList();
                Game game = ((Game)listBox1.SelectedItem);
                if (m.OpenProcess(m.GetProcIdFromName(game.Procname)))
                {
                    darkLabel1.Text = game.Name;

                    foreach (Cheat c in game.Cheats)
                    {
                        DarkCheckBox box = new DarkCheckBox();
                        box.Text     = c.Name;
                        box.Location = new Point(x, y);
                        x           += (25 * 8);
                        num++;
                        if (num > 2)
                        {
                            y  += 25;
                            x   = 25;
                            num = 0;
                        }

                        Thread wmThread = new Thread(() =>
                        {
                            while (cheatLoaded)
                            {
                                try
                                {
                                    if (box.Checked)
                                    {
                                        foreach (var ch in c.Addresslist)
                                        {
                                            m.WriteMemory(ch.Address, ch.Type, ch.Value);
                                        }
                                    }
                                } catch (Exception exc)
                                {
                                    new ErrorForm(exc);
                                }


                                Thread.Sleep(1);
                            }
                        });
                        wmThread.Start();
                        darkSectionPanel1.Controls.Add(box);
                        boxes.Add(box);
                    }
                    darkButton1.Visible = true;
                }
                else
                {
                    unlockList();

                    MessageBox.Show(game.Name + " Process not found!");
                }
            }
        }
Exemplo n.º 2
0
        public oBallStatic()
        {
            EditorPath = "Collisions";

            ColliderCircle cr = new ColliderCircle(this);

            cr.Position   = Position;
            cr.Radius     = 64;
            cr.Name       = "Main";
            cr.GameObject = this;

            Colliders.Add(cr);

            box1 = new DarkCheckBox()
            {
                Text = "On", AutoSize = true
            };
            box1.CheckStateChanged += box1event;


            box2 = new DarkCheckBox()
            {
                Text = "Off", AutoSize = true
            };
            box2.CheckStateChanged += box2event;

            EditorProperties    = new Control[3];
            EditorProperties[0] = new DarkLabel()
            {
                Text = "Toggle particles", AutoSize = true
            };
            EditorProperties[1] = box1;
            EditorProperties[2] = box2;
        }
Exemplo n.º 3
0
        public Editor()
        {
            InitializeComponent();

            celMapCheckBoxes = new DarkCheckBox[10];
            for (var i = 0; i < 10; i++)
            {
                var setCheck = celMapCheckBoxes[i] = new DarkCheckBox()
                {
                    Text     = i.ToString(),
                    AutoSize = true,
                };
                setCheck.CheckedChanged += new EventHandler(celMappedCheckBox_CheckedChanged);
                flowLayoutPanel2.Controls.Add(setCheck);
            }

            foreach (var font in FontFamily.Families)
            {
                celLabelFont.Items.Add(font.Name);
            }
        }