Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function drawMenu()
- setBackgroundColor(colors.gray)
- clear()
- setBackgroundColor(colors.red)
- setTextColor(colors.orange)
- setCursorPos(5,4)
- write("SKYBLOCK")
- setCursorPos(18,4)
- write("RUDY ITP")
- setCursorPos(7,6)
- write("SWIATY")
- setCursorPos(18,6)
- write("WALUTA")
- setCursorPos(8,8)
- write("SPAWN")
- setCursorPos(18,8)
- write("INNE")
- setCursorPos(10,10)
- write("ZABLOKOWANE")
- setCursorPos(11,2)
- write("REGULAMIN")
- setCursorPos(1,12)
- setBackgroundColor(colors.gray)
- setTextColor(colors.cyan)
- write("Ekran Informacyjny Bonzaii.eu")
- end
- setBackgroundColor(colors.red)
- setTextColor(colors.orange)
- setCursorPos(26,12)
- write("MENU")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- if x >= 6 and x <= 8 and y == 12 and pageNum > 1 then
- return pageNum - 1
- elseif x >= 22 and x <= 24 and y == 12 and pagename ~= "rudy" and pageNum < 2 then
- return pageNum + 1
- elseif x >= 22 and x <= 24 and y == 12 and pageName == "rudy" and pageNum < 4 then
- return pageNum + 1
- elseif x >= 26 and x <= 30 and y == 12 then
- drawMenu()
- return
- end
- end
- drawMenu()
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- local pageName
- local pageNum = 1
- if x >= 11 and x <= 20 and y == 2 then
- pageName = "regulamin"
- elseif x >= 5 and x <= 12 and y == 4 then
- pageName = "skyblock"
- elseif x >= 18 and x <= 26 and y == 4 then
- pageName = "rudy"
- elseif x >= 7 and x <= 13 and y == 6 then
- pageName = "swiaty"
- elseif x >= 18 and x <= 24 and y == 6 then
- pageName = "waluta"
- elseif x >= 8 and x <= 13 and y == 8 then
- pageName = "spawn"
- elseif x >= 18 and x <= 22 and y == 8 then
- pageName = "inne"
- elseif x >= 10 and x <= 21 and y == 10 then
- pageName = "blok"
- end
- while pageName and pageNum do
- pageNum = drawPage(pageName, pageNum)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement