fixed a bug where it would say "Press any key to continue" instead of "Press enter to continue"

This commit is contained in:
2026-04-06 21:12:26 -07:00
parent 91beee2309
commit 03fe7a20ea

View File

@@ -11,7 +11,7 @@ local instruction = "Please state your name to make an order:"
local instruction2 = "Now please type out a request for your order." local instruction2 = "Now please type out a request for your order."
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 lastchance2 = "Press the enter 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
@@ -46,8 +46,8 @@ while true do
term.clear() term.clear()
term.setCursorPos(dx/2-#lastchance1/2,dy/2) term.setCursorPos(dx/2-#lastchance1/2,dy/2)
term.write(lastchance1) term.write(lastchance1)
term.setCursorPos(dx/2-#pressanykey/2,dy/2+1) term.setCursorPos(dx/2-#lastchance2/2,dy/2+1)
term.write(pressanykey) term.write(lastchance2)
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)