mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-31 11:19:11 +00:00
Update tron
This commit is contained in:
parent
4f62c96dcc
commit
faac6ec5f2
6
tron
6
tron
@ -492,7 +492,7 @@ end
|
|||||||
local makeMenu = function(x, y, options)
|
local makeMenu = function(x, y, options)
|
||||||
local cpos = 1
|
local cpos = 1
|
||||||
local cursor = "> "
|
local cursor = "> "
|
||||||
local render = function()
|
local rend = function()
|
||||||
for i = 1, #options do
|
for i = 1, #options do
|
||||||
term.setCursorPos(x, y + (i - 1))
|
term.setCursorPos(x, y + (i - 1))
|
||||||
if i == cpos then
|
if i == cpos then
|
||||||
@ -506,7 +506,7 @@ local makeMenu = function(x, y, options)
|
|||||||
end
|
end
|
||||||
local evt
|
local evt
|
||||||
while true do
|
while true do
|
||||||
render()
|
rend()
|
||||||
evt = {os.pullEvent()}
|
evt = {os.pullEvent()}
|
||||||
if evt[1] == "key" then
|
if evt[1] == "key" then
|
||||||
if evt[2] == keys.up then
|
if evt[2] == keys.up then
|
||||||
@ -775,7 +775,7 @@ local networking = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
helpScreen = function()
|
local helpScreen = function()
|
||||||
term.setBackgroundColor(colors.black)
|
term.setBackgroundColor(colors.black)
|
||||||
term.setTextColor(colors.white)
|
term.setTextColor(colors.white)
|
||||||
term.clear()
|
term.clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user