Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("Apis/DesignUtil")
- os.loadAPI("Apis/AccountSytem")
- os.loadAPI("Apis/windowSystem")
- DesignUtil.setDesign("whiteLightGray")
- local background,topBar =DesignUtil.getDesign()
- local window =windowSystem.createWindow("Completed",2,2,48,16,false)
- local button=
- {
- text="Setup completed, start using your Device";
- x=4;
- y=5;
- W=40;
- H=1;
- }
- paintutils.drawImage(background,1,1)
- windowSystem.drawWindow(window)
- function registerClick(x,y)
- if x >= button.x and x <= button.x + button.W - 1 and y >= button.y and y <= button.y + button.H then
- shell.run("OSCore/loginUtil")
- end
- end
- while true do
- term.setBackgroundColor(colors.white)
- term.setCursorPos(button.x,button.y)
- print(button.text)
- event, button, xPos, yPos = os.pullEvent("mouse_click")
- registerClick(xPos,yPos)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement