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

Can I get some help

Started by Fizzclan, 08 April 2015 - 12:34 AM
Fizzclan #1
Posted 08 April 2015 - 02:34 AM
Ok so I need a touchscreen monitor program for my base on DW20

Basically I have alot of mob farms and I want to condense them into on CC program, but I have no idea where to start,
I was planning on using DW20's button api, but have no idea where to start.

I need to use the api to emmit a redstone signal when I click a button on the monitor, to turn on/off the farm.

Any suggestions?
HPWebcamAble #2
Posted 08 April 2015 - 05:02 AM
Try writing some code, and when you get stuck, post the code here with your question


This is some really basic pseudo code:

Spoilerinitialize buttons
draw buttons

continue forever:
wait for input

was the input a user clicking a button?
if it was, toggle the button and the redstone associated with it

I say its basic because there are things to think about, like finding the monitor and possibly handling pages if the items can't fit on the monitor
KingofGamesYami #3
Posted 08 April 2015 - 12:56 PM
I'd advise against using DW20's api, use Lyqyd's touchpoint api instead. It's much simpler.
apemanzilla #4
Posted 08 April 2015 - 02:06 PM
I'd advise against using DW20's api, use Lyqyd's touchpoint api instead. It's much simpler.

I wouldn't say "simpler," more like "more useful".
Edited on 08 April 2015 - 12:06 PM