-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsay_screen.rpy
78 lines (61 loc) · 2.19 KB
/
say_screen.rpy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
## Say screen ##################################################################
##
## The say screen is used to display dialogue to the player. It takes two
## parameters, who and what, which are the name of the speaking character and
## the text to be displayed, respectively. (The who parameter can be None if no
## name is given.)
##
## This screen must create a text displayable with id "what", as Ren'Py uses
## this to manage text display. It can also create displayables with id "who"
## and id "window" to apply style properties.
##
## https://www.renpy.org/doc/html/screen_special.html#say
screen say(who, what):
style_prefix "say"
window:
if who is not None:
window:
xpos 360
xanchor 0.0
padding (5, 5, 5, 5)
text who id "who":
size 45
font "fonts/OpenSans-Bold.ttf"
text what id "what":
pos (402, 75)
xsize 1116
size 30
font "fonts/OpenSans-Bold.ttf"
## If there's a side image, display it above the text. Do not display on the
## phone variant - there's no room.
if not renpy.variant("small"):
add SideImage() yalign 1.0
if config_debug:
timer 0.2 repeat True action SetField(config, "skipping", "slow")
style say_window is window:
xalign 0.5
xfill True
yalign 1.0
ysize 278
# screen multiple_say(who, what, multiple):
# style_prefix "say"
# window:
# if who is not None:
# window:
# xpos 360
# xanchor 0.0
# padding (5, 5, 5, 5)
# text who id "who":
# size 45
# font "fonts/OpenSans-Bold.ttf"
# text what id "what":
# pos (402, 75)
# xsize 1116
# size 30
# font "fonts/OpenSans-Bold.ttf"
# ## If there's a side image, display it above the text. Do not display on the
# ## phone variant - there's no room.
# if not renpy.variant("small"):
# add SideImage() yalign 1.0
# if config_debug:
# timer 0.2 repeat True action SetField(config, "skipping", "slow")