Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReactorStatus = {{false,0,0},{false,0,0},{false,0,0}}
- local w, h = term.getSize()
- local function Clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- function CheckReactors()
- end
- function ReactorControl(i)
- Clear()
- print("Reactor ",i)
- print("fuel ,ReactorStatus[i][2])
- print("Online? ",ReactorStatus[i][1])
- print("Temperature ",ReactorStatus[i][3])
- print("=options=")
- local options = {"Stop/Start","Release Water","return"}
- local n = CUI(options,6)
- if options[n] == "Stop/Start" then
- ReactorControl(i)
- elseif options[n] == "Release Water" then
- ReactorControl(i)
- elseif options[n] == "Return" then
- end
- end
- function Menu()
- CheckReactors()
- term.setBackgroundColor(colors.lightBlue)
- Clear()
- print("Reactor Control Terminal")
- print("=Reactors=")
- if ReactorStatus[1][1] == true then print("Reactor 1 Running") else print("Reactor 1 Offline") end
- if ReactorStatus[2][1] == true then print("Reactor 2 Running") else print("Reactor 2 Offline") end
- if ReactorStatus[3][1] == true then print("Reactor 3 Running") else print("Reactor 3 Offline") end
- print("=Options=")
- local options = {"Reactor 1","Reactor 2","Reactor_2"}
- local n = CUI(options,7)
- ReactorControl(n)
- Menu()
- end
- Menu()
Add Comment
Please, Sign In to add comment