summaryrefslogtreecommitdiff
path: root/game/gui/help.rpy
blob: 423152be17477daeda11a7d71912148888dc7605 (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
## Help screen #################################################################
##
## A screen that gives information about key and mouse bindings. It uses other
## screens (keyboard_help, mouse_help, and gamepad_help) to display the actual
## help.
##
## It is not used in Mana Spheres mobile client
init offset = -1

screen help():

    tag menu

    default device = "spheres"

    use game_menu(_("Help"), scroll="viewport"):

        style_prefix "help"

        vbox:
            spacing 15

            hbox:

                textbutton _("Spheres") action SetScreenVariable("device", "spheres")

                if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
                    textbutton _("Keyboard") action SetScreenVariable("device", "keyboard")

                    textbutton _("Mouse") action SetScreenVariable("device", "mouse")

                if GamepadExists():
                    textbutton _("Gamepad") action SetScreenVariable("device", "gamepad")

            if device == "keyboard":
                use keyboard_help
            elif device == "mouse":
                use mouse_help
            elif device == "gamepad":
                use gamepad_help
            elif device == "spheres":
                use spheres_help


screen keyboard_help():

    hbox:
        label _("Enter")
        text _("Advances dialogue and activates the interface.")

    hbox:
        label _("Space")
        text _("Advances dialogue without selecting choices.")

    hbox:
        label _("Arrow Keys")
        text _("Navigate the interface.")

    hbox:
        label _("Ctrl")
        text _("Skips dialogue while held down.")

    hbox:
        label _("Tab")
        text _("Toggles dialogue skipping.")

    hbox:
        label "H"
        text _("Hides the user interface.")

    hbox:
        label "S"
        text _("Takes a screenshot.")

    hbox:
        label "V"
        text _("Toggles assistive {a=https://www.renpy.org/l/voicing}self-voicing{/a}.")

    null height 64
    hbox:
        label _("Note:")
        text _("Spheres can be manipulated with {color=#0f0}Alt{/color}, followed by the party member number.")
    hbox:
        label _("Example:")
        text _("Alt+1 to select first sphere, Alt+3 to swap with third sphere.")

screen mouse_help():

    hbox:
        label _("Left Click")
        text _("Advances dialogue and activates the interface.")

    hbox:
        label _("Middle Click")
        text _("Hides the user interface.")

    hbox:
        label _("Right Click")
        text _("Accesses the game menu.")


screen gamepad_help():

    hbox:
        label _("Right Trigger\nA/Bottom Button")
        text _("Advances dialogue and activates the interface.")

    hbox:
        label _("D-Pad, Sticks")
        text _("Navigate the interface.")

    hbox:
        label _("Start, Guide")
        text _("Accesses the game menu.")

    hbox:
        label _("Y/Top Button")
        text _("Hides the user interface.")

    textbutton _("Calibrate") action GamepadCalibrate()



screen spheres_help():

    hbox:
        add "gfx/sphere/1.png"
        label _("Attack Row")
        text _("Attacks all enemies.")

    hbox:
        add "gfx/sphere/2.png"
        label _("Pierce")
        text _("Attack with double power.")

    hbox:
        add "gfx/sphere/3.png"
        label _("Shockwave")
        text _("May cause additional damage.")

    hbox:
        add "gfx/sphere/4.png"
        label _("Heal")
        text _("Recover 30%% HP.")

    hbox:
        add "gfx/sphere/5.png"
        label _("Heal All")
        text _("Heal all allies in 30%%.")

    hbox:
        add "gfx/sphere/6.png"
        label _("Attack Up")
        text _("Raise party damage for 1 turn.")

    hbox:
        add "gfx/sphere/7.png"
        label _("Defense Up")
        text _("Raise party defense for 1 turn.")

    null height 32
    hbox:
        label _("Reminder:")
        text _("Spheres goes before Skills.")
    text _("Skills goes before normal attacks.")
    null height 32
    text _("Summoning does not take a turn.")
    text _("Do it before assigning spheres.")


style help_button is gui_button
style help_button_text is gui_button_text
style help_label is gui_label
style help_label_text is gui_label_text
style help_text is gui_text

style help_button:
    properties gui.button_properties("help_button")
    xmargin 8

style help_button_text:
    properties gui.button_text_properties("help_button")

style help_label:
    xsize 250
    right_padding 20

style help_label_text:
    size gui.text_size
    xalign 1.0
    text_align 1.0