SRL Archive - Suggestions

Some suggestions.


Gu3st...

2010-02-24 02:52:52

IsMouseButtonDown
Explode, Implode
TrimNumbers, TrimLetters, TrimOthers
FindWindow, FindWindowBySize, FrindWindowByTitle
(safe)DrawBitmap

Frement

2010-02-24 04:46:10

I had this plugin i tried to make for scar some time ago, maybe it would work on simba? In scar it gave access violations.

http://pastebin.com/f492fb9f3

EDIT: I also made some changes on my version but i dont remember what, anyway heres new paste: http://pastebin.com/4AL8ZRm6

senrath

2010-02-24 04:51:45

Plugins work a differently in Simba than in SCAR. I'm pretty sure you'd have to rewrite it to work.

Frement

2010-02-24 05:01:02

From: senrath
Plugins work a differently in Simba than in SCAR. I'm pretty sure you'd have to rewrite it to work.


Yeah, but it did not work in scar either. Gave access violations. Anyway, i dont think it would be hard to convert :/

Wizzup?

2010-02-24 08:43:40

From: Zyt3x
IsMouseButtonDown
Explode, Implode
TrimNumbers, TrimLetters, TrimOthers
FindWindow, FindWindowBySize, FrindWindowByTitle
(safe)DrawBitmap


The DrawBitmap is already in Simba. ( DrawBitmapDebugImg )
Explode/Implode, sounds like something for SRL IMO.
IsMouseButtonDown -> Seems like we are missing that ATM.

mixster

2010-02-24 09:08:56

Explode/Implode are in SRL (srl_Explode, srl_Implode or maybe Impload - I can never remember) and can be directly copied and pasted due to no dependencies (it uses Scar defines for using Scar's built in Explode/Implode on newer versions, so doesn't require it).

I think Ray may have mentioned adding an Explode using a TStringList wrapper'y thing, but I may have misheard.

Gu3st...

2010-02-24 10:01:33

Yeah, but I use SCAR (or SIMBA) for others things too, and I often doesn't include SRL..

Wizzup?: I found DrawBitmapDebugImg, but I can't specify what canvas / where to draw it. As it is now it would draw it at 0, 0

i luffs yeww

2010-02-24 18:04:15

Zyt3x, just in case it doesn't get added to Simba, it's always open-source so you can add it to yours specifically.. :p

Anyway. I think DrawBitmapDebugImg is a bit long.. Any reason for not just using DrawBMP/DrawBitmap? Does it do something more? :p Sorry, I've yet to find the chance to get Simba..

Wizzup?

2010-02-24 20:06:29

From: Zyt3x
Yeah, but I use SCAR (or SIMBA) for others things too, and I often doesn't include SRL..

Wizzup?: I found DrawBitmapDebugImg, but I can't specify what canvas / where to draw it. As it is now it would draw it at 0, 0


Check the Tests/PS/ folder. It contains an example on how to use it. (Something with the debug form)

Gu3st...

2010-02-25 03:49:28

From: Wizzup?
Check the Tests/PS/ folder. It contains an example on how to use it. (Something with the debug form)
I found a debugimageform.mufa file, but that didn't really help me and my mission to draw a bmp on my canvas at 10, 30.. :p

But I love the bitmap operations! Will be really handy.
A suggestion would be Scew, where you can scew it too, that way we can make our own 3D engine with textures (was REALLY hard to do in scar)

I ran FormTest and it gave me an access violation

Wizzup?

2010-02-25 06:01:45

From: Zyt3x
I found a debugimageform.mufa file, but that didn't really help me and my mission to draw a bmp on my canvas at 10, 30.. :p

But I love the bitmap operations! Will be really handy.
A suggestion would be Scew, where you can scew it too, that way we can make our own 3D engine with textures (was REALLY hard to do in scar)

I ran FormTest and it gave me an access violation


The point of the DrawBitmapDebugImg is that you do all your drawing on the Bitmap, and once you're done drawing, you draw it to the Debug form. It is A LOT faster this way.

Gu3st...

2010-02-25 18:02:30

Yeah, but I like using canvases for stuff like games (layers) and forms. If SIMBA doesn't allow canvases to be drawn on then I can't use images on forms because I can't draw on Form.Canvas..

mastaraymond

2010-02-25 18:21:34

From: Zyt3x
IsMouseButtonDown
Explode, Implode
TrimNumbers, TrimLetters, TrimOthers
FindWindow, FindWindowBySize, FrindWindowByTitle
(safe)DrawBitmap

TrimNumbers, TrimLetters, TrimOthers.. Those are implemented, see Simba.simb (in SRL include). I found it silly to have 3 functions that do the same, so I made 1 function that can do all of these 3 options.

As for FindWindow, etc, I'm not quite sure.. It would be hard to make those functions work on every os, and you wouldn't really need them anyway.. (If you do, your doing it wrong :p)

And for canvases.. Yes there should be a function that draws a bitmap on a canvas, however note that canvasses aren't the best option.. They kinda suck on Linux.

E: Added DrawBitmap
E2: Added IsMouseButtonDown (for windows)

Wizzup?

2010-02-25 19:46:08

From: mastaraymond
TrimNumbers, TrimLetters, TrimOthers.. Those are implemented, see Simba.simb (in SRL include). I found it silly to have 3 functions that do the same, so I made 1 function that can do all of these 3 options.

As for FindWindow, etc, I'm not quite sure.. It would be hard to make those functions work on every os, and you wouldn't really need them anyway.. (If you do, your doing it wrong :p)

And for canvases.. Yes there should be a function that draws a bitmap on a canvas, however note that canvasses aren't the best option.. They kinda suck on Linux.

E: Added DrawBitmap
E2: Added IsMouseButtonDown (for windows)


Canvasses kinda suck in general. Fixt*

Wizzup?

2010-04-30 05:50:10

From: mastaraymond
E2: Added IsMouseButtonDown (for windows)


(On Linux as well)