Stop clipping the cat at the window edge
The cat was drawn in a 100 x 90 box that was exactly the window, so anything reaching past it was cut off: the right whiskers always, and more of them in poses that push the head forward, up to art x 109 while stretching. The window box is now 120 x 106 with the drawing inset at (7, 14). The slack is symmetric on purpose, because facing left mirrors the art about the box centre, so asymmetric slack would clip the other side instead. The mood-name mapper grew the shared aspect ratio and became CatDefs, so every window sizes the cat the same way. Nose and mug offsets follow the new inset. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
403ac30b3a
commit
6b9553f6d4
8 files changed
+78
-66
No files matched your search
@@ -18,7 +18,7 @@ Window {
|
||||
property bool overlayActive: false
|
||||
|
||||
readonly property int catW: settings.catSize
|
||||
readonly property int catH: Math.round(settings.catSize * 0.9)
|
||||
readonly property int catH: Math.round(settings.catSize * CatDefs.aspect)
|
||||
readonly property real groundY: height - catH - settings.bottomMargin
|
||||
|
||||
// Only the cat itself should swallow clicks; everything else falls through.
|
||||
@@ -88,7 +88,7 @@ Window {
|
||||
anchors.fill: parent
|
||||
coat: win.settings.coat
|
||||
facingRight: win.cat.facingRight
|
||||
mood: CatMoods.name(win.cat.mood)
|
||||
mood: CatDefs.mood(win.cat.mood)
|
||||
lifted: win.cat.dragging
|
||||
petted: win.cat.hovered && !win.cat.dragging
|
||||
look: win.cat.look
|
||||
|
||||
Reference in new issue
Block a user