fix: 修正 add 语句不支持 xfill/yfill/xmaximum 的错误

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 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 21:57:25 +08:00
parent dce1aaf9b2
commit 591d10a5cc

View File

@@ -653,9 +653,9 @@ screen gallery_panel():
padding (0, 0, 0, 0) padding (0, 0, 0, 0)
add "images/gallery/icon_gallery.png": add "images/gallery/icon_gallery.png":
xfill True
yfill True
fit "contain" fit "contain"
xsize 112
ysize 112
text "画廊": text "画廊":
xalign 0.5 xalign 0.5
@@ -749,9 +749,9 @@ screen yitao_gallery():
action [Function(mark_photo_seen, _pid), ShowScreen("gallery_detail", photo=photo)] action [Function(mark_photo_seen, _pid), ShowScreen("gallery_detail", photo=photo)]
add photo["file"]: add photo["file"]:
xfill True
yfill True
fit "cover" fit "cover"
xsize 425
ysize 567
else: else:
## 未解锁:锁定状态 ## 未解锁:锁定状态
@@ -845,8 +845,8 @@ screen gallery_detail(photo):
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
fit "contain" fit "contain"
xmaximum 960 xsize 960
ymaximum 1008 ysize 1008
## 右栏文字信息45%xsize 864 ## 右栏文字信息45%xsize 864
frame: frame: