[RenPy] 纯文本查看 复制代码 screen quick_menu():
# 每帧判断鼠标是否在底部 20px 区域
timer 0.03 repeat True:
action SetVariable("quick_menu", renpy.get_mouse_pos()[1] > config.screen_height - 20)
zorder 100
if quick_menu:
hbox:
style_prefix "quick"
style "quick_menu"
textbutton _("回退") action Rollback()
textbutton _("历史") action ShowMenu('history')
textbutton _("快进") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("自动") action Preference("auto-forward", "toggle")
textbutton _("保存") action ShowMenu('save')
textbutton _("快存") action QuickSave()
textbutton _("快读") action QuickLoad()
textbutton _("设置") action ShowMenu('preferences')
找到一个写法,但是鼠标一旦移到区域内会刷新游戏的速度,导致文本内CTC切换过快
|