Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pastebin get mESAaVtL infopanelT.lua
- API = require("buttonAPI")
- API.clear()
- local event = require("event")
- local computer = require("computer")
- local term = require("term")
- local component = require("component")
- local gpu = component.gpu
- local rs = component.redstone
- local colors = require("colors")
- local side = require("sides")
- function API.fillTable()
- API.setTable("Главная", test1, 0,15,23,24)
- API.setTable("Команды", test2, 18,33,23,24)
- API.setTable("Инфо", test3, 36,51,23,24)
- API.setTable("Планы", test4, 54,69,23,24)
- API.screen()
- end
- function getClick()
- local _, _, x, y = event.pull(1,touch)
- if x == nil or y == nil then
- local h, w = gpu.getResolution()
- gpu.set(h, w, ".")
- gpu.set(h, w, " ")
- else
- API.checkxy(x,y)
- end
- end
- function test1()
- API.clear()
- API.fillTable()
- API.heading("Info panel Military-Industrial MineCraft Server")
- gpu.set(3,5, " Добро пожаловать на сервер")
- gpu.set(3,6, " Military-Industrial MineCraft Server by Taruu")
- gpu.set(4,8, " На этом сервере нет приватов и минимум запрещенных предметов.")
- gpu.set(4,9, " Сервер с военным уклоном т.е приходи и грабь кого хочешь.")
- gpu.set(4,10, " Сервер постоянно онлайн и поддерживается админом")
- end
- function test2()
- API.clear()
- API.fillTable()
- API.heading("Команды")
- gpu.set(5,5, "/call - тп к человеку ")
- gpu.set(5,6, "/spawn - тп на спавн ")
- gpu.set(5,7, "/sethome - точка дома ")
- gpu.set(5,8, "/home - тп домой ")
- gpu.set(5,9, "/warp <название варпа> - тп на варп")
- gpu.set(5,10, "/warp randomtp - рандом тп по миру")
- end
- function test3()
- API.clear()
- API.fillTable()
- API.heading("Инфо")
- gpu.set(20,20,"Что то важное епт")
- end
- function test4()
- API.clear()
- API.fillTable()
- API.heading("Планы")
- gpu.set(5,5, "В будущем на сервер установят моды:")
- gpu.set(5,6, "-Galacticraft")
- gpu.set(5,7, " -Galacticraft Add-on - More Planets")
- gpu.set(5,8, "-Techguns")
- end
- term.setCursorBlink(false)
- gpu.setResolution(80, 25)
- API.clear()
- API.fillTable()
- API.heading("Info panel Military-Industrial MineCraft Server")
- while true do
- getClick()
- end
Add Comment
Please, Sign In to add comment