mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-07 07:50:27 +00:00
Tweak to Go and Turn autocompletition.
Adds spaces to simplyfy making chains of commands. Also fix up turn not autocompleting after first argument.
This commit is contained in:
parent
1d63598d43
commit
224e752a8f
@ -208,13 +208,11 @@ shell.setCompletionFunction( "rom/programs/command/exec.lua", completeExec )
|
|||||||
if turtle then
|
if turtle then
|
||||||
local tGoOptions = { "left", "right", "forward", "back", "down", "up" }
|
local tGoOptions = { "left", "right", "forward", "back", "down", "up" }
|
||||||
local function completeGo( shell, nIndex, sText )
|
local function completeGo( shell, nIndex, sText )
|
||||||
return completeMultipleChoice(sText,tGoOptions)
|
return completeMultipleChoice( sText, tGoOptions, true)
|
||||||
end
|
end
|
||||||
local tTurnOptions = { "left", "right" }
|
local tTurnOptions = { "left", "right" }
|
||||||
local function completeTurn( shell, nIndex, sText )
|
local function completeTurn( shell, nIndex, sText )
|
||||||
if nIndex == 1 then
|
return completeMultipleChoice( sText, tTurnOptions, true )
|
||||||
return completeMultipleChoice( sText, tTurnOptions )
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
local tEquipOptions = { "left", "right" }
|
local tEquipOptions = { "left", "right" }
|
||||||
local function completeEquip( shell, nIndex, sText )
|
local function completeEquip( shell, nIndex, sText )
|
||||||
|
Loading…
Reference in New Issue
Block a user