2010-01-26 11:51:36 -05:00
|
|
|
function rs_GetUpText: String; ps_decl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
|
|
|
end;
|
|
|
|
|
2010-01-26 11:51:36 -05:00
|
|
|
function BitmapFromText(text, font: String): integer; ps_decl;
|
2010-01-25 08:59:44 -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-26 11:51:36 -05:00
|
|
|
function MaskFromText(text, font: String): TMask; ps_decl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
|
|
|
end;
|
|
|
|
|
2010-01-26 11:51:36 -05:00
|
|
|
function TPAFromText(text, font: String): TPointArray; ps_decl;
|
2010-01-25 08:59:44 -05:00
|
|
|
var
|
|
|
|
w,h : integer;
|
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
|
|
end;
|