Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local showList=false
- --Funcs
- os.loadAPI("button")
- os.loadAPI("accounts.lua")
- accounts.init()
- m = peripheral.wrap("top")
- m.clear()
- local oldterm = term.redirect(m)
- function fillTable()
- --button.setTable("List",toggleList,1,10,2,2)
- --button.setTable("M0rt0sh",workshop,1,1,1,1)
- --button.screen()
- end
- function getClick()
- --event,side,x,y = os.pullEvent("monitor_touch")
- --button.checkxy(x, y)
- end
- function list()
- --button.flash()
- --all underneath this you can edit the fuction to you own needs.
- --paintutils.drawLine(3, 3, 3, 5 ,colours.green)
- a = accounts.getAccounts()
- m.setCursorPos(1, 3)
- for i = 1, #a do
- m.setTextColor(colors.green)
- write(a[i].name,1,3+i)
- m.setTextColor(colors.white)
- write(" has ",1,3+i)
- m.setTextColor(colors.green)
- write(a[i].cash,1,3+i)
- m.setTextColor(colors.white)
- write("$. Using: ",1,3+i)
- m.setTextColor(colors.green)
- write(a[i].FPT,1,3+i)
- m.setTextColor(colors.white)
- write(" FE/t\n",1,3+i)
- end
- end
- while true do
- m.clear()
- list()
- end
Advertisement
Add Comment
Please, Sign In to add comment