mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-14 21:35:07 -05:00
865779c59a
Windows users now have the option to use a console or not (it's the little CMD-image-button). Non-important information will still be written to the console (so you must open it if you want some lil extra information). Now default compiles *without* the -WG switch, otherwise you LCL will raise exceptions when the Console is closed Added some exceptions to the Files unit, rather than returning -1. Use mDebug to write something to the terminal (it's inside the MufasaBase unit). git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@581 3f818213-9676-44b0-a9b4-5e4c4e03d09d
39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
function rs_GetUpText: String; extdecl;
|
|
begin
|
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
|
end;
|
|
|
|
function rs_GetUpTextAt(x, y : integer): string; extdecl;
|
|
begin
|
|
result := CurrThread.Client.MOCR.GetUpTextAtEx(x,y,true);
|
|
end;
|
|
|
|
function BitmapFromText(text, font: String): integer; extdecl;
|
|
var
|
|
bmp: TMufasaBitmap;
|
|
begin
|
|
bmp := CurrThread.Client.MOCR.TextToFontBitmap(text, font);
|
|
Result := CurrThread.Client.MBitmaps.AddBMP(bmp);
|
|
end;
|
|
|
|
function MaskFromText(text, font: String): TMask; extdecl;
|
|
begin
|
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
|
end;
|
|
|
|
procedure TPAFromTextWrap(text, font: String;out w,h : integer;out TPA : TPointArray); extdecl;
|
|
begin
|
|
TPA := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
end;
|
|
|
|
function TPAFromText(text, font: String;out w,h : integer): TPointArray; extdecl;
|
|
begin
|
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
end;
|
|
|
|
function GetTextAt(atX, atY, minvspacing, maxvspacing, hspacing,
|
|
color, tol, len: integer; font: string): string; extdecl;
|
|
begin
|
|
result := CurrThread.Client.MOCR.GetTextAt(atx,aty,minvspacing,maxvspacing,hspacing,color,tol,len,font);
|
|
end;
|