Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("back")
- sleep(1)
- function write(msg)
- monitor.write(msg)
- end
- function pos(x,y)
- monitor.setCursorPos(x,y)
- end
- function scale(scale)
- monitor.setTextScale(scale)
- end
- function color(bg,tc)
- monitor.setBackgroundColor(bg)
- monitor.setTextColor(tc)
- end
- function padString (sText,iLen)
- local iTextLen = string.len(sText)
- if iTextLen < iLen then
- local iDiff = iLen - iTextLen
- return(sText..string.rep(" ",iDiff))
- end
- if iTextLen > iLen then
- return(string.sub(sText,1,iLen))
- end
- return(sText)
- end
- function wipe()
- monitor.clear()
- end
- function reset()
- pos(1,1)
- color(colors.black,colors.white)
- scale(1)
- wipe()
- end
- function button(x,y)
- pos(x+1,y)
- color(colors.gray,colors.gray)
- write("00000")
- end
- function buttons(x,y)
- pos(x+1,y)
- color(colors.cyan,colors.cyan)
- write("00000")
- end
- function buttonn(x,y,text)
- pos(x,y)
- color(colors.gray,colors.gray)
- write("00000000")
- pos(x+1,y)
- color(colors.gray,colors.cyan)
- write(text)
- end
- function check()
- active = reactor.getActive()
- ctemp = reactor.getCasingTemperature()
- ftemp = reactor.getFuelTemperature()
- fuela = reactor.getFuelAmount()
- stored = reactor.getEnergyStored()
- fuelm = reactor.getFuelAmountMax()
- rft = reactor.getEnergyProducedLastTick()
- acti = reactor.getFuelReactivity()
- cons = reactor.getFuelConsumedLastTick()
- end
- shell.run(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement