mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-04 14:42:23 -05:00
26 lines
637 B
PHP
26 lines
637 B
PHP
|
function rs_GetUpText: String;
|
||
|
begin
|
||
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
||
|
end;
|
||
|
|
||
|
function BitmapFromText(text, font: String): integer;
|
||
|
var
|
||
|
bmp: TMufasaBitmap;
|
||
|
begin
|
||
|
writeln('BitmapFromText: ' + text + ' ' + font);
|
||
|
bmp := CurrThread.Client.MOCR.TextToFontBitmap(text, font);
|
||
|
Result := CurrThread.Client.MBitmaps.AddBMP(bmp);
|
||
|
end;
|
||
|
|
||
|
function MaskFromText(text, font: String): TMask;
|
||
|
begin
|
||
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
||
|
end;
|
||
|
|
||
|
function TPAFromText(text, font: String): TPointArray;
|
||
|
var
|
||
|
w,h : integer;
|
||
|
begin
|
||
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
||
|
end;
|