コード例 #1
0
ファイル: Ident.cs プロジェクト: YG-LostShadow/Ambiguous
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem.ToString() != "Null")
     {
         Poke.PokeIdent(comboBox1.SelectedItem.ToString(), (uint)Map.Tags[comboBox2.SelectedItem.ToString(), comboBox1.SelectedItem.ToString()].Identifier, (Base + ChunkModifier + Offset), Map);
     }
     else
     {
         Poke.PokeIdent("FFFF", 0xFFFFFFFF, (Base + ChunkModifier + Offset), Map);
     }
 }
コード例 #2
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);
        }
コード例 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     Poke.PokeValue(Type, Index, (Offset + ChunkModifier + Base), Map);
 }
コード例 #4
0
ファイル: Value.cs プロジェクト: YG-LostShadow/Ambiguous
 private void button1_Click(object sender, EventArgs e)
 {
     Poke.PokeValue(Type, (object)textBox1.Text, (Base + Offset + ChunkModifier), Map);
 }
コード例 #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     Poke.PokeValue(typeof(uint), Map.StringTable.IndetFromString(comboBox1.SelectedItem.ToString()), (Base + ChunkModifier + Offset), Map);
 }