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

Menu

Started by Pilotdrone, 24 December 2012 - 04:15 PM
Pilotdrone #1
Posted 24 December 2012 - 05:15 PM
I have this menu and I am rewriting it so it can accommodate bundled cable and I am having trouble with the code.
Here is the link: http://pastebin.com/rf5Bu2pc

So i made some changes and fixed one of the problems now my problem is that I can't turn both of the wires on at the same time and I can't turn them off unless I turn the other one on.
Here is the new link: http://pastebin.com/JNniGRnF
KaoS #2
Posted 24 December 2012 - 07:25 PM
to turn two colours on use rs.setBundledOutput(side,colors.combine(colors.red,colors.blue))

to turn all colours off use rs.setBundledOutput(side,0)
Pilotdrone #3
Posted 24 December 2012 - 07:39 PM
to turn two colours on use rs.setBundledOutput(side,colors.combine(colors.red,colors.blue))

to turn all colours off use rs.setBundledOutput(side,0)
I got the colors to turn on. Now I am trying to get one to turn on with a selection and then the other to turn on with another selection while keeping the first one on also. Then I want to be able to turn one off with a selection and then the other off with another selection.
KaoS #4
Posted 24 December 2012 - 07:47 PM
oh that's fine too

rs.setBundledOutput(side,colors.combine(rs.getBundledOutput(side),colors.red))
will add red to the current output. use the colors.subtract command to do the opposite