1502 lines
29 KiB
Plaintext
1502 lines
29 KiB
Plaintext
local f1 = fs.open("installer/loadingicon.lua", "r")
|
|
local c1 = f1.readAll()
|
|
f1.close()
|
|
local f2 = fs.open("installer/license.lua", "r")
|
|
local c2 = f2.readAll()
|
|
f2.close()
|
|
local f3 = fs.open("installer/makebig.lua", "r")
|
|
local c3 = f3.readAll()
|
|
f3.close()
|
|
local f4 = fs.open("installer/licensenext.lua", "r")
|
|
local c4 = f4.readAll()
|
|
f4.close()
|
|
local f5 = fs.open("installer/LevelOS_Minimal.lua", "r")
|
|
local c5 = f5.readAll()
|
|
f5.close()
|
|
local f6 = fs.open("installer/Package_Click.lua", "r")
|
|
local c6 = f6.readAll()
|
|
f6.close()
|
|
local f7 = fs.open("installer/LevelOS_Full.lua", "r")
|
|
local c7 = f7.readAll()
|
|
f7.close()
|
|
local f8 = fs.open("installer/checkbox.lua", "r")
|
|
local c8 = f8.readAll()
|
|
f8.close()
|
|
local f9 = fs.open("installer/license_checkbox.lua", "r")
|
|
local c9 = f9.readAll()
|
|
f9.close()
|
|
local f10 = fs.open("installer/installer.lua", "r")
|
|
local c10 = f10.readAll()
|
|
f10.close()
|
|
local f11 = fs.open("installer/changecolor.lua", "r")
|
|
local c11 = f11.readAll()
|
|
f11.close()
|
|
local f12 = fs.open("installer/next.lua", "r")
|
|
local c12 = f12.readAll()
|
|
f12.close()
|
|
local f13 = fs.open("installer/LevelOS_Custom.lua", "r")
|
|
local c13 = f13.readAll()
|
|
f13.close()
|
|
local f14 = fs.open("installer/back.lua", "r")
|
|
local c14 = f14.readAll()
|
|
f14.close()
|
|
local f15 = fs.open("installer/Package_Update.lua", "r")
|
|
local c15 = f15.readAll()
|
|
f15.close()
|
|
local f16 = fs.open("installer/packagenextclicky.lua", "r")
|
|
local c16 = f16.readAll()
|
|
f16.close()
|
|
local f17 = fs.open("installer/install.lua", "r")
|
|
local c17 = f17.readAll()
|
|
f17.close()
|
|
local f18 = fs.open("installer/corclicky.lua", "r")
|
|
local c18 = f18.readAll()
|
|
f18.close()
|
|
local f19 = fs.open("installer/packagenext.lua", "r")
|
|
local c19 = f19.readAll()
|
|
f19.close()
|
|
local f20 = fs.open("installer/licensenextclicky.lua", "r")
|
|
local c20 = f20.readAll()
|
|
f20.close()
|
|
|
|
local assets = {
|
|
[ "loadingicon.lua" ] = {
|
|
id = 18,
|
|
content = c1,
|
|
name = "loadingicon.lua",
|
|
},
|
|
[ "license.lua" ] = {
|
|
id = 8,
|
|
content = c2,
|
|
name = "license.lua",
|
|
},
|
|
[ "makebig.lua" ] = {
|
|
id = 0,
|
|
content = c3,
|
|
name = "makebig.lua",
|
|
},
|
|
[ "licensenext.lua" ] = {
|
|
id = 10,
|
|
content = c4,
|
|
name = "licensenext.lua",
|
|
},
|
|
[ "LevelOS_Minimal.lua" ] = {
|
|
id = 14,
|
|
content = c5,
|
|
name = "LevelOS_Minimal.lua",
|
|
},
|
|
[ "Package_Click.lua" ] = {
|
|
id = 12,
|
|
content = c6,
|
|
name = "Package_Click.lua",
|
|
},
|
|
[ "LevelOS_Full.lua" ] = {
|
|
id = 13,
|
|
content = c7,
|
|
name = "LevelOS_Full.lua",
|
|
},
|
|
[ "checkbox.lua" ] = {
|
|
id = 6,
|
|
content = c8,
|
|
name = "checkbox.lua",
|
|
},
|
|
license_checkbox = {
|
|
id = 7,
|
|
content = c9,
|
|
name = "license_checkbox",
|
|
},
|
|
[ "installer.lua" ] = {
|
|
id = 20,
|
|
content = c10,
|
|
name = "installer.lua",
|
|
},
|
|
changecolor = {
|
|
id = 1,
|
|
content = c11,
|
|
name = "changecolor",
|
|
},
|
|
[ "next.lua" ] = {
|
|
id = 3,
|
|
content = c12,
|
|
name = "next.lua",
|
|
},
|
|
[ "LevelOS_Custom.lua" ] = {
|
|
id = 15,
|
|
content = c13,
|
|
name = "LevelOS_Custom.lua",
|
|
},
|
|
[ "back.lua" ] = {
|
|
id = 5,
|
|
content = c14,
|
|
name = "back.lua",
|
|
},
|
|
[ "Package_Update.lua" ] = {
|
|
id = 11,
|
|
content = c15,
|
|
name = "Package_Update.lua",
|
|
},
|
|
packagenextclicky = {
|
|
id = 16,
|
|
content = c16,
|
|
name = "packagenextclicky",
|
|
},
|
|
[ "install.lua" ] = {
|
|
id = 19,
|
|
content = c17,
|
|
name = "install.lua",
|
|
},
|
|
[ "corclicky.lua" ] = {
|
|
id = 2,
|
|
content = c18,
|
|
name = "corclicky.lua",
|
|
},
|
|
[ "packagenext.lua" ] = {
|
|
id = 17,
|
|
content = c19,
|
|
name = "packagenext.lua",
|
|
},
|
|
licensenextclicky = {
|
|
id = 9,
|
|
content = c20,
|
|
name = "licensenextclicky",
|
|
},
|
|
}
|
|
|
|
local nAssets = {}
|
|
for key,value in pairs(assets) do nAssets[key] = value nAssets[assets[key].id] = assets[key] end
|
|
assets = nAssets
|
|
nAssets = nil
|
|
|
|
local slides = {
|
|
{
|
|
w = 51,
|
|
h = 19,
|
|
x = 65,
|
|
y = 22,
|
|
objs = {
|
|
{
|
|
x1 = 1,
|
|
y1 = 1,
|
|
x2 = 51,
|
|
y2 = 19,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
color = 512,
|
|
ox2 = 0,
|
|
type = "rect",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
event = {
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
render = {
|
|
[ 2 ] = 1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
oy2 = 0,
|
|
},
|
|
{
|
|
x1 = 5,
|
|
y1 = 3,
|
|
x2 = 33,
|
|
y2 = 3,
|
|
txt = "Welcome!",
|
|
color = 512,
|
|
type = "text",
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 0,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
snap = {
|
|
Right = "Snap left",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap top",
|
|
},
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
txtcolor = 1,
|
|
},
|
|
{
|
|
x1 = 5,
|
|
y1 = 7,
|
|
x2 = 48,
|
|
y2 = 13,
|
|
ox2 = 3,
|
|
oy2 = 6,
|
|
type = "text",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
txt = "This is the installer of the LevelOS operating system. If you proceed, LevelOS and all of its components will be installed. Any existing OS on this device will be overwritten.",
|
|
txtcolor = 1,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
x1 = 39,
|
|
y1 = 16,
|
|
x2 = 48,
|
|
y2 = 18,
|
|
ox2 = 3,
|
|
oy1 = 3,
|
|
border = {
|
|
type = 1,
|
|
color = 2048,
|
|
},
|
|
ox1 = 12,
|
|
txtcolor = 32768,
|
|
oy2 = 1,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 2,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 3,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
type = "text",
|
|
txt = " Next",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
{
|
|
x1 = 27,
|
|
y1 = 16,
|
|
x2 = 36,
|
|
y2 = 18,
|
|
ox2 = 15,
|
|
oy1 = 3,
|
|
oy2 = 1,
|
|
ox1 = 24,
|
|
type = "text",
|
|
border = {
|
|
type = 1,
|
|
color = 256,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 2,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 5,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
txtcolor = 32768,
|
|
txt = " Exit",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
},
|
|
c = 1,
|
|
},
|
|
{
|
|
w = 51,
|
|
h = 19,
|
|
x = 65,
|
|
y = 22,
|
|
objs = {
|
|
{
|
|
type = "rect",
|
|
y1 = 1,
|
|
x2 = 51,
|
|
y2 = 19,
|
|
oy2 = 0,
|
|
x1 = 1,
|
|
ox2 = 0,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 512,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
type = "text",
|
|
y1 = 3,
|
|
x2 = 33,
|
|
y2 = 3,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 0,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
snap = {
|
|
Right = "Snap left",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap top",
|
|
},
|
|
txtcolor = 1,
|
|
x1 = 5,
|
|
color = 512,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
txt = "License",
|
|
},
|
|
{
|
|
x1 = 5,
|
|
y1 = 7,
|
|
x2 = 48,
|
|
y2 = 12,
|
|
border = {
|
|
type = 1,
|
|
color = 32768,
|
|
},
|
|
type = "window",
|
|
ox2 = 3,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 8,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 1,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
oy2 = 7,
|
|
},
|
|
{
|
|
x1 = 5,
|
|
y1 = 13,
|
|
x2 = 7,
|
|
y2 = 15,
|
|
type = "window",
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 6,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 7,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
border = {
|
|
type = 1,
|
|
color = 1,
|
|
},
|
|
snap = {
|
|
Right = "Snap left",
|
|
Left = "Snap left",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
oy1 = 6,
|
|
color = 512,
|
|
oy2 = 4,
|
|
},
|
|
{
|
|
x1 = 9,
|
|
y1 = 14,
|
|
x2 = 34,
|
|
y2 = 14,
|
|
oy1 = 5,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
txtcolor = 1,
|
|
snap = {
|
|
Right = "Snap left",
|
|
Left = "Snap left",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
txt = "I accept the license terms",
|
|
type = "text",
|
|
oy2 = 5,
|
|
color = 0,
|
|
input = false,
|
|
},
|
|
{
|
|
x1 = 39,
|
|
y1 = 16,
|
|
x2 = 48,
|
|
y2 = 18,
|
|
ox2 = 3,
|
|
oy1 = 3,
|
|
border = {
|
|
type = 1,
|
|
color = 2048,
|
|
},
|
|
ox1 = 12,
|
|
txtcolor = 32768,
|
|
oy2 = 1,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 9,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 10,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
type = "text",
|
|
txt = " Next",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
{
|
|
x1 = 27,
|
|
y1 = 16,
|
|
x2 = 36,
|
|
y2 = 18,
|
|
ox2 = 15,
|
|
oy1 = 3,
|
|
oy2 = 1,
|
|
ox1 = 24,
|
|
type = "text",
|
|
border = {
|
|
type = 1,
|
|
color = 256,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 2,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 5,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
txtcolor = 32768,
|
|
txt = " Back",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
},
|
|
c = 2,
|
|
},
|
|
{
|
|
w = 51,
|
|
h = 19,
|
|
x = 65,
|
|
y = 22,
|
|
objs = {
|
|
{
|
|
x1 = 1,
|
|
y1 = 1,
|
|
x2 = 51,
|
|
y2 = 19,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
type = "rect",
|
|
ox2 = 0,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 512,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
oy2 = 0,
|
|
},
|
|
{
|
|
x1 = 27,
|
|
y1 = 16,
|
|
x2 = 36,
|
|
y2 = 18,
|
|
ox2 = 15,
|
|
oy1 = 3,
|
|
oy2 = 1,
|
|
ox1 = 24,
|
|
type = "text",
|
|
border = {
|
|
type = 1,
|
|
color = 256,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 2,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 5,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
txtcolor = 32768,
|
|
txt = " Back",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
{
|
|
type = "rect",
|
|
y1 = 7,
|
|
x2 = 47,
|
|
y2 = 10,
|
|
x1 = 5,
|
|
ox2 = 4,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap top",
|
|
},
|
|
color = 1,
|
|
border = {
|
|
type = 1,
|
|
color = 512,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 13,
|
|
},
|
|
update = {
|
|
[ 2 ] = 11,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 12,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
type = "rect",
|
|
y1 = 11,
|
|
x2 = 47,
|
|
y2 = 14,
|
|
x1 = 5,
|
|
ox2 = 4,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap top",
|
|
},
|
|
color = 256,
|
|
border = {
|
|
type = 1,
|
|
color = 512,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 14,
|
|
},
|
|
update = {
|
|
[ 2 ] = 11,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
type = "text",
|
|
y1 = 3,
|
|
x2 = 20,
|
|
y2 = 3,
|
|
txtcolor = 1,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 0,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
x1 = 5,
|
|
txt = "Package",
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 7,
|
|
y1 = 8,
|
|
x2 = 18,
|
|
y2 = 8,
|
|
txt = "LevelOS Full",
|
|
type = "text",
|
|
txtcolor = 32768,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 7,
|
|
y1 = 9,
|
|
x2 = 46,
|
|
y2 = 9,
|
|
txt = "All components and programs included",
|
|
type = "text",
|
|
txtcolor = 256,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 7,
|
|
y1 = 12,
|
|
x2 = 27,
|
|
y2 = 12,
|
|
txt = "LevelOS Minimal",
|
|
type = "text",
|
|
txtcolor = 128,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 7,
|
|
y1 = 13,
|
|
x2 = 44,
|
|
y2 = 13,
|
|
txt = "Not supported at this time",
|
|
type = "text",
|
|
txtcolor = 128,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 39,
|
|
y1 = 16,
|
|
x2 = 48,
|
|
y2 = 18,
|
|
ox2 = 3,
|
|
oy1 = 3,
|
|
oy2 = 1,
|
|
ox1 = 12,
|
|
type = "text",
|
|
border = {
|
|
type = 1,
|
|
color = 2048,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 16,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 17,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
txtcolor = 32768,
|
|
txt = " Next",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
},
|
|
c = 3,
|
|
},
|
|
{
|
|
w = 51,
|
|
h = 19,
|
|
x = 65,
|
|
y = 22,
|
|
objs = {
|
|
{
|
|
type = "rect",
|
|
y1 = 1,
|
|
x2 = 51,
|
|
y2 = 19,
|
|
oy2 = 0,
|
|
x1 = 1,
|
|
ox2 = 0,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 512,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
type = "text",
|
|
y1 = 3,
|
|
x2 = 33,
|
|
y2 = 3,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 512,
|
|
txtcolor = 1,
|
|
x1 = 5,
|
|
snap = {
|
|
Right = "Snap left",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap top",
|
|
},
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
txt = "Select Packages",
|
|
},
|
|
{
|
|
x1 = 27,
|
|
y1 = 16,
|
|
x2 = 36,
|
|
y2 = 18,
|
|
ox2 = 15,
|
|
oy1 = 3,
|
|
border = {
|
|
type = 1,
|
|
color = 256,
|
|
},
|
|
ox1 = 24,
|
|
txtcolor = 32768,
|
|
oy2 = 1,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 2,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 5,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
type = "text",
|
|
txt = " Back",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
{
|
|
x1 = 39,
|
|
y1 = 16,
|
|
x2 = 48,
|
|
y2 = 18,
|
|
ox2 = 3,
|
|
oy1 = 3,
|
|
oy2 = 1,
|
|
ox1 = 12,
|
|
type = "text",
|
|
border = {
|
|
type = 1,
|
|
color = 2048,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 2,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 3,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
txtcolor = 32768,
|
|
txt = " Next",
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap right",
|
|
Top = "Snap bottom",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
input = false,
|
|
color = 1,
|
|
},
|
|
},
|
|
c = 4,
|
|
},
|
|
{
|
|
w = 51,
|
|
h = 19,
|
|
x = 65,
|
|
y = 22,
|
|
objs = {
|
|
{
|
|
type = "rect",
|
|
y1 = 1,
|
|
x2 = 51,
|
|
y2 = 19,
|
|
oy2 = 0,
|
|
x1 = 1,
|
|
ox2 = 0,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 512,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 1,
|
|
y1 = 1,
|
|
x2 = 51,
|
|
y2 = 19,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
type = "window",
|
|
ox2 = 0,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 20,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 32768,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap bottom",
|
|
},
|
|
oy2 = 0,
|
|
},
|
|
},
|
|
c = 5,
|
|
},
|
|
{
|
|
w = 51,
|
|
h = 19,
|
|
x = 65,
|
|
y = 22,
|
|
objs = {
|
|
{
|
|
x1 = 5,
|
|
y1 = 12,
|
|
x2 = 47,
|
|
y2 = 15,
|
|
type = "rect",
|
|
ox2 = 4,
|
|
snap = {
|
|
Right = "Snap right",
|
|
Left = "Snap left",
|
|
Top = "Snap top",
|
|
Bottom = "Snap top",
|
|
},
|
|
color = 1,
|
|
border = {
|
|
type = 1,
|
|
color = 512,
|
|
},
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = 15,
|
|
},
|
|
update = {
|
|
[ 2 ] = 11,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = 12,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
x1 = 7,
|
|
y1 = 14,
|
|
x2 = 43,
|
|
y2 = 14,
|
|
txt = "Select what components to install",
|
|
type = "text",
|
|
txtcolor = 256,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
{
|
|
x1 = 7,
|
|
y1 = 13,
|
|
x2 = 26,
|
|
y2 = 13,
|
|
txt = "LevelOS Custom",
|
|
type = "text",
|
|
txtcolor = 32768,
|
|
event = {
|
|
Coroutine = {
|
|
[ 2 ] = -1,
|
|
},
|
|
update = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_click = {
|
|
[ 2 ] = -1,
|
|
},
|
|
mouse_up = {
|
|
[ 2 ] = -1,
|
|
},
|
|
Initialize = {
|
|
[ 2 ] = -1,
|
|
},
|
|
selected = {
|
|
[ 2 ] = -1,
|
|
},
|
|
},
|
|
color = 0,
|
|
input = false,
|
|
border = {
|
|
type = 1,
|
|
color = 0,
|
|
},
|
|
},
|
|
},
|
|
c = 6,
|
|
},
|
|
}
|
|
|
|
for s=1,#slides do
|
|
local slide = slides[s]
|
|
for o=1,#slide.objs do
|
|
local obj = slide.objs[o]
|
|
for key,value in pairs(obj.event) do
|
|
if assets[ value[2] ] then
|
|
lUtils.shapescape.addScript(obj,value[2],key,assets,LevelOS,slides)
|
|
else
|
|
obj.event[key] = {function() end,-1}
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
local tArgs = {...}
|
|
if tArgs[1] and tArgs[1] == "load" then
|
|
return {assets=assets,slides=slides}
|
|
end
|
|
|
|
|
|
return lUtils.shapescape.run(slides,...)
|