Exemple #1
0
 public static void FleeKeys(
     bool useQ     = true,
     bool defaultQ = true,
     bool useW     = true,
     bool defaultW = true,
     bool useE     = true,
     bool defaultE = true,
     bool useR     = true,
     bool defaultR = true)
 {
     Flee = Menu.AddSubMenu("Flee Menu", "flee");
     Flee.AddGroupLabel("Flee Settings");
     if (useQ)
     {
         Flee.AddCheckBox("flee.q", "Use Q");
     }
     if (useW)
     {
         Flee.AddCheckBox("flee.w", "Use W");
     }
     if (useE)
     {
         Flee.AddCheckBox("flee.e", "Use E");
     }
     if (useR)
     {
         Flee.AddCheckBox("flee.r", "Use R ", false);
     }
     Flee.AddSeparator();
     Flee.Add("flee.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange +=
         Value.AdvancedModeChanged;
     JsonSettings.Profile.Options.Add(new JsonSetting("flee.advanced", Setting.Checkbox, Flee["flee.advanced"].Cast <CheckBox>().CurrentValue.ToString()));
 }