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

creating a touch screen panel to trigger a redstone signal

Started by V497_Vesper, 23 March 2016 - 03:33 PM
V497_Vesper #1
Posted 23 March 2016 - 04:33 PM
I have just built rocket Silo's each with a rocket inside of it and the rockets I refer to are the Galacticraft and Galaxy Space rockets and I am looking to create a basic touch screen panel for each of the silos so if you press one it opens up that silo, it will be linked to a switch room full of T-flip flops that should trigger when the screen is touched, i am also hoping to link them up to another PC that tells you the status of the silo doors e.g. if you press open on the screen of Silo 1 it will open the doors (I am using the tinkers mechworks advanced drawbridges for this and they use a redstone signal to open and close). now what I am looking for is this:

imagine this is an advanced monitor and the touch screen panels are what shows below, and due to the fact there being eight there will be 4 of them on each side of the monitor

Silo 1 Doors
[Open] [Close]
Silo 1 status: (this will show if the door is open or closed)

Silo 2 Doors
[Open] [Close]
Silo 2 status: (this will show if the door is open or closed)

Silo 3 Doors
[Open] [Close]
Silo 3 status: (this will show if the door is open or closed)

Silo 4 Doors
[Open] [Close]
Silo 4 status: (this will show if the door is open or closed)

And so on up to 8 so how do I even start to do this and i'd like to have a master computer to show the status of all of the Silos

any suggestions will help

regards V497_Vesper
KingofGamesYami #2
Posted 23 March 2016 - 04:39 PM
I would start by getting the program to draw what you want, where you want it to be. After that, I'd work on getting the touch / click events. Then I'd figure out any communication issues you might have (sending redstone signals / rednet messages / peripheral calls).
Lupus590 #3
Posted 23 March 2016 - 04:44 PM
It may be worth using a button API of some kind, I'd suggest using touchpoint.
V497_Vesper #4
Posted 24 March 2016 - 06:12 AM
In writing this reply I am re-addressing a previous post I made concerning Base telemetry I was messing around with Galacticraft and found something called an oxygen sensor that outputs a redstone signal if oxygen is present,

my request was a program that shows you the base condition and i came across something interesting; if i was to invert the redstone signal and connect it to a computer I have the groundwork for a telemetry system now "What does this have to do with creating a touchscreen system for SIlo monitoring have to do with this?" I hear you ask well if you use the paint program on the advanced computer you can draw a rough plan of your base and if that is saved as a background you can use this as an underlay for the program

the code that i have included with show you my GUI that I am hoping can be tailored to the Silo monitoring system

Pastebin code for the program:
uRibcyBg

image of the GUI I designed using a tutorial on YouTube:



using this i can imagine an indicator lighting up in the area that is damaged and using this same system can be used for monitoring the rocket Silos
please give me your input and let me know if you think i can kill 2 birds with one stone using this method

I would also like to put this on a monitor too

regards V497_Vesper
Edited on 24 March 2016 - 12:41 PM