SRL Archive - General Botting Help

TMufasaBitmap and Lape


bg5

2013-12-17 11:32:38

 TMufasaBitmap.Create;   
Exception in Script: Unknown declaration "Create" at line 11, column 7

As the TMufasaBitmap seems to be empty in Lape, what is Lape equivalent of it?

I need to export bitmap, in PascalScript I do something like this:

tb : Tbitmap;
tm : Tmufasabitmap;
begin
tm := GetMufasaBitmap(bmp);
tb := tm.ToTBitmap;
tb.Handle; // <- this is what I need
end;

Now, I don't know how to do it in Lape, I'm confused.

Brandon

2013-12-17 11:41:23

TmufasaBitmap isn't empty. There's just no intellisense for it(well at least in my simba there's none..
What do you mean export? I doubt you can export anything from Simba. What do you need the handle for?

bg5

2013-12-17 12:17:16

From: Brandon
TmufasaBitmap isn't empty. There's just no intellisense for it(well at least in my simba there's none..
What do you mean export? I doubt you can export anything from Simba. What do you need the handle for?


I need to export (or send or whatever) bitmap from Simba to a plugin.

What Simba version do you have? I've just downloaded newest Simba version. It has intellisense for TMufasaBitmap, but compiler doesn't know any method, so I think it's empty:


program new;
var Muf :TMufasaBitmap;
begin
Muf.FastReplaceColor();

end.

Exception in Script: Unknown declaration "FastReplaceColor" at line 4, column 6

Olly

2013-12-17 13:32:14

Dgby got rid off all the 'fast' in Lape, so it's just ReplaceColor.

Olly

2013-12-17 13:55:10


var
bmp: TMufasaBitmap;
tbmp: TBitmap;
begin
bmp.init();
bmp.setSize(50, 50);

tbmp := bmp.toTBitmap();
writeln(tbmp.getBitmapHandle());

bmp.free();
tbmp.free();
end.

bg5

2013-12-17 14:17:26

From: Olly

var
bmp: TMufasaBitmap;
tbmp: TBitmap;
begin
bmp.init();
bmp.setSize(50, 50);

tbmp := bmp.toTBitmap();
writeln(tbmp.getBitmapHandle());

bmp.free();
tbmp.free();
end.


Thanks!

Also, do you know what happened to TFont ?

var f:TFont;
begin
f.init();
f.size := 12;
end.

Exception in Script: Unknown declaration "size" at line 4, column 2

Olly

2013-12-17 14:55:56

From: bg5
Thanks!

Also, do you know what happened to TFont ?

var f:TFont;
begin
f.init();
f.size := 12;
end.

Exception in Script: Unknown declaration "size" at line 4, column 2


set and get… I hate the syntax but its better than nothing i guess

f.setSize(5).