feat: Add scan, extract, build, and autocraft buttons to turtle control interface
This commit is contained in:
@@ -445,6 +445,24 @@ local function drawModes()
|
||||
sendStateCommand(turtle.turtleID, "moving")
|
||||
end, colors.lightBlue)
|
||||
|
||||
btnY = btnY + 3
|
||||
addButton(1, btnY, btnW, 2, "SCAN", function()
|
||||
sendStateCommand(turtle.turtleID, "scan")
|
||||
end, colors.purple)
|
||||
|
||||
addButton(14, btnY, btnW, 2, "EXTRACT", function()
|
||||
sendStateCommand(turtle.turtleID, "extraction")
|
||||
end, colors.magenta)
|
||||
|
||||
btnY = btnY + 3
|
||||
addButton(1, btnY, btnW, 2, "BUILD", function()
|
||||
sendStateCommand(turtle.turtleID, "building")
|
||||
end, colors.lightBlue)
|
||||
|
||||
addButton(14, btnY, btnW, 2, "AUTOCRAFT", function()
|
||||
sendStateCommand(turtle.turtleID, "autocraft")
|
||||
end, colors.pink)
|
||||
|
||||
-- Back button
|
||||
addButton(1, h - 1, 12, 2, "< BACK", function()
|
||||
viewMode = "detail"
|
||||
|
||||
Reference in New Issue
Block a user