SRL Archive - S.M.A.R.T. Questions and Answers.

TSmart ???


Bixby Sayz

2015-02-02 18:59:49

I noticed one of the fastest script winners used TSmart.Graphics to draw to the S.M.A.R.T. canvas. Nice.

Edit: I stand corrected. I saw it here: Alpha Transparency for Simba (No Plugins)

But I can't find any reference to this anywhere. The autocomplete in Simba reveals nothing. Searching here on the threads reveals nothing. Searching the SRL includes reveals nothing. Searching the S.M.A.R.T. source code reveals nothing. You see where I am going with this?

Anyone have some info/documentation on this?

KeepBotting

2015-02-02 19:25:06

I think TSmart is the instance of SMART that's paired to your script

And I think (italics cuz I'm quite unsure on this one) that TSmart is actually an instance of TClient which is the only thing I could find that's actually documented

Bixby Sayz

2015-02-02 19:39:13

His example code as posted will not compile, giving an error because TSmart is unknown. So obviously there is something somewhere defining that type he is using.

I'll mess around with TClient.

riwu

2015-02-02 19:45:59


type TSmart = record
__Target, __PID: Integer;
__Width, __Height: Integer;
__ForceNew: Boolean;
__Graphics: TGraphics;
end;
It's a record in the glx include.

Bixby Sayz

2015-02-02 20:00:43

Now to find the glx include. LOL why do I feel like I am chasing my tail?

Brandon

2015-02-02 21:19:03

From: Bixby Sayz
Now to find the glx include. LOL why do I feel like I am chasing my tail?



TSmart and TGraphics is an API I wrote for loading SMART before SRL-6. Essentially wrapping all SMART's functions into an Object-Oriented class as well as graphics functions for it.

It was adopted by various different developers that liked the style:

Flight's adaptation still exists:

https://github.com/J-Flight/AeroLib/blob/master/misc/connection/Smart.simba


Original:

https://github.com/Brandon-T/SRL-GLX/tree/master/Misc



But it's a quite old now..

SRL-6 and OSRS handles SMART loading properly now.. but I hate the style so I still use my own APIs; Updated of course. I'm not aware of anyone else that uses it. What competition is this?


EDIT: Ahh.. I see.. Riwu used it in "Fastest Competition" thing.

Patriq

2015-02-03 20:17:50

From: Brandon
TSmart and TGraphics is an API I wrote for loading SMART before SRL-6. Essentially wrapping all SMART's functions into an Object-Oriented class as well as graphics functions for it.

It was adopted by various different developers that liked the style:

Flight's adaptation still exists:

https://github.com/J-Flight/AeroLib/blob/master/misc/connection/Smart.simba


Original:

https://github.com/Brandon-T/SRL-GLX/tree/master/Misc



But it's a quite old now..

SRL-6 and OSRS handles SMART loading properly now.. but I hate the style so I still use my own APIs; Updated of course. I'm not aware of anyone else that uses it. What competition is this?


EDIT: Ahh.. I see.. Riwu used it in "Fastest Competition" thing.


I still use it and I love it :D Please update if it needs to get updated :D I love your work! You make me achieve more and more! Thank you alot!

Bixby Sayz

2015-02-06 19:28:11

I thank you.

Lol this is turning into much more of a quest than I bargained for. Just realized now I have to build the glx.dll and I don't have a machine setup to do that. I always seem to "fall down the rabbit hole" when setting out to do something "simple."

the bank

2015-02-11 09:27:22

From: Bixby Sayz
I thank you.

Lol this is turning into much more of a quest than I bargained for. Just realized now I have to build the glx.dll and I don't have a machine setup to do that. I always seem to "fall down the rabbit hole" when setting out to do something "simple."


Just download the binaries….

https://github.com/Brandon-T/GLX/releases

Its a beautiful release, been messing around with it a lot over the past couple days.