For reference, here's the code I'm using:
Code: Select all
screen history():
tag menu
add "gui/History/pg_history.png"
predict False
side "c r":
area (100, 100, 650, 400)
viewport id "vp":
scrollbars "vertical"
draggable True
mousewheel True
arrowkeys True
yinitial 1.0
area (230, 70, 1800, 470)
vbox:
for h in _history_list:
if h.who:
label h.who:
style "history_name"
## Take the color of the who text from the Character, if
## set.
if "color" in h.who_args:
text_color h.who_args["color"]
frame background None bottom_margin 50: # add this line
text h.what outlines [ (1, "#000000", 0, 0), (0, "#000000", 2, 2) ]
if not _history_list:
label _("The dialogue history is empty.")
## This determines what tags are allowed to be displayed on the history screen.
define gui.history_allow_tags = set()
style history_window is empty
style history_name is gui_label
style history_name_text is gui_label_text
style history_text is gui_text
style history_text is gui_text
style history_label is gui_label
style history_label_text is gui_label_text
style history_window:
xfill True
ysize gui.history_height
style history_name:
xpos gui.history_name_xpos
xanchor gui.history_name_xalign
ypos gui.history_name_ypos
xsize gui.history_name_width
style history_name_text:
min_width gui.history_name_width
text_align gui.history_name_xalign
font "Kingthings_Petrock.ttf"
size 40
color "#2F5F83"
style history_text:
xpos gui.history_text_xpos
ypos gui.history_text_ypos
xanchor gui.history_text_xalign
xsize gui.history_text_width
min_width gui.history_text_width
text_align gui.history_text_xalign
layout ("subtitle" if gui.history_text_xalign else "tex")
style history_label:
xfill True
style history_label_text:
xalign 0.5