Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local verze = "20.0707.R1"
- local anim = 0.1
- local w, h = term.getSize()
- ----------------------------------------------------
- local f=fs.open("/C/system/RAM/user","r")
- user=f.readLine()
- pass=f.readLine()
- Fname=f.readLine()
- Lname=f.readLine()
- f.close()
- local function bgc(barvaP) term.setBackgroundColor(barvaP) end
- local function txc(barvaP) term.setTextColor(barvaP) end
- local function curs(xi,yi) term.setCursorPos(xi,yi) end
- local function Barvy()
- if fs.exists ("/C/system/Users/"..user.."/.Registry/colors") then
- local data = fs.open("/C/system/Users/"..user.."/.Registry/colors", "r")
- BarPoz = tonumber(data.readLine())
- BarTxt = tonumber(data.readLine())
- data.close()
- end
- if BarPoz == nil or BarTxt == nil then BarPoz = 2048 BarTxt = 1 end
- end
- function ukonceni ()
- error()
- end
- function cbarva()
- lista.setTextColor(colors.black)
- lista.setBackgroundColor(colors.gray)
- end
- function defaultvalue()
- end
- function start()
- defaultvalue()
- local myWindow = window.create(term.current(),w/2-11,h/2-5,25,9)
- myWindow.setBackgroundColor(nastaveni.barva)
- myWindow.setTextColor(text.barva)
- myWindow.clear()
- myWindow.setCursorPos (6, 5)
- myWindow.write"Pepdroll Help"
- myWindow.setCursorPos (1, 9)
- myWindow.write(verze)
- myWindow.setCursorPos (1, 1)
- myWindow.write"Pepek@Soft"
- myWindow.setCursorPos (22, 9)
- myWindow.write"2020"
- sleep(1)
- menu()
- end
- function plocha()
- w, h = term.getSize()
- paintutils.drawLine(1, 1, 51, 1, nastaveni.barva)
- paintutils.drawPixel (51,1, colors.red)
- term.setCursorPos (51,1)
- term.setTextColor(text.barva)
- write "*"
- barW = window.create(term.current(),1,2,w,1)
- barW.setBackgroundColor(colors.gray)
- barW.clear()
- barW.setTextColor(colors.white)
- barW.setCursorPos(2,1)
- barW.write"Helper >"
- pozadi = window.create(term.current(),13,3,w,h-2)
- pozadi.setBackgroundColor(colors.white)
- pozadi.setTextColor(colors.black)
- pozadi.clear()
- lista = window.create(term.current(),1,3,12,h-2)
- lista.setBackgroundColor(nastaveni.barva)
- lista.setTextColor(text.barva)
- lista.clear()
- lista.setCursorPos(2,3)
- lista.write"Tips"
- lista.setCursorPos(2,5)
- lista.write"Prikazy"
- lista.setCursorPos(2,7)
- lista.write"Network"
- lista.setCursorPos(2,9)
- lista.write"AD server"
- lista.setCursorPos(2,11)
- lista.write"Contacts"
- lista.setCursorPos(2,h-2)
- lista.setTextColor(colors.white)
- lista.write("Pepek@Soft")
- term.setBackgroundColor(colors.lightGray)
- end
- -----------------------------------------------------------------------------
- local page = "main"
- function main()
- barW.setCursorPos(11,1)
- barW.write"Tips"
- pozadi.setCursorPos(2,3)
- pozadi.write"ENTER - Fast login, If you have a "
- pozadi.setCursorPos(2,4)
- pozadi.write"password, you can type it now, the "
- pozadi.setCursorPos(2,5)
- pozadi.write"password will be written."
- pozadi.setCursorPos(2,8)
- pozadi.write"CTRL - desktop menu"
- pozadi.setCursorPos(2,9)
- pozadi.write"BACKSPACE - go to up directory"
- pozadi.setCursorPos(2,10)
- pozadi.write"Q - Quit File Explorer"
- pozadi.setCursorPos(2,13)
- pozadi.write"R. Click to MENU - Shutdown menu"
- pozadi.setCursorPos(2,14)
- pozadi.write"R. Click - Second menu"
- pozadi.setTextColor(colors.red)
- pozadi.setCursorPos(2,2)
- pozadi.write"Keyboard in login screen"
- pozadi.setCursorPos(2,7)
- pozadi.write"Keyboard in explorer"
- pozadi.setCursorPos(2,12)
- pozadi.write"Mouse in explorer"
- end
- function menu()
- plocha()
- if (page == "main") then
- main ()
- end
- while true do
- local event, button, x, y = os.pullEvent("mouse_click")
- xy = x..","..y
- if event == "mouse_click" and x >= 2 and x <= 12 and y == 5 then
- cbarva()
- lista.setCursorPos(1,3)--
- lista.write" Tips "
- sleep(anim)
- page = "main"
- menu()
- end
- if x == 51 and y == 1 then
- ukonceni ()
- else
- menu() -------- stejne jako nazev funkce
- end
- end
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement