Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glasses=peripheral.wrap("left")
- g=glasses
- local currentPlayer=nil
- local guiSize="normal"
- local guiSizes={
- ["small"]={["x"]=1920,["y"]=1057},
- ["normal"]={["x"]=960,["y"]=540},
- ["large"]={["x"]=640,["y"]=353},
- ["auto"]={["x"]=,["y"]=},
- }
- local screenX=0
- local screenY=0
- function setScreenSize(guiSize,x,y)
- if guiSize==nil then
- screenX=x
- screenY=y
- return true,screenX,screenY
- else
- screenX=guiSizes[guiSize]["x"]
- screenY=guiSizes[guiSize]["y"]
- return true,screenX,screenY
- end
- return false
- end
- local function drawBackground()
- glasses.clear()
- backgroundBox=glasses.addBox(0,0,screenX,screenY,0xff0000,50)
- glasses.addBox(0,0,screenX,10,0x000000,255)
- glasses.addBox(0,0,0,screenY*,0x000000,255)
- glasses.addBox(screenX,0,screenX,screenY*0.05,0x000000,255)
- glasses.addBox(0,screenY,screenX,screenY*0.05,0x000000,255)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement