Skip to content

Commit

Permalink
Merge pull request #228 from kurokobo/new-colors
Browse files Browse the repository at this point in the history
Support for official new colors
  • Loading branch information
denverquane authored Jun 16, 2021
2 parents 7b3c7f8 + 2835bf2 commit edc9af4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
16 changes: 14 additions & 2 deletions AUCapture-WPF/Converters/PlayerColorToBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ public class PlayerColorToBrush : IValueConverter
{ PlayerColor.Purple, new SolidColorBrush(Color.FromRgb(107, 47, 187))},
{ PlayerColor.Brown, new SolidColorBrush(Color.FromRgb(113, 73, 30))},
{ PlayerColor.Cyan, new SolidColorBrush(Color.FromRgb(56, 254, 220))},
{ PlayerColor.Lime, new SolidColorBrush(Color.FromRgb(80, 239, 57))}
{ PlayerColor.Lime, new SolidColorBrush(Color.FromRgb(80, 239, 57))},
{ PlayerColor.Maroon, new SolidColorBrush(Color.FromRgb(95, 29, 46))},
{ PlayerColor.Rose, new SolidColorBrush(Color.FromRgb(236, 192, 211))},
{ PlayerColor.Banana, new SolidColorBrush(Color.FromRgb(240, 231, 168))},
{ PlayerColor.Gray, new SolidColorBrush(Color.FromRgb(117, 133, 147))},
{ PlayerColor.Tan, new SolidColorBrush(Color.FromRgb(145, 136, 119))},
{ PlayerColor.Sunset, new SolidColorBrush(Color.FromRgb(215, 100, 100))}

};

Expand Down Expand Up @@ -62,7 +68,13 @@ public static Color shadeColor(Color inColor, float percent) {
{ PlayerColor.Purple, new SolidColorBrush(Color.FromRgb(107, 47, 187))},
{ PlayerColor.Brown, new SolidColorBrush(Color.FromRgb(113, 73, 30))},
{ PlayerColor.Cyan, new SolidColorBrush(Color.FromRgb(56, 254, 220))},
{ PlayerColor.Lime, new SolidColorBrush(Color.FromRgb(80, 239, 57))}
{ PlayerColor.Lime, new SolidColorBrush(Color.FromRgb(80, 239, 57))},
{ PlayerColor.Maroon, new SolidColorBrush(Color.FromRgb(95, 29, 46))},
{ PlayerColor.Rose, new SolidColorBrush(Color.FromRgb(236, 192, 211))},
{ PlayerColor.Banana, new SolidColorBrush(Color.FromRgb(240, 231, 168))},
{ PlayerColor.Gray, new SolidColorBrush(Color.FromRgb(117, 133, 147))},
{ PlayerColor.Tan, new SolidColorBrush(Color.FromRgb(145, 136, 119))},
{ PlayerColor.Sunset, new SolidColorBrush(Color.FromRgb(215, 100, 100))}

};

Expand Down
18 changes: 18 additions & 0 deletions AUCapture-WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,24 @@ private Color PlayerColorToColorOBJ(PlayerColor pColor) {
case PlayerColor.Lime:
OutputCode = Color.Lime;
break;
case PlayerColor.Maroon:
OutputCode = Color.Maroon;
break;
case PlayerColor.Rose:
OutputCode = Color.MistyRose;
break;
case PlayerColor.Banana:
OutputCode = Color.LemonChiffon;
break;
case PlayerColor.Gray:
OutputCode = Color.Gray;
break;
case PlayerColor.Tan:
OutputCode = Color.Tan;
break;
case PlayerColor.Sunset:
OutputCode = Color.LightCoral;
break;
}

return OutputCode;
Expand Down
8 changes: 7 additions & 1 deletion AmongUsCapture/Memory/GameMemReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,13 @@ public enum PlayerColor {
Purple = 8,
Brown = 9,
Cyan = 10,
Lime = 11
Lime = 11,
Maroon = 12,
Rose = 13,
Banana = 14,
Gray = 15,
Tan = 16,
Sunset = 17
}

public enum PlayRegion {
Expand Down

0 comments on commit edc9af4

Please sign in to comment.