Update machine_1 default thumb position and adjust thumb X-coordinate positioning

- Set `$thumb_position` default value to `10` for improved alignment.
- Tweak thumb X-coordinate from `620` to `650` for better rendering consistency.
This commit is contained in:
Jeppe Bundgaard
2026-01-27 15:04:17 +01:00
parent 2e7376f00a
commit 43eeb14099
@@ -12,7 +12,7 @@ class machine_1 extends dynamicimages_image
const IMAGE_PANEL_BACKGROUND = 'machine_1_panel_background.png';
const IMAGE_WASH_PROGRAMS_THUMB = 'machine_1_wash_programs_thumb_standalone_transparent.png';
const IMAGE_WASH_PROGRAMS = 'machine_1_wash_programs_transparent.png';
public int $thumb_position = 0; // 1-12 (default: 0 = up = 270 degrees)
public int $thumb_position = 10; // 1-12 (default: 0 = up = 270 degrees)
/**
* @throws \Exception
@@ -34,11 +34,11 @@ class machine_1 extends dynamicimages_image
public function setup(): void
{
$this->initImageCanvas(6000, 4500);
// By default, the background should be shown with the programs on top and then on top of that the thumb 464 -> 311 = 1500 -> 1000
// By default, the background should be shown with the programs on top and then on top of that the thumb
$this->drawAsset($this->getAsset(self::IMAGE_PANEL_BACKGROUND), 0, 0);
$this->drawAsset($this->getAsset(self::IMAGE_WASH_PROGRAMS), 0, 0);
$thumbHeight = 1550;
$thumbX = 620;
$thumbX = 650;
$thumbY = 1290;
// Base resized thumb to compute the visual pivot (center coordinates)
$baseThumb = $this->getAsset(self::IMAGE_WASH_PROGRAMS_THUMB)->resize($this->calculateThumbWidth($thumbHeight), $thumbHeight);