Advertisement
Crowgirl

Untitled

Feb 23rd, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 17.76 KB | None | 0 0
  1. # This file is in the public domain. Feel free to modify it as a basis
  2. # for your own screens.
  3.  
  4. ##############################################################################
  5. # Say
  6. #
  7. # Screen that's used to display adv-mode dialogue.
  8. # http://www.renpy.org/doc/html/screen_special.html#say
  9.  
  10. screen say:
  11.  
  12. # Defaults for side_image and two_window
  13.     default side_image = None
  14.     default two_window = False
  15.  
  16. # Decide if we want to use the one-window or two-window varaint.
  17.     if not two_window:
  18.  
  19. # The one window variant.
  20.         window:
  21.             id "window"
  22.  
  23.             has vbox:
  24.                 style "say_vbox"
  25.  
  26.             if who:
  27.                 text who id "who"
  28.  
  29.             text what id "what"
  30.  
  31.     else:
  32.       vbox:
  33.         style "say_two_window_vbox"
  34.  
  35.             if who:
  36.                 window:
  37.                     style "say_who_window"
  38.  
  39.                     text who:
  40.                         id "who"
  41.  
  42.             window:
  43.                     id "window"
  44.  
  45.                     has vbox:
  46.                         style "say_vbox"
  47.  
  48.                         text what id "what"
  49.  
  50. # If there's a side image, display it above the text.
  51.     if side_image:
  52.         add side_image
  53.  
  54.  
  55.  
  56. ##############################################################################
  57. # Choice
  58. #
  59. # Screen that's used to display in-game menus.
  60. # http://www.renpy.org/doc/html/screen_special.html#choice
  61.  
  62. screen choice:
  63.  
  64.     window:
  65.         style "menu_window"
  66.         xalign 0.5
  67.         yalign 0.5
  68.  
  69.         vbox:
  70.             style "menu"
  71.             spacing 2
  72.  
  73.             for caption, action, chosen in items:
  74.  
  75.                 if action:
  76.  
  77.                     button:
  78.                         action action
  79.                         style "menu_choice_button"
  80.  
  81.                         text caption style "menu_choice"
  82.  
  83.                 else:
  84.                     text caption style "menu_caption"
  85.  
  86. init -2 python:
  87.     config.narrator_menu = True
  88.  
  89.     style.menu_window.set_parent(style.default)
  90.     style.menu_choice.set_parent(style.button_text)
  91.     style.menu_choice.clear()
  92.     style.menu_choice_button.set_parent(style.button)
  93.     style.menu_choice_button.xminimum = int(config.screen_width * 0.75)
  94.     style.menu_choice_button.xmaximum = int(config.screen_width * 0.75)
  95.  
  96.  
  97. ##############################################################################
  98. # Input
  99. #
  100. # Screen that's used to display renpy.input()
  101. # http://www.renpy.org/doc/html/screen_special.html#input
  102.  
  103. screen input:
  104.  
  105.     window:
  106.         has vbox
  107.  
  108.         text prompt
  109.         input id "input"
  110.  
  111.  
  112. ##############################################################################
  113. # Nvl
  114. #
  115. # Screen used for nvl-mode dialogue and menus.
  116. # http://www.renpy.org/doc/html/screen_special.html#nvl
  117.  
  118. screen nvl:
  119.  
  120.     window:
  121.         style "nvl_window"
  122.  
  123.         has vbox:
  124.             style "nvl_vbox"
  125.  
  126. # Display dialogue.
  127.         for who, what, who_id, what_id, window_id in dialogue:
  128.             window:
  129.                 id window_id
  130.  
  131.                 has hbox:
  132.                     spacing 10
  133.  
  134.                     if who is not None:
  135.                         text who id who_id
  136.  
  137.                     text what id what_id
  138.  
  139. # Display a menu, if given.
  140.         if items:
  141.  
  142.             vbox:
  143.                 id "menu"
  144.  
  145.                 for caption, action, chosen in items:
  146.  
  147.                     if action:
  148.  
  149.                         button:
  150.                             style "nvl_menu_choice_button"
  151.                             action action
  152.  
  153.                             text caption style "nvl_menu_choice"
  154.  
  155.                     else:
  156.  
  157.                         text caption style "nvl_dialogue"
  158.  
  159.  
  160.  
  161. ##############################################################################
  162. # Main Menu
  163. #
  164. # Screen that's used to display the main menu, when Ren'Py first starts
  165. # http://www.renpy.org/doc/html/screen_special.html#main-menu
  166.  
  167. screen main_menu:
  168.  
  169. # This ensures that any other menu screen is replaced.
  170.     tag menu
  171.  
  172. # The background of the main menu.
  173.     window:
  174.         style "mm_root"
  175.  
  176.  
  177.     imagemap:
  178.         ground "main_menu_idle.jpg"
  179.         hover "main_menu_hover.jpg"
  180.  
  181.         hotspot (784,4,1015,112) action Start()
  182.         hotspot (772,114,1002,220) action ShowMenu("load")
  183.         hotspot (775,223,1005,332) action ShowMenu("preferences")
  184.         hotspot (767,333,1009,447) action Help()
  185.         hotspot (769,449,1005,565) action Quit(confirm=True)
  186.  
  187. init -2 python:
  188.  
  189. # Make all the main menu buttons be the same size.
  190.     style.mm_button.size_group = "mm"
  191.  
  192.  
  193. ##############################################################################
  194. # Navigation
  195. #
  196. # Screen that's included in other screens to display the game menu
  197. # navigation and background.
  198. # http://www.renpy.org/doc/html/screen_special.html#navigation
  199. screen navigation:
  200.  
  201.     # The background of the game menu.
  202.     window:
  203.         style "gm_root"
  204.  
  205.     # The various buttons.
  206.     imagemap:
  207.  
  208.         ground "navigation_ground.png"
  209.         idle "navigation_idle.png"
  210.         hover "navigation_selected.png"
  211.         selected_idle "navigation_selected_idle.png"
  212.         selected_hover "navigation_selected_hover.png"
  213.  
  214.         hotspot (1,684,159,767) action Return()
  215.         hotspot (161,685,316,768) action ShowMenu("save")
  216.         hotspot (318,685,470,768) action ShowMenu("load")
  217.         hotspot (473,685,622,768) action ShowMenu("preferences")
  218.         hotspot (624,686,776,767) action MainMenu()
  219.         hotspot (778,685,947,768) action Quit()
  220.  
  221. init -2 python:
  222.     style.gm_nav_button.size_group = "gm_nav"
  223.  
  224.  
  225. ##############################################################################
  226. # Save, Load
  227. #
  228. # Screens that allow the user to save and load the game.
  229. # http://www.renpy.org/doc/html/screen_special.html#save
  230. # http://www.renpy.org/doc/html/screen_special.html#load
  231.  
  232.  
  233.  
  234. screen save:
  235.  
  236. # This ensures that any other menu screen is replaced.
  237.     tag menu
  238.  
  239.     imagemap:
  240.         ground "HVB_Save_Load_Ground.png"
  241.         idle "HVB_Save_Load_Idle.png"
  242.         hover "HVB_Save_Load_Hover.png"
  243.         cache False
  244.  
  245.         hotspot (857,197,869,226) clicked FilePage(1) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  246.         hotspot (854,242,870,269) clicked FilePage(2) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  247.         hotspot (856,287,869,312) clicked FilePage(3) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  248.         hotspot (857,334,869,357) clicked FilePage(4) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  249.         hotspot (855,377,870,401) clicked FilePage(5) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  250.         hotspot (857,423,870,448) clicked FilePage(6) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  251.         hotspot (858,468,871,495) clicked FilePage(7) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  252.         hotspot (857,513,870,536) clicked FilePage(8) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  253.         hotspot (857,558,870,584) clicked FilePage(9) activate_sound "SwooshCombo3.mp3" hover_sound "SwooshCombo4.mp3"
  254.  
  255.         hotspot (213,214,425,353) clicked FileSave(1):
  256.             use load_save_slot(number=1)
  257.             activate_sound "SwooshCombo3.mp3"
  258.             hover_sound "SwooshCombo4.mp3"
  259.         hotspot (528,212,738,353) clicked FileSave(2):
  260.             use load_save_slot(number=2)
  261.             activate_sound "SwooshCombo3.mp3"
  262.             hover_sound "SwooshCombo4.mp3"
  263.         hotspot (214,423,425,561) clicked FileSave(3):
  264.             use load_save_slot(number=3)
  265.             activate_sound "SwooshCombo3.mp3"
  266.             hover_sound "SwooshCombo4.mp3"
  267.         hotspot (527,422,741,566) clicked FileSave(4):
  268.             use load_save_slot(number=4)
  269.             activate_sound "SwooshCombo3.mp3"
  270.             hover_sound "SwooshCombo4.mp3"
  271.  
  272.         hotspot (805,129,884,155) action Return()
  273.         activate_sound "SwooshCombo3.mp3"
  274.         hover_sound "SwooshCombo4.mp3"
  275.  
  276. screen load:
  277.  
  278. # This ensures that any other menu screen is replaced.
  279.     tag menu
  280.  
  281.     imagemap:
  282.         ground "HVB_Save_Load_Ground.png"
  283.         idle "HVB_Save_Load_Idle.png"
  284.         hover "HVB_Save_Load_Hover.png"
  285.         cache False
  286.  
  287.         hotspot (857,197,869,226) clicked FilePage(1)
  288.         activate_sound "SwooshCombo3.mp3"
  289.         hover_sound "SwooshCombo4.mp3"
  290.         hotspot (854,242,870,269) clicked FilePage(2)
  291.         activate_sound "SwooshCombo3.mp3"
  292.         hover_sound "SwooshCombo4.mp3"
  293.         hotspot (856,287,869,312) clicked FilePage(3)
  294.         activate_sound "SwooshCombo3.mp3"
  295.         hover_sound "SwooshCombo4.mp3"
  296.         hotspot (857,334,869,357) clicked FilePage(4)
  297.         activate_sound "SwooshCombo3.mp3"
  298.         hover_sound "SwooshCombo4.mp3"
  299.         hotspot (855,377,870,401) clicked FilePage(5)
  300.         activate_sound "SwooshCombo3.mp3"
  301.         hover_sound "SwooshCombo4.mp3"
  302.         hotspot (857,423,870,448) clicked FilePage(6)
  303.         activate_sound "SwooshCombo3.mp3"
  304.         hover_sound "SwooshCombo4.mp3"
  305.         hotspot (858,468,871,495) clicked FilePage(7)
  306.         activate_sound "SwooshCombo3.mp3"
  307.         hover_sound "SwooshCombo4.mp3"
  308.         hotspot (857,513,870,536) clicked FilePage(8)
  309.         activate_sound "SwooshCombo3.mp3"
  310.         hover_sound "SwooshCombo4.mp3"
  311.         hotspot (857,558,870,584) clicked FilePage(9)
  312.         activate_sound "SwooshCombo3.mp3"
  313.         hover_sound "SwooshCombo4.mp3"
  314.  
  315.         hotspot (213,214,425,353) clicked FileLoad(1):
  316.             use load_save_slot(number=1)
  317.             activate_sound "SwooshCombo3.mp3"
  318.             hover_sound "SwooshCombo4.mp3"
  319.         hotspot (528,212,738,353) clicked FileLoad(3):
  320.             use load_save_slot(number=3)
  321.             activate_sound "SwooshCombo3.mp3"
  322.             hover_sound "SwooshCombo4.mp3"
  323.         hotspot (214,423,425,561) clicked FileLoad(2):
  324.             use load_save_slot(number=2)
  325.             activate_sound "SwooshCombo3.mp3"
  326.             hover_sound "SwooshCombo4.mp3"
  327.         hotspot (527,422,741,566) clicked FileLoad(4):
  328.             use load_save_slot(number=4)
  329.             activate_sound "SwooshCombo3.mp3"
  330.             hover_sound "SwooshCombo4.mp3"
  331.  
  332.         hotspot (805,129,884,155) action Return()
  333.         activate_sound "SwooshCombo3.mp3"
  334.         hover_sound "SwooshCombo4.mp3"
  335.  
  336.     screen load_save_slot:
  337.         $ file_text = "% 2s. %s\n%s" % (
  338.                     FileSlotName(number, 4),
  339.                     FileTime(number, empty=_("Empty Slot")),
  340.                     FileSaveName(number))
  341.  
  342.         add FileScreenshot(number) xpos 220 ypos 20
  343.         text file_text xpos 0 ypos 10 size 40 color "#ffffff" outlines [ (2, "#302B54") ] kerning 2 font "FONT FILE NAME HERE"
  344.  
  345.         key "save_delete" action FileDelete(number)
  346.  
  347. init -2 python:
  348.  
  349.         config.thumbnail_width = 215
  350.         config.thumbnail_height = 144
  351.  
  352.  
  353.  
  354. ##############################################################################
  355. # Preferences
  356. #
  357. # Screen that allows the user to change the preferences.
  358. # http://www.renpy.org/doc/html/screen_special.html#prefereces
  359.  
  360. screen preferences:
  361.  
  362.     tag menu
  363.  
  364. # Include the navigation.
  365.  
  366.     imagemap:
  367.  
  368.         ground "navigation_ground.png"
  369.         idle "navigation_idle.png"
  370.         hover "navigation_selected.png"
  371.         selected_idle "navigation_selected_idle.png"
  372.         selected_hover "navigation_selected_hover.png"
  373.  
  374.         hotspot (1,684,159,767) action Return()
  375.         hotspot (161,685,316,768) action ShowMenu("save")
  376.         hotspot (318,685,470,768) action ShowMenu("load")
  377.         hotspot (473,685,622,768) action ShowMenu("preferences")
  378.         hotspot (624,686,776,767) action MainMenu()
  379.         hotspot (778,685,947,768) action Quit()
  380.  
  381.     imagemap:
  382.  
  383.         ground "Preferences_Ground.png"
  384.         idle "Preferences_Ground.png"
  385.         hover "Preferences_Hover.png"
  386.         selected_idle "Preferences_Ground.png"
  387.         selected_hover "Preferences_Hover.png"
  388.         alpha False
  389.  
  390.         hotspot (175,437,328,473) action Preference("display", "fullscreen")
  391.         hotspot (175,385,388,420) action Preference("display", "window")
  392.         hotspot (146,223,378,265) action ShowMenu("credits")
  393.  
  394.         bar pos (596,290) value Preference("text speed") style "pref_slider"
  395.         bar pos (601,428) value Preference("sound volume") style "pref_slider"
  396.         bar pos (606,570,864,615) value Preference("music volume") style "pref_slider"
  397.  
  398.  
  399. init -2 python:
  400.     style.pref_slider.left_bar = "left_bar.png"
  401.     style.pref_slider.right_bar = "right_bar.png"
  402.  
  403.     style.pref_slider.xmaximum = 259
  404.     style.pref_slider.ymaximum = 45
  405.  
  406.     style.pref_slider.thumb = "thumb.png"
  407.     style.pref_slider.thumb_offset = 4
  408.     style.pref_slider.thumb_shadow = None
  409.  
  410. #############################
  411. #
  412. # Credits screen from Options ("Preferences")
  413. #
  414. #
  415.  
  416. screen credits:
  417.  
  418.     init python:
  419.         menu = nvl_menu
  420.  
  421. # The color of a menu choice when it isn't hovered.
  422.         style.nvl_menu_choice.idle_color = "#0e829f"
  423.  
  424. # The color of a menu choice when it is hovered.
  425.         style.nvl_menu_choice.hover_color = "#00b9e7"
  426.  
  427. # The color of the background of a menu choice, when it isn't
  428. # hovered.
  429. # style.nvl_menu_choice_button.idle_background = "#00000000"
  430.  
  431. # The color of the background of a menu choice, when it is
  432. # hovered.
  433. # style.nvl_menu_choice_button.hover_background = "#ff000044"
  434.  
  435. # How far from the left menu choices should be indented.
  436.         style.nvl_menu_choice_button.left_margin = 20
  437.         style.nvl_window.background = "nvl_window.png"
  438.         style.nvl_window.xpadding = 0
  439.         style.nvl_window.ypadding = 0
  440.  
  441.         config.empty_window = nvl_show_core
  442.         config.window_hide_transition = pixellate
  443.         config.window_show_transition = pixellate
  444.  
  445.     define narrator = Character(None, kind=nvl)
  446.  
  447.     window show
  448.  
  449.     "Story, script, programming, original art assets, and creative direction by Kim Crawley, a.k.a. \"Crowgirl\"."
  450.     "Vector background for UI and Hackers Versus Banksters logo designed by Freepik."
  451.     "Made with the Ren'Py Visual Novel engine."
  452.  
  453.     window hide
  454.     nvl clear
  455.     window show
  456.  
  457.     "Music by Eric Matyas, www.soundimage.org"
  458.     "Sound FX by www.soundfxnow.com"
  459.     "Backgrounds are derived from original Creative Commons licensed photographs."
  460.  
  461.     window hide
  462.     nvl clear
  463.     window show
  464.  
  465.     "Queen Street West photo by Diego Silvestre. Eaton Centre photo by 松林 L."
  466.     "Hipster Cafe photo by eyeliam. TTC subway photo by Gloom."
  467.     "Home computer desk photo by THOR. Apartment photo by hobvias sudoneighm."
  468.  
  469.     window hide
  470.     nvl clear
  471.     window show
  472.  
  473.     "Hospital bed photo by Mark Hillary. Bank photos by shi zhao and Tinkoff Bank."
  474.     "Bay Street photos by mark.watmough and Chris Tyler. Server room photo by BalticServers.com."
  475.     "Toronto skyline photo by Prayitno. Honest Ed's photo by Mikerussell."
  476.  
  477.     window hide
  478.     nvl clear
  479.     window show
  480.  
  481.     "Candy display photo by Jeffrey O. Gustafson. Toronto Reference Library photo by Raysonho."
  482.     "/"Sujeta/" UI font by Tepid Monkey Fonts, www.fontframe.com/tepidmonkey"
  483.     "Hackers Versus Banksters logo font \"minya-nouvelle\" by Typodermic Fonts, typodermicfonts.com"
  484.  
  485.     window hide
  486.     nvl clear
  487.     window show
  488.  
  489.     "Hackers Versus Banksters logo font \"Old Gate Lane NF\" by 1001Fonts, 1001fonts.com"
  490.     "Hackers Versus Banksters logo font \"Rational Integer\" by Tepid Monkey Fonts, www.fontframe.com/tepidmonkey"
  491.     "Special thanks to those in the Ren'Py VN development community who created guides and tutorials I've found helpful..."
  492.  
  493.     window hide
  494.     nvl clear
  495.     window show
  496.  
  497.     "Fuck Yeah Ren'Py, fuckyeahrenpy.tumblr.com, Aleema, happybackwards.tumblr.com"
  498.     "The Ren'Py Handbook, renpyhandbook.tumblr.com, Camille, himeutsugi.org"
  499.     "Lemma Soft Forums community, lemmasoft.renai.us"
  500.  
  501.     window hide
  502.     nvl clear
  503.     window show
  504.  
  505.     "Extra special thanks go to the following Kickstarter funders!"
  506.     "*****************"
  507.     "This game is dedicated to my husband, Sean Rooney a.k.a. \"Tankboy\", for his love, moral, and emotional support."
  508.  
  509.     window hide
  510.     nvl clear
  511.     window show
  512.  
  513.     "And the mysterious \"MLW\" for preventing my husband and I from becoming destitute during hard financial times."
  514.     "Also to my late father, Michael Crawley, for encouraging me to write and create stories ever since I was a little girl..."
  515.     "For teaching me how to write for a living, for encouraging my technical and artistic pursuits, and for dedicating his novels to me."
  516.  
  517.     window hide
  518.     nvl clear
  519.     window show
  520.  
  521.     "Now I've dedicated a commercial fiction product to you. I'm sad that you aren't alive to see it."
  522.     "Rest In Peace, April 4th, 1937-December 23rd, 2013."
  523.  
  524.     window hide
  525.     nvl clear
  526.  
  527. ##############################################################################
  528. # Yes/No Prompt
  529. #
  530. # Screen that asks the user a yes or no question.
  531. # http://www.renpy.org/doc/html/screen_special.html#yesno-prompt
  532.  
  533. screen yesno_prompt:
  534.  
  535.     modal True
  536.  
  537.     imagemap:
  538.         ground 'yesno_ground.png'
  539.         idle 'yesno_idle.png'
  540.         hover 'yesno_hover.png'
  541.  
  542.         hotspot (434,451,508,503) action yes_action
  543.         hotspot (594,448,669,503) action no_action
  544.     add "yesno_ground.png"
  545.  
  546.     if message == layout.ARE_YOU_SURE:
  547.         add "yesno_are_you_sure.png"
  548.  
  549.     elif message == layout.DELETE_SAVE:
  550.         add "yesno_delete_save.png"
  551.  
  552.     elif message == layout.OVERWRITE_SAVE:
  553.         add "yesno_overwrite_save.png"
  554.  
  555.     elif message == layout.LOADING:
  556.         add "yesno_loading.png"
  557.  
  558.     elif message == layout.QUIT:
  559.         add "yesno_quit.png"
  560.  
  561.     elif message == layout.MAIN_MENU:
  562.         add "yesno_main_menu.png"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement