WTS/game/scripts/gui/help.rpy

145 lines
4.1 KiB
Plaintext
Raw Permalink Normal View History

2022-05-17 00:48:22 +01:00
init offset = -1
screen help():
frame style "navigation_page_left":
pass
frame style "navigation_page_right":
pass
2022-05-17 00:48:22 +01:00
2024-06-14 16:34:50 +01:00
# use game_menu(_("Help"), scroll="viewport"):
2022-05-17 00:48:22 +01:00
2024-06-14 16:34:50 +01:00
# style_prefix "help"
2022-05-17 00:48:22 +01:00
2024-06-14 16:34:50 +01:00
# vbox:
# spacing 8
# null # Tab margin
2022-05-17 00:48:22 +01:00
2024-06-14 16:34:50 +01: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-17 00:48:22 +01:00
2024-06-14 16:34:50 +01:00
# hbox:
# style_prefix gui.theme("tab")
# pos (25 + 15, 100)
# yanchor 0.5
2022-05-17 00:48:22 +01:00
2024-06-14 16:34:50 +01: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-17 00:48:22 +01: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 13:40:33 +01: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 13:40:33 +01:00
add "doodle_snitch" align (0.5, 0.1)
add "doodle_panties" align (0.5, 0.7)
2022-05-17 00:48:22 +01:00
style help_viewport:
xmaximum 300
ymaximum 400
2022-05-17 00:48:22 +01: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