
Originally Posted by
Nava2
I think my choose option uses CreateTPAFromText....
Doubt it:
Code:
Search "CreateTPAFromText" (7 hits in 2 files)
C:\Remake\Includes\srl\SRL\core\Math.scar (6 hits)
Line 6: // * function CreateTPAFromText(Txt : string; Chars : string) : TPointArray; // * by Raymond
Line 7: // * function CreateTPAFromText(Txt : string; Chars : Integer) : TPointArray; // * by Raymond
Line 42: function CreateTPAFromText(Txt : string; Chars : string) : TPointArray;
Line 46: function CreateTPAFromText(Txt : string; Chars : string) : TPointArray;
Line 54: function CreateTPAFromText(Txt : string; Chars : Integer) : TPointArray;
Line 58: function CreateTPAFromText(Txt : string; Chars : Integer) : TPointArray;
C:\Remake\Includes\srl\SRL\core\Players.scar (1 hits)
Line 121: Players[I].NickTPA := CreateTPAFromText(Players[I].Nick, UpChars);
Everything else just uses
Code:
function LoadTextTPA(Text: string; Chars: Integer; var height: integer): TPointArray;
var
DC: HDC;
CTS, w, h :INteger;
BMP: Integer;
begin;
BMP := CreateBitmapMaskFromText(Text,Chars);
DC := GetClientCanvas.Handle;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(0);
GetBitmapSize(BMP,W,H);
SetTargetDc(GetBitmapDc(BMP));
FindColorsTolerance(Result,clwhite,0,0,w+1,h+1,0);
height := h - 1;
SetTargetDC(DC);
ColorToleranceSpeed(CTS);
FreeBitmap(BMP);
end;
Good find however, silly mistake on my side :$