remove ai generated comments
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
2026-02-18 19:29:06 +01:00
parent 6303781534
commit 1cf09de1fb
15 changed files with 56 additions and 155 deletions

View File

@@ -88,23 +88,13 @@ function UI.draw_desition_selector(desitions, selected_desition_index)
local bar_height = 16
local bar_y = Config.screen.height - bar_height
rect(0, bar_y, Config.screen.width, bar_height, Config.colors.dark_grey)
if #desitions > 0 then
local selected_desition = desitions[selected_desition_index]
local desition_label = selected_desition.label
local text_width = #desition_label * 4 -- Assuming 4 pixels per char
local text_y = bar_y + 4
-- Center the decision label
local text_x = (Config.screen.width - text_width) / 2
-- Draw left arrow at the far left
Print.text("<", 2, text_y, Config.colors.green)
-- Draw selected desition label
Print.text(desition_label, text_x, text_y, Config.colors.item) -- Highlight color
-- Draw right arrow at the far right
Print.text(">", Config.screen.width - 6, text_y, Config.colors.green) -- 6 = 2 (right margin) + 4 (char width)
end
local text_width = #desition_label * 4 local text_y = bar_y + 4
local text_x = (Config.screen.width - text_width) / 2
Print.text("<", 2, text_y, Config.colors.green)
Print.text(desition_label, text_x, text_y, Config.colors.item) Print.text(">", Config.screen.width - 6, text_y, Config.colors.green) end
end
function UI.update_desition_selector(desitions, selected_desition_index)