screen say(who, what): style_prefix "say" window: id "window" frame: bottom_padding 30 background None has vbox if who is not None: window: id "namebox" style "namebox" text who id "who" text what id "what" ## Если есть боковое изображение ("голова"), показывает её поверх текста. ## По стандарту не показывается на варианте для мобильных устройств — мало ## места. if not renpy.variant("small"): add SideImage() xalign 0.0 yalign 1.0 ## Делает namebox доступным для стилизации через объект Character. init python: config.character_id_prefixes.append('namebox') style window is default style say_label is default style say_dialogue is default style say_thought is say_dialogue style namebox is default style namebox_label is say_label style window: xalign 0.5 #xfill True xsize 800 yalign gui.textbox_yalign #yminimum gui.textbox_height background Frame("gui/textbox.png", 20, 20) style namebox: xpos gui.name_xpos xanchor gui.name_xalign xsize gui.namebox_width #ypos gui.name_ypos ysize gui.namebox_height background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign) padding gui.namebox_borders.padding style say_label: properties gui.text_properties("name", accent=True) xalign gui.name_xalign yalign 0.5 style say_dialogue: properties gui.text_properties("dialogue") xpos gui.dialogue_xpos xsize gui.dialogue_width #ypos gui.dialogue_ypos