From e00c084e615dd81909fd89d5fc1b6e3672ee4083 Mon Sep 17 00:00:00 2001 From: Cafw Date: Wed, 4 Mar 2026 22:01:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=20Function(renpy.show=5Fscreen?= =?UTF-8?q?)=20=E6=9B=BF=E6=8D=A2=20ShowScreen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- game/screens.rpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/screens.rpy b/game/screens.rpy index c907138..97f6dc1 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -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"