Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Import libraries
- local GUI = require("GUI")
- local system = require("System")
- ---------------------------------------------------------------------------------
- -- Add a new window to MineOS workspace
- local workspace, window, menu = system.addWindow(GUI.filledWindow(1, 1, 60, 20, 0xE1E1E1))
- -- Add single cell layout to window
- --local layout = window:addChild(GUI.layout(1, 1, window.width, window.height, 1, 1))
- -- Add nice gray text object to layout
- window:addChild(GUI.text(1, 1, 0x4B4B4B, "qwe"))
- window.onResize = function(newWidth, newHeight)
- window.backgroundPanel.width, window.backgroundPanel.height = newWidth, newHeight
- layout.width, layout.height = newWidth, newHeight
- end
- ---------------------------------------------------------------------------------
- -- Draw changes on screen after customizing your window
- workspace:draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement