
Originally Posted by
bonsai
What does the box look like when you debug it? what is tpa length when you debug it?
E: It seems as though it only works when a large group of people are present but not a few. This was the code I used
Simba Code:
TPA := minimap.getDots(MM_DOT_PLAYER, minimap.getBounds());
debugTPA(tpa);
When there are only a few it shoots out
Code:
Error: The Points you passed to DrawATPA exceed the bitmap's bounds at line 575
Which is
Simba Code:
procedure TMufasaBitmap.drawText(txt: string; pnt: TPoint; font: string; shadow: boolean; color: TColor); overload;
var
tpa, tpaShadow: TPointArray;
begin
tpa := tpaFromText(txt, font);
offsetTPA(tpa, pnt);
if (shadow) then
begin
tpaShadow := copyTPA(tpa);
offsetTPA(tpaShadow, point(1, 1));
self.drawTPA(tpaShadow, __SHADOW_COLOR); //<- here
end;
self.drawTPA(tpa, color);
end;
e2: Is there anyway to have it work for like 1 or 2 dots?