[RenPy] 纯文本查看 复制代码
define textbox_preview_repeat_time = 5.0
default countdown_time = 0.0
screen textbox_preview():
tag preview
fixed:
frame:
background "#aaa"
xysize(500,40)
align(.7,.0)
left_margin 20
text "如果能找寻到那真实的解脱,请告诉我" color "#F5f5f5" outlines [(2, "#4f4f4f",absolute(0), absolute(0))] slow_cps preferences.text_cps xalign .1 yalign .9
screen preferences():
tag menu
add gui.main_menu_background
key 'mouseup_3' action Return()
default display_preview = True
#on "hide" action With(Dissolve(1.0))
#on "show" action With(Dissolve(1.0))
if display_preview:
use textbox_preview()
#use game_menu(_("环境设定"), scroll="viewport"):
timer textbox_preview_repeat_time:
action [SetScreenVariable("display_preview",False)]
timer textbox_preview_repeat_time+1.0 repeat True action [Hide('textbox_preview'),SetVariable("countdown_time",textbox_preview_repeat_time+1.0),Show("textbox_preview")]