Skip to content

Commit

Permalink
Made console UI more compact and set default randomness to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
AuriumUSA committed Jun 11, 2021
1 parent 1be90d9 commit 64a244f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 32 deletions.
38 changes: 15 additions & 23 deletions Aurium/Display.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ class Display
{
private static void InitializeWindow()
{
Console.SetWindowSize(50, 40);
Console.SetBufferSize(50, 40);
Console.SetWindowSize(50, 30);
Console.SetBufferSize(50, 30);
Console.Title = "Aurium";
PrintHeader();
}

public static void PrintHeader()
{
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.WriteLine(@" _ _ ");
Console.WriteLine(@" / \ _ _ _ __(_)_ _ _ __ ___ ");
Console.WriteLine(@" / _ \| | | | '__| | | | | '_ ` _ \ ");
Console.WriteLine(@" / ___ \ |_| | | | | |_| | | | | | |");
Console.WriteLine(@" /_/ \_\__,_|_| |_|\__,_|_| |_| |_|");
Console.WriteLine();
Console.WriteLine(" -------------------------------------------------");
Console.WriteLine(@" _ _ ");
Console.WriteLine(@" / \ _ _ _ __(_)_ _ _ __ ___ ");
Console.WriteLine(@" / _ \| | | | '__| | | | | '_ ` _ \ ");
Console.WriteLine(@" / ___ \ |_| | | | | |_| | | | | | |");
Console.WriteLine(@" /_/ \_\__,_|_| |_|\__,_|_| |_| |_|");
Console.WriteLine(" -----------------------------------------------");
Console.ResetColor();
Console.WriteLine(" Sensitivity Randomness");
Console.ForegroundColor = ConsoleColor.DarkYellow;
Expand Down Expand Up @@ -50,24 +49,17 @@ public static void PrintHeader()
Console.Write(" Muzzle Attachment: ");
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.Write(Variables.Weapon.getActiveBarrel() + "\n");
Console.WriteLine();
Console.WriteLine(" -------------------------------------------------");
Console.WriteLine(" -----------------------------------------------");
Console.ResetColor();
Console.WriteLine(" CTRL + Number Pad:");
Console.ForegroundColor = ConsoleColor.DarkYellow;

Console.WriteLine();
Console.WriteLine(" 0: Enable/Disable");
Console.WriteLine(" 7: MP5A4 8: Semi 9: Thompson");
Console.WriteLine(" 4: M39 5: M92 6: M249");
Console.WriteLine(" 1: AK-47 2: Custom 3: LR-300");
Console.WriteLine();
Console.WriteLine(" 1: Assault Rifle");
Console.WriteLine(" 2: Custom SMG");
Console.WriteLine(" 3: LR-300 Assault Rifle");
Console.WriteLine(" 4: M39");
Console.WriteLine(" 5: M92");
Console.WriteLine(" 6: M249");
Console.WriteLine(" 7: MP5A4");
Console.WriteLine(" 8: Semi-Automatic Rifle");
Console.WriteLine(" 9: Thompson");
Console.WriteLine(" 0: Enable/Disable");
Console.WriteLine();
Console.WriteLine(" +: Cycle Sights [None/Simple/Holo/8x/16x]");
Console.WriteLine(" Enter: Cycle Barrels [None/Silencer/Boost/Break]");
Expand All @@ -76,8 +68,8 @@ public static void PrintHeader()
Console.WriteLine(" CTRL + Arrow Key:");
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.WriteLine(" Randomness: [← Decrease] [→ Increase]");
Console.WriteLine(" In-game Sensitivity: [↓ Decrease] [↑ Increase]");
Console.WriteLine(" In-game Sensitivity: [← Decrease] [→ Increase]");
Console.WriteLine(" Randomness: [↓ Decrease] [↑ Increase]");
}

static void Main(string[] args)
Expand Down
16 changes: 8 additions & 8 deletions Aurium/Hotkeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public static void InitiateHotKeys()
RegisterHotKey(Keys.NumPad7, KeyModifiers.Control); // M39
RegisterHotKey(Keys.NumPad8, KeyModifiers.Control); // M92
RegisterHotKey(Keys.NumPad9, KeyModifiers.Control); // M249
RegisterHotKey(Keys.Left, KeyModifiers.Control); // Randomness Down
RegisterHotKey(Keys.Right, KeyModifiers.Control); // Randomness Up
RegisterHotKey(Keys.Up, KeyModifiers.Control); // Sensitivty Up
RegisterHotKey(Keys.Down, KeyModifiers.Control); // Sensitivity Down
RegisterHotKey(Keys.Left, KeyModifiers.Control); // Sensitivity Down
RegisterHotKey(Keys.Right, KeyModifiers.Control); // Sensitivity Up
RegisterHotKey(Keys.Up, KeyModifiers.Control); // Randomness Up
RegisterHotKey(Keys.Down, KeyModifiers.Control); // Randomness Down
RegisterHotKey(Keys.Add, KeyModifiers.Control); // Scopes
RegisterHotKey(Keys.Enter, KeyModifiers.Control); // Barrels
HotKeyPressed += new EventHandler<HotKeyEventArgs>(Hotkey.HotKeys_HotKeyPressed);
Expand Down Expand Up @@ -141,16 +141,16 @@ public static void HotKeys_HotKeyPressed(object sender, HotKeyEventArgs e)
case Keys.NumPad9:
Weapons.setVariables(9);
break;
case Keys.Left:
case Keys.Down:
Variables.Weapon.setRandomness(-1);
break;
case Keys.Right:
case Keys.Up:
Variables.Weapon.setRandomness(1);
break;
case Keys.Up:
case Keys.Right:
Variables.Settings.setSensitivity(1);
break;
case Keys.Down:
case Keys.Left:
Variables.Settings.setSensitivity(-1);
break;
case Keys.Add:
Expand Down
2 changes: 1 addition & 1 deletion Aurium/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static double isMuzzleBoost(double MilliSec)
}

// RANDOMNESS //
private static double Randomness { get; set; } = 5.0;
private static double Randomness { get; set; } = 0.0;
public static void setRandomness(int RandomnessIndex)
{
switch (RandomnessIndex)
Expand Down

0 comments on commit 64a244f

Please sign in to comment.