Update startup.lua
This commit is contained in:
@@ -11,6 +11,7 @@ local instruction = "Please state your name to make a request:"
|
|||||||
local instruction2 = "Now please type out a request."
|
local instruction2 = "Now please type out a request."
|
||||||
local pressanykey = "Press any key to continue."
|
local pressanykey = "Press any key to continue."
|
||||||
local lastchance1 = "Are you sure you want to put in an order?"
|
local lastchance1 = "Are you sure you want to put in an order?"
|
||||||
|
local lastchance2 = "Press the enter key to continue."
|
||||||
local lastchance3 = "Hold ctrl+r (or cmd+r on macos) to cancel"
|
local lastchance3 = "Hold ctrl+r (or cmd+r on macos) to cancel"
|
||||||
local ordersubmitted1 = "Your order has been submitted!"
|
local ordersubmitted1 = "Your order has been submitted!"
|
||||||
while true do
|
while true do
|
||||||
@@ -50,7 +51,10 @@ while true do
|
|||||||
term.setCursorPos(dx/2-#lastchance3/2,dy/2+2)
|
term.setCursorPos(dx/2-#lastchance3/2,dy/2+2)
|
||||||
term.write(lastchance3)
|
term.write(lastchance3)
|
||||||
term.setCursorBlink(false)
|
term.setCursorBlink(false)
|
||||||
os.pullEvent("key")
|
local _,key
|
||||||
|
repeat
|
||||||
|
_,key = os.pullEvent("key")
|
||||||
|
until key == keys.enter
|
||||||
trans.addOrder(name,request)
|
trans.addOrder(name,request)
|
||||||
term.setBackgroundColor(colors.gray)
|
term.setBackgroundColor(colors.gray)
|
||||||
term.clear()
|
term.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user