WTS/game/scripts/gui/help.rpy

262 lines
6.6 KiB
Plaintext
Raw Normal View History

2022-05-16 23:48:22 +00:00
init offset = -1
screen help():
frame style "navigation_page_left":
pass
frame style "navigation_page_right":
pass
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
# use game_menu(_("Help"), scroll="viewport"):
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
# style_prefix "help"
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
# vbox:
# spacing 8
# null # Tab margin
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
# if page == 'tutorials':
# use tutorials_help
# elif page == "controls":
# use controls_help
# elif page == "gamepad":
# use gamepad_help
# elif page == "about":
# use about_help
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
# hbox:
# style_prefix gui.theme("tab")
# pos (25 + 15, 100)
# yanchor 0.5
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
# textbutton _("Tutorials") action [SelectedIf(page == 'tutorials'), Show("help", config.intra_transition, "tutorials")]
# if not renpy.mobile:
# textbutton _("Controls") action [SelectedIf(page == 'controls'), Show("help", config.intra_transition, "controls")]
# if GamepadExists():
# textbutton _("Gamepad") action [SelectedIf(page == 'gamepad'), Show("help", config.intra_transition, "gamepad")]
# textbutton _("About") action [SelectedIf(page == 'about'), Show("help", config.intra_transition, "about")]
2022-05-16 23:48:22 +00:00
screen help_tutorials():
frame style "navigation_page_left":
vbox:
label _("Tutorials")
viewport:
style_prefix "help"
yinitial 1.0
scrollbars "vertical"
mousewheel not renpy.android
has vbox
for entry, tutorial in tutorial_dict.items():
textbutton "[tutorial[0]]":
style "navigation_checkbox_button"
action Function(gui.in_context, "tutorial", entry, force=True)
selected tutorial[2]
frame style "navigation_page_right":
2024-06-22 12:40:33 +00:00
add "doodle_mermaid" align (0.5, 0.5)
screen help_controls():
frame style "navigation_page_left":
vbox:
label _("Controls")
viewport:
style_prefix "help"
scrollbars "vertical"
mousewheel not renpy.android
has vbox
label _("General") xalign 0.5
vbox:
label _("Interact")
text _("Space, Enter or Left Mouse Button")
vbox:
label _("Navigate")
text _("Arrow keys or mouse")
vbox:
label _("Cancel/Menu")
text _("Escape or Right Mouse Button")
vbox:
label _("Skip Dialogue")
text _("Ctrl or Tab")
vbox:
label _("RollBack Dialogue")
text _("Page up or Mouse Wheel Up")
vbox:
label _("Rollforward Dialogue")
text _("Page down or Mouse Wheel Down")
vbox:
label _("Hide Interface During Dialogue")
text _("H or Mouse Wheel Press")
vbox:
label _("Screenshot")
text _("Print Screen")
label _("Gameplay") xalign 0.5
vbox:
label _("Skip Time")
text _("S")
vbox:
label _("Inventory")
text _("I")
vbox:
label _("Pay Respects")
text _("F")
vbox:
label _("Highlight Interactive Objects")
text _("Space")
frame style "navigation_page_right":
2024-06-22 12:40:33 +00:00
add "doodle_snitch" align (0.5, 0.1)
add "doodle_panties" align (0.5, 0.7)
2022-05-16 23:48:22 +00:00
style help_viewport:
xmaximum 300
ymaximum 400
2022-05-16 23:48:22 +00:00
style help_vscrollbar is navigation_vscrollbar
style help_button is navigation_button
style help_button_text is navigation_button_text
style help_label is empty
style help_label_text is navigation_text:
hinting "auto"
font gui.bold_font
size 16
style help_text is navigation_text:
size 16
first_indent 10
2022-05-16 23:48:22 +00:00
# screen controls_help():
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Interaction")
# text _("Space, Enter or Left Mouse Button")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Navigate Interface")
# text _("Arrow keys or mouse")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Cancel/Menu")
# text _("Escape or Right Mouse Button")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Skipping")
# text _("Ctrl")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Toggle Skipping")
# text _("Tab")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Roll Back")
# text _("Page Up or Mouse Wheel Up")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Roll Forward")
# text _("Page Down or Mouse Wheel Down")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Hide Interface"
# text _("H or Middle Mouse Button")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Screenshot"
# text _("Print Screen")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Sleep"
# text _("s")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Map"
# text _("m")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Stats"
# text _("c")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Inventory"
# text _("i")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Fap-Fap-Fap"
# text _("f")
2022-05-16 23:48:22 +00:00
# hbox:
# label "Highlight Interactive Objects"
# text _("Space")
2022-05-16 23:48:22 +00:00
# screen gamepad_help():
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Right Trigger\nA/Bottom Button")
# text _("Advances dialogue and activates the interface.")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Left Trigger\nLeft Shoulder")
# text _("Rolls back to earlier dialogue.")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Right Shoulder")
# text _("Rolls forward to later dialogue.")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("D-Pad, Sticks")
# text _("Navigate the interface.")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Start, Guide")
# text _("Accesses the game menu.")
2022-05-16 23:48:22 +00:00
# hbox:
# label _("Y/Top Button")
# text _("Hides the user interface.")
2022-05-16 23:48:22 +00:00
# textbutton _("Calibrate") action GamepadCalibrate()
2022-05-16 23:48:22 +00:00
# screen about_help():
# vbox:
# spacing gui.pref_spacing
2022-05-16 23:48:22 +00:00
# if gui.about:
# text "[gui.about!t]\n"
2022-05-16 23:48:22 +00:00
# text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]") size 12
2022-05-16 23:48:22 +00:00
# style help_button is gui_button:
# background None
# xmargin 7
2022-05-16 23:48:22 +00:00
# style help_button_text is gui_button_text
2022-05-16 23:48:22 +00:00
# style help_label is gui_label:
# xsize 209
# right_padding 17
2022-05-16 23:48:22 +00:00
# style help_label_text is gui_label_text:
# xalign 1.0
# text_align 1.0
# outlines [(2, "#000", 0, 0)]
2022-05-16 23:48:22 +00:00
# style help_text is gui_text