Posted 13 August 2014 - 06:56 AM
Hello there I am new to computercraft and want to make a simple menu.. I want a menu that can controle lights. But i want it to be able to toggle between if the lights are on or off… So the menu will have a list like so….
NUCLEAR FACTORY LIGHT CONTROL PAGE:1
OPERATIONS
*************************************************************
[1] Fence Lighting………………………[OFF]
[2] Main Hall Lighting…………………..[OFF]
[3] Nuclear Development Room…….[OFF]
[4] Control Room Lights……………….[OFF]
[5] Something Here Lights……………[OFF]
[6] You Get The Point………………….[OFF]
[7] I Ran Out of Stuff……………………[OFF]
[8] Nuclear Core Room………………..[OFF]
Hit [SPACE] for next page
NUCLEAR FACTORY LIGHT CONTROL PAGE:1
OPERATIONS
*************************************************************
[1] Fence Lighting………………………[OFF]
[2] Main Hall Lighting…………………..[ON]
[3] Nuclear Development Room…….[ON]
[4] Control Room Lights……………….[ON]
[5] Something Here Lights……………[OFF]
[6] You Get The Point………………….[OFF]
[7] I Ran Out of Stuff……………………[OFF]
[8] Nuclear Core Room………………..[ON]
Hit [SPACE] for next page
So i want to have each light able to be toggle… But with each option it has its own menu… Lets say i picked option [1] then this would pop up…
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
So i can turn each light on or off and it will update it on the main menu, and i would also like to be able to mirror the main menu on a screen…
I would also like to be able to have the option i pick give me a little notification that i selected the right option.. like this
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Saving state of Fence Lighting
Fence Lighting ON
^^^^ and this will happen with each option like so….
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Saving state of Fence Lighting
Fence Lighting OFF
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Checking Status of "Fence Lighting"
Please Wait……….
Done
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Returning to Main Menu
Please Wait………
My question is how do i make this and how do i make this work with bundle cable…
NUCLEAR FACTORY LIGHT CONTROL PAGE:1
OPERATIONS
*************************************************************
[1] Fence Lighting………………………[OFF]
[2] Main Hall Lighting…………………..[OFF]
[3] Nuclear Development Room…….[OFF]
[4] Control Room Lights……………….[OFF]
[5] Something Here Lights……………[OFF]
[6] You Get The Point………………….[OFF]
[7] I Ran Out of Stuff……………………[OFF]
[8] Nuclear Core Room………………..[OFF]
Hit [SPACE] for next page
NUCLEAR FACTORY LIGHT CONTROL PAGE:1
OPERATIONS
*************************************************************
[1] Fence Lighting………………………[OFF]
[2] Main Hall Lighting…………………..[ON]
[3] Nuclear Development Room…….[ON]
[4] Control Room Lights……………….[ON]
[5] Something Here Lights……………[OFF]
[6] You Get The Point………………….[OFF]
[7] I Ran Out of Stuff……………………[OFF]
[8] Nuclear Core Room………………..[ON]
Hit [SPACE] for next page
So i want to have each light able to be toggle… But with each option it has its own menu… Lets say i picked option [1] then this would pop up…
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
So i can turn each light on or off and it will update it on the main menu, and i would also like to be able to mirror the main menu on a screen…
I would also like to be able to have the option i pick give me a little notification that i selected the right option.. like this
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Saving state of Fence Lighting
Fence Lighting ON
^^^^ and this will happen with each option like so….
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Saving state of Fence Lighting
Fence Lighting OFF
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Checking Status of "Fence Lighting"
Please Wait……….
Done
Fence Lighting Control Selected
_________________________
[1] Turn "Fence Lighting" OFF
[2] Turn "Fence Lighting" ON
[3] Check Status
[4] Return to Main Menu
Returning to Main Menu
Please Wait………
My question is how do i make this and how do i make this work with bundle cable…
Edited on 13 August 2014 - 05:03 PM