feat: show save state if matching
Python Lint CI / ruff (push) Successful in 5m35s
Python Lint CI / ruff-format-check (push) Successful in 5m39s
Python Lint CI / ty (push) Successful in 5m49s

This commit is contained in:
2026-11-11 22:41:49 +01:00
parent 7c486af691
commit 2da6670d23
6 changed files with 63 additions and 8 deletions
+14
View File
@@ -10,6 +10,7 @@ from .constants import (
ESTIMATED_LONG_BOOT_TIME_SECONDS,
FONT_1_PATH,
FONT_2_PATH,
FORGE_SAVE_STATES_COUNT,
FX_GROUP,
FXA_FRAG,
FXB_FRAG,
@@ -186,6 +187,19 @@ def __get_running_display(data: ForgeData) -> Image.Image:
if draw_base:
draw.rectangle((114, 34, 121, 36), fill="white")
# states
for i in range(FORGE_SAVE_STATES_COUNT):
if data.is_state(i):
draw.rectangle(
(
91 + (i % 3) * 5,
53 + (i // 3) * 5,
96 + (i % 3) * 5,
58 + (i // 3) * 5,
),
fill="white",
)
return __xor(im, im_overlay)