mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
idk
This commit is contained in:
commit
ecca3e84e0
@ -20,8 +20,9 @@ namespace Artemis.Modules.Games.RocketLeague
|
|||||||
private int _boostAmount;
|
private int _boostAmount;
|
||||||
private bool _boostGrowing;
|
private bool _boostGrowing;
|
||||||
private KeyboardRectangle _boostRect;
|
private KeyboardRectangle _boostRect;
|
||||||
|
private bool _contextualColor;
|
||||||
private Memory _memory;
|
private Memory _memory;
|
||||||
private GamePointersCollectionModel _pointer;
|
private GamePointersCollection _pointer;
|
||||||
private int _previousBoost;
|
private int _previousBoost;
|
||||||
|
|
||||||
public RocketLeagueModel(MainManager mainManager, RocketLeagueSettings settings) : base(mainManager)
|
public RocketLeagueModel(MainManager mainManager, RocketLeagueSettings settings) : base(mainManager)
|
||||||
@ -32,13 +33,11 @@ namespace Artemis.Modules.Games.RocketLeague
|
|||||||
Scale = 4;
|
Scale = 4;
|
||||||
Enabled = Settings.Enabled;
|
Enabled = Settings.Enabled;
|
||||||
Initialized = false;
|
Initialized = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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()
|
||||||
{
|
{
|
||||||
@ -57,7 +56,7 @@ namespace Artemis.Modules.Games.RocketLeague
|
|||||||
}, LinearGradientMode.Horizontal);
|
}, LinearGradientMode.Horizontal);
|
||||||
|
|
||||||
Updater.GetPointers();
|
Updater.GetPointers();
|
||||||
_pointer = JsonConvert.DeserializeObject<GamePointersCollectionModel>(Offsets.Default.RocketLeague);
|
_pointer = JsonConvert.DeserializeObject<GamePointersCollection>(Offsets.Default.RocketLeague);
|
||||||
|
|
||||||
var tempProcess = MemoryHelpers.GetProcessIfRunning(ProcessName);
|
var tempProcess = MemoryHelpers.GetProcessIfRunning(ProcessName);
|
||||||
_memory = new Memory(tempProcess);
|
_memory = new Memory(tempProcess);
|
||||||
@ -89,24 +88,15 @@ 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);
|
||||||
|
|
||||||
if (ContextualColor)
|
if (_contextualColor)
|
||||||
{
|
{
|
||||||
if(_boostAmount < 33)
|
if (_boostAmount < 33)
|
||||||
_boostRect.Colors = new List<Color>{ Color.Red };
|
_boostRect.Colors = new List<Color> {Color.Red};
|
||||||
else if(_boostAmount >= 33 && _boostAmount < 66)
|
else if (_boostAmount >= 33 && _boostAmount < 66)
|
||||||
_boostRect.Colors = new List<Color> { Color.Yellow };
|
_boostRect.Colors = new List<Color> {Color.Yellow};
|
||||||
else if(_boostAmount >= 66)
|
else if (_boostAmount >= 66)
|
||||||
_boostRect.Colors = new List<Color> { Color.Lime };
|
_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