예제 #1
0
        void highlightedValChanged(object sender, Objects.UI.Events.OptionChangedEventArgs e)
        {
            CSGOImplementation csgo = (CSGOImplementation)Program.GameImplementation;

            for (int i = 0; i < csgo.Players.Length; i++)
            {
                if (csgo.Players[i] == null)
                {
                    continue;
                }
                if (csgo.Players[i].Name == ((ValueMenuItem)sender).Text)
                {
                    csgo.Highlighted[i] = (OnOff)e.OptionValue == OnOff.On;
                    break;
                }
            }
        }
예제 #2
0
 void keyValChanged(object sender, Objects.UI.Events.OptionChangedEventArgs e)
 {
     Program.GameImplementation.SetValue(((KeyMenuItem)sender).ExtraData, (System.Windows.Forms.Keys)e.OptionValue);
 }
예제 #3
0
 void aimBoneValChanged(object sender, Objects.UI.Events.OptionChangedEventArgs e)
 {
     Program.GameImplementation.SetValue(((ValueMenuItem)sender).ExtraData, (AimBone)e.OptionValue);
 }