From db99b293ded5577499aa59492deabd1073aede62 Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Wed, 28 Jan 2026 19:06:04 +0100 Subject: [PATCH] Reset `current_step` to 0 and update comments in `machine_1` button highlighting logic --- services/nginx/app/modules/dynamicimages/images/machine_1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/nginx/app/modules/dynamicimages/images/machine_1.php b/services/nginx/app/modules/dynamicimages/images/machine_1.php index 64abb11b..27b3339d 100644 --- a/services/nginx/app/modules/dynamicimages/images/machine_1.php +++ b/services/nginx/app/modules/dynamicimages/images/machine_1.php @@ -29,7 +29,7 @@ class machine_1 extends dynamicimages_image public int $button_columns_spacing = 442; // Spacing between columns of buttons public array $highlighted_buttons = [ // Array of button positions to highlight (0 indexed, left to right, top to bottom) - 0, 2, 4, 7 + // e.g., 0, 2, 4, 7 ]; // Reset button public int $reset_button_highlight_size = 380; // size of the highlighted reset button @@ -38,7 +38,7 @@ class machine_1 extends dynamicimages_image // Button counts public int $button_counter = 0; // Is incremented every time a button is drawn // Current step - public int $current_step = 3; // No "click counter" completed yet = 0 + public int $current_step = 0; // No "click counter" completed yet = 0 // Config public bool $only_generate_current_step = false; // If true, only generate the current step button highlights