summaryrefslogtreecommitdiff
path: root/game/gui/transforms.rpy
blob: ddada1a1efa20efa4f0b504b28fc761627cf2168 (plain) (blame)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
########################################################################################
#     This file is part of Spheres.
#     Copyright (C) 2019  Jesusalva

#     This library is free software; you can redistribute it and/or
#     modify it under the terms of the GNU Lesser General Public
#     License as published by the Free Software Foundation; either
#     version 2.1 of the License, or (at your option) any later version.

#     This library is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#     Lesser General Public License for more details.

#     You should have received a copy of the GNU Lesser General Public
#     License along with this library; if not, write to the Free Software
#     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
########################################################################################
# Transforms for the displayables
init offset = -1

transform enemy1:
    xalign 0.5
    yalign 0.5

transform enemy2:
    xalign 1.0
    yalign 0.5

transform enemy3:
    xalign 0.0
    yalign 0.5

transform party1:
    xpos 0.25
    xanchor 1.0
    yalign 1.0

transform party2:
    xpos 0.50
    xanchor 1.0
    yalign 1.0

transform party3:
    xpos 0.75
    xanchor 1.0
    yalign 1.0

transform party4:
    xpos 1.0
    xanchor 1.0
    yalign 1.0

#transform party5:
#    xalign 1.0
#    yalign 1.0

transform c_party1:
    xpos 0.25
    xanchor 1.0
    zoom 0.4

transform c_party2:
    xpos 0.50
    xanchor 1.0
    zoom 0.4

transform c_party3:
    xpos 0.75
    xanchor 1.0
    zoom 0.4

transform c_party4:
    xpos 1.0
    xanchor 1.0
    zoom 0.4

#transform c_party5:
#    xalign 1.0
#    yalign 1.0
#    zoom 0.25


transform czoom_on:
    yanchor 0.5
    yzoom 1.1
    linear 0.1 yzoom 1.2
    linear 0.2 yzoom 1.1

transform czoom_e1:
    pass
transform czoom_e2:
    pass
transform czoom_e3:
    pass
transform czoom_p1:
    pass
transform czoom_p2:
    pass
transform czoom_p3:
    pass
transform czoom_p4:
    pass
#transform czoom_p5:
#    pass
transform czoom_dd:
    pass

transform czoom_70:
    zoom 0.70

transform czoom_75:
    zoom 0.75


transform prologue_right1:
    xalign 0.67
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform prologue_right2:
    xanchor 1.0
    xpos 1.5
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform prologue_right2:
    xanchor 1.0
    xpos 1.25
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform prologue_center:
    xalign 0.42
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform prologue_left:
    xanchor 0.0
    xpos -0.32
    yanchor 1.0
    ypos (1824-gui.textbox_height)


transform tcenter:
    xalign 0.5
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform tleft:
    xalign 0.0
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform tright:
    xalign 1.0
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform toffscreenleft:
    xpos 0.0
    xanchor 1.0
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform toffscreenright:
    xpos 1.0
    xanchor 0.0
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform ttop:
    xalign 0.5
    yanchor 0.0
    ypos (gui.textbox_height)

transform tcustom(xaxis):
    xalign xaxis
    yanchor 1.0
    ypos (1824-gui.textbox_height)

transform tzoom(val):
    zoom val

# FIXME: Why not use `linear x zoom x` instead of this... ugly... mess?
transform tzoomin:
    zoom 0.1
    pause 0.05
    zoom 0.2
    pause 0.05
    zoom 0.3
    pause 0.05
    zoom 0.4
    pause 0.05
    zoom 0.5
    pause 0.05
    zoom 0.6
    pause 0.05
    zoom 0.7
    pause 0.05
    zoom 0.8
    pause 0.05
    zoom 0.9
    pause 0.05
    zoom 1.0
    pause 0.1
    zoom 1.2
    pause 0.1
    zoom 1.4
    pause 0.15
    zoom 1.2
    pause 0.1
    zoom 1.0