mirror of
https://github.com/20kdc/OC-KittenOS.git
synced 2024-11-23 10:58:06 +11:00
More wget fixes, and make nbox2018 slightly easier to use
This commit is contained in:
parent
5ddfb128cd
commit
beb76fcf6f
@ -12,20 +12,20 @@ local sRunning = true
|
||||
-- useful to perform a system update
|
||||
local url = "http://20kdc.duckdns.org/neo/inst.lua"
|
||||
local function doWorking()
|
||||
return 25, 1, nil, neoux.tcwindow(25, 1, {
|
||||
return 50, 1, nil, neoux.tcwindow(50, 1, {
|
||||
neoux.tcrawview(1, 1, {"Downloading now..."}),
|
||||
}, function (w)
|
||||
sRunning = false
|
||||
end, 0xFFFFFF, 0)
|
||||
end
|
||||
local function doMainWin()
|
||||
return 25, 3, nil, neoux.tcwindow(25, 3, {
|
||||
return 50, 3, nil, neoux.tcwindow(50, 3, {
|
||||
neoux.tcrawview(1, 1, {"URL to download?"}),
|
||||
neoux.tcfield(1, 2, 25, function (t)
|
||||
neoux.tcfield(1, 2, 50, function (t)
|
||||
url = t or url
|
||||
return url
|
||||
end),
|
||||
neoux.tcbutton(16, 3, "Confirm", function (w)
|
||||
neoux.tcbutton(41, 3, "Download", function (w)
|
||||
sRunning = true
|
||||
w.reset(doWorking())
|
||||
local nurl = url
|
||||
|
@ -123,7 +123,7 @@ local programStates = {
|
||||
minX = cx,
|
||||
minY = cy,
|
||||
minZ = cz,
|
||||
tex = "",
|
||||
tex = "stone",
|
||||
rgb = 0xFFFFFF
|
||||
}
|
||||
programState = "point2"
|
||||
@ -197,9 +197,9 @@ local programStates = {
|
||||
local targetBox = boxes[state][selectedBox]
|
||||
return {
|
||||
"Texturing Box:" .. miText .. "/" .. mxText,
|
||||
"Type texture ID or use clipboard",
|
||||
"Type texture ID, or use clipboard.",
|
||||
runField(targetBox.tex, "[", "]"),
|
||||
"Enter to confirm."
|
||||
"Enter confirms. \"\" is invisible."
|
||||
}
|
||||
end,
|
||||
function (ka, kc)
|
||||
|
Loading…
Reference in New Issue
Block a user