Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forms=require("forms")
- local term = require("term")
- local shell = require("shell")
- local computer = require("computer")
- local component = require("component")
- local os = require("os")
- os.execute("resolution 80 25")
- computer.beep(700,0.1)
- -- ГЛАВНАЯ ФОРМА
- Form1=forms.addForm()
- Form1.border=2
- Form1:addLabel(2,1,"Laine Programs Hub Menu LPHM1")
- Form1:addLabel(2,25,"Version: 0.2")
- -- ОБНОВЛЕНИЕ
- UpForm=forms.addForm()
- UpForm.border=2
- UpForm.W=60
- UpForm.H=12
- UpForm.left=math.floor((Form1.W-UpForm.W)/2)
- UpForm.top =math.floor((Form1.H-UpForm.H)/2)
- UpForm:addLabel(8,3,"Обновить LPHM и все его программы?")
- UpForm:addLabel(3,10,"PS: Все данные пользователя при обновлении остаются")
- UpForm:addButton(25,6,"Обновить",function() term.clear() os.execute("rm -r lphm") os.execute("rm 2") os.execute("rm lphmstart") os.execute("pastebin run 1BxySpLe") end)
- UpForm:addButton(50,1, "X" , function() Form1:setActive() end)
- UpForm:addLabel(2,1,"Обновление LPHM(beta)")
- -- ВЫХОД
- exitForm=forms.addForm()
- exitForm.border=2
- exitForm.W=31
- exitForm.H=7
- exitForm.left=math.floor((Form1.W-exitForm.W)/2)
- exitForm.top =math.floor((Form1.H-exitForm.H)/2)
- exitForm:addLabel(8,3,"Вы хотите выйти?")
- exitForm:addButton(5,5,"Да",function() forms.stop() computer.beep(350,0.5) end)
- exitForm:addButton(18,5,"Нет",function() Form1:setActive() end)
- -- КНОПКИ
- Btn1=Form1:addButton(70,1,"X",function() exitForm:setActive() computer.beep(100,0.1) computer.beep(1000,0.5) end)
- Btn1.color=0xFF0000
- Btn1=Form1:addButton(6,3,"Redboard Control2",function() os.execute("lphm/redboard") os.execute("2") end)
- Btn1.color=0x505050
- Btn1=Form1:addButton(6,4,"Tanspol (beta)",function() os.execute("lphm/tanspol") os.execute("2") end)
- Btn1.color=0x505050
- Btn1=Form1:addButton(70,25,"UPDATE",function() UpForm:setActive() computer.beep(1500,0.3) end)
- Btn1.color=0x505050
- Btn1=Form1:addButton(10,5,"Tanspol Advanced (beta)",function() os.execute("lphm/tanspola") os.execute("2") end)
- Btn1.color=0x505050
- Btn1=Form1:addButton(6,6,"Clock (beta)",function() os.execute("lphm/clock") os.execute("2") end)
- Btn1.color=0x505050
- forms.run(Form1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement