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; } } }
void keyValChanged(object sender, Objects.UI.Events.OptionChangedEventArgs e) { Program.GameImplementation.SetValue(((KeyMenuItem)sender).ExtraData, (System.Windows.Forms.Keys)e.OptionValue); }
void aimBoneValChanged(object sender, Objects.UI.Events.OptionChangedEventArgs e) { Program.GameImplementation.SetValue(((ValueMenuItem)sender).ExtraData, (AimBone)e.OptionValue); }