fix: 用 Function(renpy.show_screen) 替换 ShowScreen
Ren'Py 8.5.2 中 ShowScreen 不在 py_eval globals 内, 改用 renpy.show_screen 经 Function 包装的方式调用: - gallery_panel 花朵按钮 → Function(renpy.show_screen, "yitao_gallery") - yitao_gallery 卡片按钮 → Function(renpy.show_screen, "gallery_detail", photo=photo) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -639,7 +639,7 @@ screen gallery_panel():
|
||||
ysize 160
|
||||
background None
|
||||
hover_background "#ffffff11"
|
||||
action ShowScreen("yitao_gallery")
|
||||
action Function(renpy.show_screen, "yitao_gallery")
|
||||
|
||||
vbox:
|
||||
xalign 0.5
|
||||
@@ -746,7 +746,7 @@ screen yitao_gallery():
|
||||
yfill True
|
||||
background None
|
||||
hover_background "#ffffff14"
|
||||
action [Function(mark_photo_seen, _pid), ShowScreen("gallery_detail", photo=photo)]
|
||||
action [Function(mark_photo_seen, _pid), Function(renpy.show_screen, "gallery_detail", photo=photo)]
|
||||
|
||||
add photo["file"]:
|
||||
fit "cover"
|
||||
|
||||
Reference in New Issue
Block a user