feat: Add scan, extract, build, and autocraft buttons to turtle control interface

This commit is contained in:
MayaTheShy
2026-02-20 02:21:09 -05:00
parent b632e14932
commit 6e05efa2f0

View File

@@ -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"