Team Spartan Cookies & Milk Forums
[Help] Starfall screen buttons? - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: [Help] Starfall screen buttons? (/thread-2107.html)



[Help] Starfall screen buttons? - Captain Krisu - 07-01-2017

I am recreating my old Anti-Mass Spectometer E2 in SF, but I have never worked with SF screens before. I know how to draw things and such, but how about buttons? I see people use some libraries, but are they necessary?


RE: [Help] Starfall screen buttons? - TheOneAndOnlyTee - 07-01-2017

Buttons are generally used from libs seeing as the already existing method works quite well however you're quite welcome to come up with you're own system if you dislike the others otherwise there are 2 versions of them for you to choose from
One has buttons with positioning akin to that of EGP rects and the other akin to render.drawRect().
I've got an example in my shared for the drawRect if you were curious.


RE: [Help] Starfall screen buttons? - Captain Krisu - 08-01-2017

I'll use the functions from your ExampleScreenPart3, they work really well.