viewtopic.php?f=8&t=57526&p=522497#p522497
Thanks to Mr. Python for explaining what and how.
I have another problem now, I still can't figure out how to make a separate phrase with a button.
And so that it is included only in those phrases where there is a voice message. Tell me please
Code: Select all
screen history():
tag menu
predict False
frame:
background black2
left_margin 80
right_margin 80
top_margin 50
bottom_margin 50
left_padding 50
right_padding 100
top_padding 75
bottom_padding 50
vpgrid:
style_prefix "history"
cols 1
yinitial 1.0
draggable True
mousewheel True
scrollbars "vertical"
ymaximum 800
for h in _history_list:
frame:
background None
left_margin 80
right_margin 80
top_margin 50
bottom_margin 50
left_padding 50
right_padding 100
top_padding 75
bottom_padding 50
has fixed:
yfit True
if h.who:
label h.who:
style "history_name"
if "color" in h.who_args:
text_color h.who_args["color"]
$ what = renpy.filter_text_tags(h.what, allow=gui.history_allow_tags)
text what
if not _history_list:
label _("ヒストリーはありません。")
textbutton _("戻る"):
style "return_button"
action Return()
Code: Select all
if h.voice and h.voice.filename:
textbutton "Replay" action Play("voice", h.voice.filename)