Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI = require('GUI')
- local component = require("component")
- local term = require("term")
- local sides = require("sides")
- local colors = require('src.constants.myColors')
- function log(val)
- if (type(val) == 'table') then
- for k, v in pairs(val) do
- print(k,v)
- end
- elseif (type(val) == 'function') then
- print("Value is a function")
- else
- print(val)
- end
- end
- function split_string(s,d)
- if (d == nil) then
- d = '%s'
- end
- local tmp = {}
- local counter = 1
- for p in string.gmatch(s, "([^" .. d .. "]+)") do
- tmp[counter] = p
- counter = counter + 1
- end
- return tmp
- end
- local mainContainer = GUI.fullScreenContainer()
- mainContainer:addChild(GUI.panel(1,1,mainContainer.width, mainContainer.height, colors.blue))
- mainContainer:drawOnScreen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement