From 591d10a5ccad32bc47635e7b8bd85c4b473bed4b Mon Sep 17 00:00:00 2001 From: Cafw Date: Wed, 4 Mar 2026 21:57:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20add=20=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=E4=B8=8D=E6=94=AF=E6=8C=81=20xfill/yfill/xmaximum=20?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ren'Py add 语句不接受 xfill、yfill、xmaximum、ymaximum, 改用 xsize/ysize 显式指定尺寸: - icon_gallery: xsize 112, ysize 112 - 照片卡片: xsize 425, ysize 567 - 详情页图片: xsize 960, ysize 1008 Co-Authored-By: Claude Sonnet 4.6 --- game/screens.rpy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/game/screens.rpy b/game/screens.rpy index 84e69f6..c907138 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -653,9 +653,9 @@ screen gallery_panel(): padding (0, 0, 0, 0) add "images/gallery/icon_gallery.png": - xfill True - yfill True fit "contain" + xsize 112 + ysize 112 text "画廊": xalign 0.5 @@ -749,9 +749,9 @@ screen yitao_gallery(): action [Function(mark_photo_seen, _pid), ShowScreen("gallery_detail", photo=photo)] add photo["file"]: - xfill True - yfill True fit "cover" + xsize 425 + ysize 567 else: ## 未解锁:锁定状态 @@ -845,8 +845,8 @@ screen gallery_detail(photo): xalign 0.5 yalign 0.5 fit "contain" - xmaximum 960 - ymaximum 1008 + xsize 960 + ysize 1008 ## 右栏:文字信息(45%,xsize 864) frame: