This is code for some of characters. As you can see first four have repeating styles.
Code: Select all
define girl_b = Character('Girl A', color="#2a82a7", who_size=27, who_xpos=27, who_font="fonts/Franklin Gothic Medium.ttf", who_outlines=[(2, (0,0,0, 120), 2,2), (1, (255,225,255, 255)), (2, (255,255,255, 150))], what_size=22, what_font="fonts/Franklin Gothic Medium.ttf", what_drop_shadow=[(2, 2)])
define girl_c = Character('Girl B', color="#2a82a7", who_size=27, who_xpos=27, who_font="fonts/Franklin Gothic Medium.ttf", who_outlines=[(2, (0,0,0, 120), 2,2), (1, (255,225,255, 255)), (2, (255,255,255, 150))], what_size=22, what_font="fonts/Franklin Gothic Medium.ttf", what_drop_shadow=[(2, 2)])
define child_a = Character('Child A', color="#2a82a7", who_size=27, who_xpos=27, who_font="fonts/Franklin Gothic Medium.ttf", who_outlines=[(2, (0,0,0, 120), 2,2), (1, (255,225,255, 255)), (2, (255,255,255, 150))], what_size=22, what_font="fonts/Franklin Gothic Medium.ttf", what_drop_shadow=[(2, 2)])
define child_b = Character('Child B', color="#2a82a7", who_size=27, who_xpos=27, who_font="fonts/Franklin Gothic Medium.ttf", who_outlines=[(2, (0,0,0, 120), 2,2), (1, (255,225,255, 255)), (2, (255,255,255, 150))], what_size=22, what_font="fonts/Franklin Gothic Medium.ttf", what_drop_shadow=[(2, 2)])
define narrator = Character(what_size=22, what_font="fonts/Franklin Gothic Medium.ttf", what_drop_shadow=[(2, 2)])
Code: Select all
screen say(who, what):
window:
id "window"
vbox:
if who is not None:
style "name"
text who id "who"
style "dialog"
text what id "what"
use quick_menu
# Textbox style
style window:
xalign 0.5
yalign 1.0
xsize 800
ysize 180
right_padding 168
background "images/gui/window.png"
style name:
xpos 38
ypos 10
spacing 6
style dialog:
xpos 38
ypos 53
Code: Select all
style main_character:
some style here
style secondary_character:
some style here