As you can see on the screenshot, text blocks are overlapping despite of using gui.history_height = None
I've written my own vpgrid for history screen:
https://pp.userapi.com/c837134/v8371343 ... UPMv6I.jpg
Code: Select all
gui.rpy
## История #####################################################################
define config.history_length = 150
define gui.history_height = 110
define gui.history_name_xpos = 200
define gui.history_name_ypos = 70
define gui.history_name_width = 200
define gui.history_name_xalign = 1.0
define gui.history_text_xpos = 225
define gui.history_text_ypos = 70
define gui.history_text_width = 1185
define gui.history_text_xalign = 0.0
################################################################################
################################################################################
screen history():
tag menu
frame:
background "gui/history_back.png"
xpos 260
predict False
vpgrid:
style_prefix "history"
scrollbars "vertical"
mousewheel True
draggable True
cols 1
yinitial 1.0
side_ysize 900
side_xsize 1400
side_xpos 220
side_ypos 120
for h in _history_list:
window:
#background "#f002"
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"]
text h.what
if not _history_list:
label _("The dialogue history is empty.")
button:
idle_background "gui/button/return_btn_idle.png"
hover_background "gui/button/return_btn_hover.png"
focus_mask "gui/button/return_btn_hover.png"
action Return()
xpos 90
ypos 870
style history_window is empty
style history_name is gui_label
## Взял шрифты от say_text вместо gui_text
style history_name_text is say_text
style history_text is gui_text
style history_text is say_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
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