Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <bool> bits   = new List <bool>();
            uint        tmp    = 1;
            uint        tmpVal = 0;

            for (int x = checkedListBox1.Items.Count - 1; x > 0; x--)
            {
                for (int i = 0; i < checkedListBox1.CheckedItems.Count; i++)
                {
                    if (checkedListBox1.Items[x].ToString() == checkedListBox1.CheckedItems[i].ToString() && checkedListBox1.Items[x].ToString() != "")
                    {
                        tmpVal += tmp; break;
                    }
                }
                tmp <<= 1; //shift
            }
            Poke.PokeValue(typeof(uint), tmpVal, (Base + ChunkModifier + Offset), Map);
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Poke.PokeValue(Type, Index, (Offset + ChunkModifier + Base), Map);
 }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     Poke.PokeValue(Type, (object)textBox1.Text, (Base + Offset + ChunkModifier), Map);
 }
Ejemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     Poke.PokeValue(typeof(uint), Map.StringTable.IndetFromString(comboBox1.SelectedItem.ToString()), (Base + ChunkModifier + Offset), Map);
 }