コード例 #1
0
        private void DynamicFlags_BmspChanged(object sender, EventArgs e)
        {
            BitmaskCheckBox bmcb = (BitmaskCheckBox)sender;

            if (bmcb.GetValue() == 32 && bmcb.IsChecked == true) // Is dead checks sets tapped & grey name
            {
                DynamicFlags.SetValueIsChecked(8, true);
                DynamicFlags.SetValueIsChecked(4, true);
            }
        }
コード例 #2
0
        private void UnitFlags2_BmspChanged(object sender, EventArgs e)
        {
            BitmaskCheckBox bmcb = (BitmaskCheckBox)sender;

            if (bmcb.GetValue() == 1) // feign death sets play dead
            {
                if (bmcb.IsChecked == true)
                {
                    UnitFlags.SetValueIsChecked(536870912, true);
                }
                else
                {
                    UnitFlags.SetValueIsChecked(536870912, false);
                }
            }
        }