From 7dae800eed0ed02abf095cfaf2e7e9ab33acd354 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 02:47:16 -0500 Subject: [PATCH] style: Adjust button layout in drawDetail function for improved UI organization --- pocketremote.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pocketremote.lua b/pocketremote.lua index 3f66a78..74a91cb 100644 --- a/pocketremote.lua +++ b/pocketremote.lua @@ -244,8 +244,8 @@ local function drawDetail() print(" Empty") end - -- Action buttons - local btnY = h - 7 + -- Action buttons (row 1: explore/home/stop) + local btnY = h - 10 addButton(1, btnY, 8, 2, "EXPLORE", function() sendCommand(turtle.turtleID, "explore") end, colors.green) @@ -258,7 +258,8 @@ local function drawDetail() sendCommand(turtle.turtleID, "stop") end, colors.red) - btnY = h - 4 + -- Row 2: manual/modes/setHome + btnY = h - 7 addButton(1, btnY, 8, 2, "MANUAL", function() viewMode = "manual" sendCommand(turtle.turtleID, "manual") @@ -272,7 +273,8 @@ local function drawDetail() sendCommand(turtle.turtleID, "setHome") end, colors.blue) - btnY = h - 7 + -- Row 3: equip/rename + btnY = h - 4 addButton(1, btnY, 8, 2, "EQUIP L", function() -- Send eval to equip left modem.transmit(CHANNEL_SEND, CHANNEL_RECEIVE, { @@ -433,10 +435,6 @@ local function drawManual() }) end, colors.cyan) - addButton(19, h - 3, 7, 2, "INFO", function() - sendCommand(turtle.turtleID, "status") - end, colors.lightBlue) - addButton(1, h, 12, 1, "< BACK", function() viewMode = "detail" end, colors.gray)