mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-04 14:42:23 -05:00
b2a6b0e15c
Define PS_StdCall to use StdCall. git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@479 3f818213-9676-44b0-a9b4-5e4c4e03d09d
26 lines
673 B
PHP
26 lines
673 B
PHP
function rs_GetUpText: String; ps_decl;
|
|
begin
|
|
Result := CurrThread.Client.MOCR.GetUpTextAtEx(7, 7, true);
|
|
end;
|
|
|
|
function BitmapFromText(text, font: String): integer; ps_decl;
|
|
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; ps_decl;
|
|
begin
|
|
Result := CurrThread.Client.MOCR.TextToMask(text,font);
|
|
end;
|
|
|
|
function TPAFromText(text, font: String): TPointArray; ps_decl;
|
|
var
|
|
w,h : integer;
|
|
begin
|
|
Result := CurrThread.Client.MOCR.TextToFontTPA(text, font, w, h);
|
|
end;
|