Exemple #1
0
 public static void DrawKeys(
     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)
     {
         Draw.AddSeparator();
         Draw.AddGroupLabel("Q Settings");
         Draw.AddCheckBox("draw.q", "Draw Q", defaultQ);
         Draw.AddColorItem("color.q");
         Draw.AddWidthItem("width.q");
     }
     if (useW)
     {
         Draw.AddSeparator();
         Draw.AddGroupLabel("W Settings");
         Draw.AddCheckBox("draw.w", "Draw W", defaultW);
         Draw.AddColorItem("color.w");
         Draw.AddWidthItem("width.w");
     }
     if (useE)
     {
         Draw.AddSeparator();
         Draw.AddGroupLabel("E Settings");
         Draw.AddCheckBox("draw.e", "Draw E", defaultE);
         Draw.AddColorItem("color.e");
         Draw.AddWidthItem("width.e");
     }
     if (useR)
     {
         Draw.AddSeparator();
         Draw.AddGroupLabel("R Settings");
         Draw.AddCheckBox("draw.r", "Draw R", defaultR);
         Draw.AddColorItem("color.r");
         Draw.AddWidthItem("width.r");
     }
     Draw.Add("draw.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange +=
         Value.AdvancedModeChanged;
     JsonSettings.Profile.Options.Add(new JsonSetting("draw.advanced", Setting.Checkbox, Draw["draw.advanced"].Cast <CheckBox>().CurrentValue.ToString()));
 }