SRL/SRL-6 — pull request #162 by SRLTheMayor (2014-12-06 23:50:24+00:00)
Title: Added minimap.enableRest()

I've also got minimap.getRunEnergy() which is accurate +/-4% when run/rest is enabled/disabled. Not sure if you want to add while clarity finishes the tesseract version.

function TRSMinimap.getRunEnergy(): Integer; override;
var
count: Integer;
begin

if getColor(point(self.button[MM_BUTTON_RUN].bounds.x1 + 29, self.button[MM_BUTTON_RUN].bounds.y1 + 21)) = 16777215 then
result := 100
else begin
count := countColorTolerance(1126267, minimap.button[MM_BUTTON_RUN].bounds, 9, colorSetting(2, 0.20, 0.94));

if self.isResting() then
result := round((-0.0005 * pow(count, 2)) + (0.4792 * count) + 0.5272)
else if self.isRunEnabled() then
result := round((0.0002 * pow(count, 2)) + (0.298 * count) + 2.9935)
else
result := round((0.0001 * pow(count, 2)) + (0.2481 * count) + 1.3117)
end;

print('minimap.getRunEngery(): result = ' + toStr(result) + '%');
end;