2009-11-02 05:18:35 -05:00
|
|
|
function rs_GetUpText: String;
|
|
|
|
begin
|
2009-12-22 17:52:02 -05:00
|
|
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
2009-11-02 05:18:35 -05:00
|
|
|
end;
|
2010-01-24 06:45:02 -05:00
|
|
|
|
2010-01-24 10:04:07 -05:00
|
|
|
function BitmapFromText(text, font: String): integer;
|
2010-01-24 06:45:02 -05:00
|
|
|
var
|
|
|
|
bmp: TMufasaBitmap;
|
|
|
|
begin
|
|
|
|
writeln('BitmapFromText: ' + text + ' ' + font);
|
|
|
|
bmp := CurrThread.Client.MOCR.TextToFontBitmap(text, font);
|
|
|
|
Result := CurrThread.Client.MBitmaps.AddBMP(bmp);
|
|
|
|
end;
|
|
|
|
|
2010-01-24 10:04:07 -05:00
|
|
|
function MaskFromText(text, font: String): TMask;
|
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
|
|
|
end;
|
2010-01-24 06:45:02 -05:00
|
|
|
|
2010-01-24 10:04:07 -05:00
|
|
|
function TPAFromText(text, font: String): TPointArray;
|
2010-01-24 06:45:02 -05:00
|
|
|
var
|
|
|
|
w,h : integer;
|
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
|
|
end;
|