Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nastaveni={barva=colors.blue}
- local f=fs.open("system/.core/colors","r")
- local cnt=f.readAll()
- f.close()
- local nastaveni=textutils.unserialize(cnt)
- local f=fs.open("system/.core/textcol","r")
- local tnt=f.readAll()
- f.close()
- local text=textutils.unserialize(tnt)
- local propojeni = ""
- local function prc(text, y)
- local w = term.getSize()
- local _, cy = term.getCursorPos()
- term.setCursorPos(math.ceil((w-#text)/2), y or cy)
- write(text)
- end
- function jazyk ()
- funkce = "language"
- local myWindow = window.create(term.current(),16,1,37,19)
- myWindow.setBackgroundColor(colors.white)
- myWindow.clear()
- local myWindow = window.create(term.current(),1,1,16,19)
- myWindow.setBackgroundColor(colors.gray)
- local myWindow = window.create(term.current(),1,1,15,19)
- myWindow.setBackgroundColor(nastaveni.barva)
- myWindow.clear()
- term.setBackgroundColor (nastaveni.barva)
- term.setTextColor(colors.lime)
- term.setCursorPos(2,3)
- print "< Language"
- term.setTextColor(text.barva)
- term.setCursorPos(2,5)
- print "Account"
- term.setCursorPos(2,7)
- print "Primary"
- term.setBackgroundColor(nastaveni.barva)
- term.setCursorPos(1,1)
- print " "
- paintutils.drawPixel(16, 1, colors.gray)
- local myWindow = window.create(term.current(),17,1,37,19)
- myWindow.setBackgroundColor(colors.white)
- myWindow.clear()
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.red)
- myWindow.setCursorPos (5,2)
- print " Sorry, It is in progress.... "
- while true do
- local event, button, x, y = os.pullEvent("mouse_click")
- xy = x..","..y
- if x >= 2 and x <= 16 and y == 3 and button == 1 then
- setupmenu ()
- elseif x >= 2 and x <= 16 and y == 5 and button == 1 then
- fs.delete ("/system/RAM/jazyk1")
- shell.run ("pastebin get uVRBmFvy /system/RAM/jazyk1")
- shell.run ("/system/RAM/jazyk1")
- elseif x >= 2 and x <= 16 and y == 7 and button == 1 then
- fs.delete ("/system/RAM/jazyk2")
- shell.run ("pastebin get uVRBmFvy /system/RAM/jazyk2")
- shell.run ("/system/RAM/jazyk2")
- else
- paintutils.drawLine(1, 1, 51, 1, colors.black)
- paintutils.drawPixel (51,1, colors.red)
- term.setTextColor(colors.white)
- term.setCursorPos (51,1)
- print "*"
- paintutils.drawPixel (50,1, colors.lightGray)
- term.setCursorPos (50,1)
- print "<"
- paintutils.drawPixel (49,1, colors.lightGray)
- term.setCursorPos (49,1)
- print "_"
- while true do
- local event, button, x, y = os.pullEvent("mouse_click")
- xy = x..","..y
- if x == 51 and y == 1 then
- plocha ()
- elseif x == 50 and y == 1 then
- setupmenu ()
- elseif x == 49 and y == 1 then
- minimalizace ()
- else
- language ()
- end
- end
- end
- end
- end
- jazyk ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement