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

Reactor Controll (Big reactors) over Touchscreen

Started by Nakopa, 27 December 2014 - 01:42 PM
Nakopa #1
Posted 27 December 2014 - 02:42 PM
I need some help making buttons for reactor controll. So far this is my code:http://pastebin.com/EH6MLgF1
and since im a noob in lua any help is appriciated :)/>
KingofGamesYami #2
Posted 28 December 2014 - 02:59 PM
You have two options here:

1 - Make your own buttons

2 - Use a button API

Since you are a new member, I'd recommend using a button api from the forums. You can find several in the apis and utilities section of the forum. Since you are working on a monitor, lyqyd's touchpoint api is probably the best option.


If you really want to make your own buttons, take a look at monitor_touch events and think about how you could detect if they clicked on an area.