Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local term = require("term")
- local event = require("event")
- local unicode = require("unicode")
- local gpu = component.gpu
- local resw = 40
- local resh = 12
- gpu.bind('93f')
- function cText(y, str)
- gpu.set((resw/2-string.len(str)/2)+2, y, str)
- end
- function drawUI()
- term.clear()
- local ico = {}
- for i = 1, 10 do ico[i] = unicode.char(math.random(1000,2000)) end
- gpu.setResolution(resw,resh)
- gpu.setForeground(0xFF9900)
- cText(2, ico[1].." ATYPICAL'S DIAMOND HUNTER "..ico[1])
- gpu.setForeground(0x77FF77)
- gpu.set(3, 4, ico[2].." XP:")
- gpu.set(3, 5, ico[2].." RF:")
- gpu.setForeground(0x9999FF)
- gpu.set(3, 6, ico[3].." Diamond Patches:")
- gpu.set(3, 7, ico[3].." Total Diamonds:")
- gpu.setForeground(0xFF99FF)
- gpu.set(3, 9, ico[4].." X: ".." Y: ")
- gpu.setBackground(0xFF4444)
- gpu.setForeground(0x000000)
- for i = 1, 3 do
- gpu.set(32, 8+i, " ")
- end
- gpu.set(32, 10, " STOP")
- gpu.setBackground(0x000000)
- gpu.setForeground(0xFFFFFF)
- end
- function getMessage()
- --local msgTable = event.pull('modem_message')
- gpu.set(1,1,'ASDASDASD')
- end
- event.listen('modem_message', getMessage)
- while true do
- drawUI()
- os.sleep(3)
- end
- gpu.setResolution(80,25)
- gpu.setForeground(0xFFFFFF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement