--Installer API Functions
function clearS()
term.clear()
term.setCursorPos(1,1)
end
function mainmenu()
logo()
sleep(3)
term.setCursorPos(1,13)
c1 = true
c2 = false
c3 = false
c4 = false
print(" Install ScarletOS")
print(" Format Computer")
print(" About ScarletOS")
print(" Exit")
while true do
event, param1 = os.pullEvent()
if event == "key" and param1 == 28 and c1 == true then
install()
elseif event == "key" and param1 == 28 and c2 == true then
cFormat()
elseif event == "key" and param1 == 28 and c3 == true then
about()
elseif event == "key" and param1 == 28 and c4 == true then
break
end
if event == "key" and param1 == 200 and c1 == true then
c1 = false
c2 = false
c3 = false
c4 = true
elseif event == "key" and param1 == 200 and c2 == true then
c1 = true
c2 = false
c3 = false
c4 = false
elseif event == "key" and param1 == 200 and c3 == true then
c1 = false
c2 = true
c3 = false
c4 = false
elseif event == "key" and param1 == 200 and c4 == true then
c1 = false
c2 = false
c3 = true
c4 = false
elseif event == "key" and param1 == 208 and c1 == true then
c1 = false
c2 = true
c3 = false
c4 = false
elseif event == "key" and param1 == 208 and c2 == true then
c1 = false
c2 = false
c3 = true
c4 = false
elseif event == "key" and param1 == 208 and c3 == true then
c1 = false
c2 = false
c3 = false
c4 = true
elseif event == "key" and param1 == 208 and c4 == true then
c1 = true
c2 = false
c3 = false
c4 = false
end
end
if c1 == true then
c2 = false
c3 = false
c4 = false
term.setCursorPos(15,13)
write(">Install ScarletOS<")
term.setCursorPos(16,14)
write(" Format Computer")
term.setCursorPos(16,15)
write(" About ScarletOS")
term.setCursorPos(22,16)
write(" Exit")
end
if c2 == true then
c1 = false
c3 = false
c4 = false
term.setCursorPos(15,13)
write(" Install ScarletOS")
term.setCursorPos(16,14)
write(">Format Computer<")
term.setCursorPos(16,15)
write(" About ScarletOS")
term.setCursorPos(22,16)
write(" Exit")
end
if c3 == true then
c1 = false
c2 = false
c4 = false
term.setCursorPos(15,13)
write(" Install ScarletOS")
term.setCursorPos(16,14)
write(" Format Computer")
term.setCursorPos(16,15)
write(">About ScarletOS<")
term.setCursorPos(22,16)
write(" Exit")
end
if c4 == true then
c1 = false
c2 = false
c3 = false
term.setCursorPos(15,13)
write(" Install ScarletOS")
term.setCursorPos(16,14)
write(" Format Computer")
term.setCursorPos(16,15)
write(" About ScarletOS")
term.setCursorPos(22,16)
write(">Exit<")
end
end
function logo()
slPrint("=================================================")
slPrint(" ScarletOS ")
slPrint("=================================================")
slPrint(" _____ _____ _____ ")
slPrint(" / __\ / _ \ / __\ ")
slPrint(" \___ / | | | | \___ / ")
slPrint(" /__ \ _ | |_| | /__ \ ")
slPrint(" \_____/ |_| \_____/ \_____/ ")
slPrint("=================================================")
slPrint(" Installer Version 1.0 ")
slPrint("=================================================")
end
function slPrint(text)
textutils.slowPrint(text)
end
function anyKey()
while true do
event, param1 = os.pullEvent()
if event == "key" then
break
end
end
return param
end
function copyFiles()
fs.copy("", "")
end
--API Variables
version = v1.0.0
--Actual Install
clearS()
mainmenu()
This is my code. When I launch it, it comes up with the error "Multiple Points." What does that mean?