mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Broken Commit - Added if statement for colors hurrah
This commit is contained in:
parent
ca6c020385
commit
7bc87f354e
@ -32,11 +32,13 @@ namespace Artemis.Modules.Games.RocketLeague
|
|||||||
Scale = 4;
|
Scale = 4;
|
||||||
Enabled = Settings.Enabled;
|
Enabled = Settings.Enabled;
|
||||||
Initialized = false;
|
Initialized = false;
|
||||||
|
ContextualColor = Settings.ContextualColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RocketLeagueSettings Settings { get; set; }
|
public RocketLeagueSettings Settings { get; set; }
|
||||||
|
|
||||||
public int Scale { get; set; }
|
public int Scale { get; set; }
|
||||||
|
public bool ContextualColor { get; set; }
|
||||||
|
|
||||||
public override void Dispose()
|
public override void Dispose()
|
||||||
{
|
{
|
||||||
@ -85,11 +87,25 @@ namespace Artemis.Modules.Games.RocketLeague
|
|||||||
|
|
||||||
_boostRect.Width =
|
_boostRect.Width =
|
||||||
(int) Math.Ceiling(MainManager.KeyboardManager.ActiveKeyboard.Width*Scale/100.00*_boostAmount);
|
(int) Math.Ceiling(MainManager.KeyboardManager.ActiveKeyboard.Width*Scale/100.00*_boostAmount);
|
||||||
_boostRect.Colors = new List<Color>
|
|
||||||
|
if (ContextualColor)
|
||||||
{
|
{
|
||||||
ColorHelpers.ToDrawingColor(Settings.MainColor),
|
if(_boostAmount < 33)
|
||||||
ColorHelpers.ToDrawingColor(Settings.SecondaryColor)
|
_boostRect.Colors = new List<Color>{ Color.Red };
|
||||||
};
|
else if(_boostAmount >= 33 && _boostAmount < 66)
|
||||||
|
_boostRect.Colors = new List<Color> { Color.Yellow };
|
||||||
|
else if(_boostAmount >= 66)
|
||||||
|
_boostRect.Colors = new List<Color> { Color.Lime };
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_boostRect.Colors = new List<Color>
|
||||||
|
{
|
||||||
|
ColorHelpers.ToDrawingColor(Settings.MainColor),
|
||||||
|
ColorHelpers.ToDrawingColor(Settings.SecondaryColor)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Task.Run(() => GrowIfHigher());
|
Task.Run(() => GrowIfHigher());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user