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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user