Tokibean 码豆 0.4.4
Release v0.4.4: adjustable pet size
Add a pet size setting (Settings window dropdown): Small 0.5 / Normal
0.75 / Large 1.0 / Extra large 1.25. Only the pet scales — the usage
panel keeps its size. The pet grows in place from its feet and the
change applies live via config-changed.
Every step keeps the art-pixel size (S=4 x scale x dpr) an integer, so
the pixel art stays crisp. Rendering: the canvas CSS box and logical
space stay at the design 200x184, so pet.js and every skin are
untouched (they still read canvas.clientWidth === 200); the backing
buffer is rendered at dpr x scale and the enlargement is a CSS
transform, so backing density matches the on-screen size 1:1 with no
resampling.
All window geometry (collapsed height, width, Windows pre-allocated
height, click-through solid strip) is now derived from cfg.pet_scale in
both the Rust startup path and main.js's recomputeGeom().
Also bound the click-through solid strip to the pet's actual width
rather than the full window width, so the empty margins beside a
smaller pet pass clicks through.
Note: the default scale is 0.75, so existing installs (no pet_scale in
config) get a smaller pet after upgrading, and the collapsed window is
shorter (340 -> 255), which shifts the restored position slightly.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com