mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-08 20:22:38 +01:00
aef
This commit is contained in:
parent
253dbd3fc6
commit
5d76044f06
@ -132,16 +132,19 @@ local preLoadApi = {
|
||||
{ paste = "IgorTimofeev/OpenComputers/master/MineOS/Icons/OS_Logo.pic", path = "MineOS/System/OS/Icons/OS_Logo.pic" },
|
||||
}
|
||||
|
||||
for i = 1, #preLoadApi do
|
||||
print("Downloading must-have libraries (" .. fs.name(preLoadApi[i].path) .. ")")
|
||||
getFromGitHubSafely(GitHubUserUrl .. preLoadApi[i].paste, preLoadApi[i].path)
|
||||
end
|
||||
|
||||
print(" ")
|
||||
print("Downloading file list")
|
||||
applications = seri.unserialize(getFromGitHubSafely(GitHubUserUrl .. "IgorTimofeev/OpenComputers/master/Applications.txt", "MineOS/System/OS/Applications.txt"))
|
||||
print(" ")
|
||||
|
||||
for i = 1, #preLoadApi do
|
||||
print("Downloading must-have files (" .. fs.name(preLoadApi[i].path) .. ")")
|
||||
getFromGitHubSafely(GitHubUserUrl .. preLoadApi[i].paste, preLoadApi[i].path)
|
||||
end
|
||||
|
||||
print(" ")
|
||||
|
||||
_G.ecs = require("ECSAPI")
|
||||
_G.image = require("image")
|
||||
_G.config = require("config")
|
||||
@ -196,6 +199,9 @@ end
|
||||
|
||||
------------------------------ВЫБОР ЯЗЫКА------------------------------------
|
||||
|
||||
ecs.prepareToExit()
|
||||
|
||||
local downloadWallpapers, showHelpTips
|
||||
|
||||
do
|
||||
|
||||
@ -208,8 +214,10 @@ do
|
||||
|
||||
waitForClickOnButton("Select language")
|
||||
|
||||
local language = ecs.universalWindow("auto", "auto", 30, ecs.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Select language"}, {"Select", 0x262626, 0x880000, "Russian", "English"}, {"Button", {0xffffff, 0x262626, "OK"}})
|
||||
language = language[1]
|
||||
local data = ecs.universalWindow("auto", "auto", 36, 0x262626, true, {"EmptyLine"}, {"CenterText", 0xFFFFFF, "Select language"}, {"EmptyLine"}, {"Select", 0xFFFFFF, 0x880000, "Russian", "English"}, {"EmptyLine"}, {"Switch", 0xF2B233, 0xffffff, 0xFFFFFF, "Download wallpapers", true}, {"EmptyLine"}, {"Switch", 0xF2B233, 0xffffff, 0xFFFFFF, "Show help tips in OS", true}, {"EmptyLine"}, {"Button", {ecs.colors.green, 0xffffff, "OK"}})
|
||||
downloadWallpapers, showHelpTips = data[2], data[3]
|
||||
|
||||
language = data[1]
|
||||
--УСТАНАВЛИВАЕМ НУЖНЫЙ ЯЗЫК
|
||||
local path = "MineOS/System/OS/Language.lua"
|
||||
fs.remove(path)
|
||||
@ -231,7 +239,6 @@ do
|
||||
end
|
||||
|
||||
|
||||
|
||||
------------------------------СТАВИТЬ ЛИ ОСЬ------------------------------------
|
||||
|
||||
do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user