Here it is: http://pastebin.com/QxG3R33B
So, I'm going to try to explain as best I can the new code. First is what to do before use, and how to use.
Before:
There is a section with variables, in there is: name, side, and option.
-Name is your name, simple. Leave " " around it.
-Side is the side the bundled cable is connected to.
For each option you want you must add a line to the option array. The array looks like this:
local option = {
--{Name, wire color, 0}
{"House Lights", colors.white, 0},
}
The third line is what you need to make for each option. So if I wanted to add lets say, "Front Door", I would add this below the "House Lights":{"Front Door", colors.red, 0}
. Giving me: local option = {
--{Name, wire color, 0}
{"House Lights", colors.white, 0},
{"Front Door", colors.red, 0},
}
So the name that will show in the menu, the wire color, and the variable used to tell if its on or off, default is 0.How to use:
On the screen, if I had the option above, I would see this:
1 - House Lights [OFF] ON
2 - Front Door [OFF] ON
At the bottom it would ask me for my input. This is where you enter the NUMBER of what you want to toggle, and only the number. So to turn House Lights on, I type 1 and hit enter. *ON*. To turn off, 1, *OFF*. The brackets will move to whichever the current status is, so don't worry.