This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ShadowWarrior979's profile picture

How to make buttons on a monitor

Started by ShadowWarrior979, 09 September 2013 - 10:40 AM
ShadowWarrior979 #1
Posted 09 September 2013 - 12:40 PM
Title: How to make buttons on a monitor
Description: I would like a monitor with 1 button on one saying Lights on and then when you press it it would say turn off and it would be red normal and when you turn the lights on it turns green is this possible ?
Engineer #2
Posted 09 September 2013 - 03:34 PM
http://www.computercraft.info/forums2/index.php?/topic/11046-clickable-buttons-in-cc/

Not going indepth, you should understand how to make a button after this tutorial :)/>
CCJJSax #3
Posted 09 September 2013 - 08:38 PM
This guy made an API for using buttons. This API makes it really easy. check it out http://www.youtube.com/watch?v=1nuMDtmnEjg
Lyqyd #4
Posted 09 September 2013 - 09:59 PM
We generally don't recommend DW20's button API, as it's rather terrible. We suggest using Touchpoint instead.
Kingdaro #5
Posted 09 September 2013 - 10:05 PM
We generally don't recommend DW20's button API, as it's rather terrible. We suggest using Touchpoint instead.
More like you suggest. :P/>

But yeah, jokes aside, please stop using Direwolf's API, and Lyqyd's touchpoint is probably the best alternative available.
Dave-ee Jones #6
Posted 10 September 2013 - 03:51 AM
We generally don't recommend DW20's button API, as it's rather terrible. We suggest using Touchpoint instead.

Upholding yours and chucking other people's down…Bully! :P/>
Just because it isn't good doesn't mean he didn't put a lot of effort into it. Everyone is learning. :)/>
I am only just learning how to draw objects myself (boxes,circles,interactables etc) :D/>
Kingdaro #7
Posted 10 September 2013 - 08:54 AM
Yeah, he did put effort into it and I appreciate his kindness towards our community. That doesn't change the fact that he made a really crappy API, and sugarcoating it just because he's popular doesn't help anybody.