示例#1
0
 /// <summary>
 ///     Harass Keys
 /// </summary>
 /// <param name="useQ">Create Q Harass menu</param>
 /// <param name="defaultQ">Determinate toggle status</param>
 /// <param name="useW">Create W Harass menu</param>
 /// <param name="defaultW">Determinate toggle status</param>
 /// <param name="useE">Create E Harass menu</param>
 /// <param name="defaultE">Determinate toggle status</param>
 /// <param name="useR">Create R Harass menu</param>
 /// <param name="defaultR">Determinate toggle status</param>
 public static void HarassKeys(
     bool useQ     = true,
     bool defaultQ = true,
     bool useW     = true,
     bool defaultW = true,
     bool useE     = true,
     bool defaultE = true,
     bool useR     = true,
     bool defaultR = true)
 {
     if (useQ)
     {
         Harass.AddCheckBox("harass.q", "Use Q");
     }
     if (useW)
     {
         Harass.AddCheckBox("harass.w", "Use W");
     }
     if (useE)
     {
         Harass.AddCheckBox("harass.e", "Use E");
     }
     if (useR)
     {
         Harass.AddCheckBox("harass.r", "Use R", false);
     }
     Harass.AddSeparator();
     Harass.Add("harass.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange +=
         Value.AdvancedModeChanged;
     JsonSettings.Profile.Options.Add(new JsonSetting("harass.advanced", Setting.Checkbox, Harass["harass.advanced"].Cast <CheckBox>().CurrentValue.ToString()));
 }