2010-04-04 18:35:49 -04:00
|
|
|
function ps_rs_GetUpText: String; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
|
|
|
end;
|
|
|
|
|
2010-04-04 18:35:49 -04:00
|
|
|
function ps_rs_GetUpTextAt(x, y : integer): string; extdecl;
|
2010-01-28 18:34:03 -05:00
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.GetUpTextAtEx(x,y,true);
|
|
|
|
end;
|
|
|
|
|
2010-04-04 18:35:49 -04:00
|
|
|
function ps_BitmapFromText(const text, font: String): integer; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
var
|
|
|
|
bmp: TMufasaBitmap;
|
|
|
|
begin
|
|
|
|
bmp := CurrThread.Client.MOCR.TextToFontBitmap(text, font);
|
|
|
|
Result := CurrThread.Client.MBitmaps.AddBMP(bmp);
|
|
|
|
end;
|
|
|
|
|
2010-04-04 18:35:49 -04:00
|
|
|
function ps_MaskFromText(const text, font: String): TMask; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
|
|
|
end;
|
|
|
|
|
2010-04-18 17:26:21 -04:00
|
|
|
procedure ps_TPAFromTextWrap(const text, font: String;var w,h : integer;out TPA : TPointArray); extdecl;
|
2010-02-05 21:21:27 -05:00
|
|
|
begin
|
|
|
|
TPA := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
|
|
end;
|
|
|
|
|
2010-04-18 17:26:21 -04:00
|
|
|
function ps_TPAFromText(const text, font: String;var w,h : integer): TPointArray; extdecl;
|
2010-01-25 08:59:44 -05:00
|
|
|
begin
|
|
|
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
|
|
end;
|
2010-01-31 07:29:33 -05:00
|
|
|
|
2010-04-21 11:10:40 -04:00
|
|
|
function ps_GetTextATPA(const ATPA : T2DPointArray; const maxvspacing : integer; const font : string): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.GetTextATPA(ATPA,maxvspacing,font);
|
|
|
|
end;
|
|
|
|
|
2010-04-04 18:35:49 -04:00
|
|
|
function ps_GetTextAt(const atX, atY, minvspacing, maxvspacing, hspacing,
|
|
|
|
color, tol, len: integer;const font: string): string; extdecl;
|
2010-01-31 07:29:33 -05:00
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.GetTextAt(atx,aty,minvspacing,maxvspacing,hspacing,color,tol,len,font);
|
|
|
|
end;
|
2010-04-04 18:35:49 -04:00
|
|
|
|
2010-04-21 11:10:40 -04:00
|
|
|
function ps_GetTextAtEx(const xs,ys,xe,ye, minvspacing, maxvspacing, hspacing,
|
|
|
|
color, tol: integer;const font: string): string; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.GetTextAt(xs,ys,xe,ye,minvspacing,maxvspacing,hspacing,color,tol,font);
|
|
|
|
end;
|
|
|
|
|
2010-04-04 18:35:49 -04:00
|
|
|
function ps_LoadSystemFont(const SysFont : TFont; const FontName : string) : boolean;extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.Fonts.LoadSystemFont(SysFont,FontName);
|
|
|
|
end;
|
2010-04-30 17:25:15 -04:00
|
|
|
|
|
|
|
function ps_LoadFont(const FontName: string; shadow: boolean): boolean; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.Fonts.LoadFont(FontName, shadow);
|
|
|
|
end;
|
|
|
|
|
|
|
|
function ps_FreeFont(const FontName: string): boolean; extdecl;
|
|
|
|
begin
|
|
|
|
result := CurrThread.Client.MOCR.Fonts.FreeFont(FontName);
|
|
|
|
end;
|
|
|
|
|
|
|
|
|