Hijiri

Untitled

Jul 3rd, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.01 KB | None | 0 0
  1. screen navigation:
  2.  
  3.     # The background of the game menu.
  4.     window:
  5.         style "gm_root"
  6.  
  7.     # The various buttons.
  8.     frame:
  9.         style_group "gm_nav"
  10.         xalign .98
  11.         yalign .98
  12.        
  13.         has vbox
  14.  
  15.         textbutton _("Return") action Return()
  16.         textbutton _("Preferences") action ShowMenu("preferences")
  17.         textbutton _("Save Game") action ShowMenu("save")
  18.         textbutton _("Load Game") action ShowMenu("load")
  19.         textbutton _("Main Menu") action MainMenu()
  20.         textbutton _("Help") action Help()
  21.         textbutton _("Quit") action Quit()
  22.  
  23. init -2 python:
  24.     style.gm_nav_button.size_group = "gm_nav"
  25.  
  26. screen preferences:
  27.  
  28.     tag menu
  29.  
  30.     # Include the navigation.
  31.     use navigation
  32.  
  33.     # Put the navigation columns in a three-wide grid.
  34.     grid 3 1:
  35.         style_group "prefs"
  36.         xfill True
  37.  
  38.         # The left column.
  39.         vbox:
  40.             frame:
  41.                 style_group "pref"
  42.                 has vbox
  43.  
  44.                 label _("Display")
  45.                 textbutton _("Window") action Preference("display", "window")
  46.                 textbutton _("Fullscreen") action Preference("display", "fullscreen")
  47.  
  48.             frame:
  49.                 style_group "pref"
  50.                 has vbox
  51.  
  52.                 label _("Transitions")
  53.                 textbutton _("All") action Preference("transitions", "all")
  54.                 textbutton _("None") action Preference("transitions", "none")
  55.  
  56.             frame:
  57.                 style_group "pref"
  58.                 has vbox
  59.  
  60.                 label _("Text Speed")
  61.                 bar value Preference("text speed")
  62.  
  63.             frame:
  64.                 style_group "pref"
  65.                 has vbox
  66.  
  67.                 textbutton _("Joystick...") action Preference("joystick")
  68.  
  69.         vbox:
  70.             frame:
  71.                 style_group "pref"
  72.                 has vbox
  73.  
  74.                 label _("Skip")
  75.                 textbutton _("Seen Messages") action Preference("skip", "seen")
  76.                 textbutton _("All Messages") action Preference("skip", "all")
  77.  
  78.             frame:
  79.                 style_group "pref"
  80.                 has vbox
  81.  
  82.                 textbutton _("Begin Skipping") action Skip()
  83.  
  84.             frame:
  85.                 style_group "pref"
  86.                 has vbox
  87.  
  88.                 label _("After Choices")
  89.                 textbutton _("Stop Skipping") action Preference("after choices", "stop")
  90.                 textbutton _("Keep Skipping") action Preference("after choices", "skip")
  91.  
  92.             frame:
  93.                 style_group "pref"
  94.                 has vbox
  95.  
  96.                 label _("Auto-Forward Time")
  97.                 bar value Preference("auto-forward time")
  98.  
  99.         vbox:
  100.             frame:
  101.                 style_group "pref"
  102.                 has vbox
  103.  
  104.                 label _("Music Volume")
  105.                 bar value Preference("music volume")
  106.  
  107.             frame:
  108.                 style_group "pref"
  109.                 has vbox
  110.  
  111.                 label _("Sound Volume")
  112.                 bar value Preference("sound volume")
  113.  
  114.                 if config.sample_sound:
  115.                     textbutton "Test":
  116.                         action Play("sound", config.sample_sound)
  117.                         style "soundtest_button"
  118.  
  119.             frame:
  120.                 style_group "pref"
  121.                 has vbox
  122.  
  123.                 label _("Voice Volume")
  124.                 bar value Preference("voice volume")
  125.  
  126.                 if config.sample_voice:
  127.                     textbutton "Test":
  128.                         action Play("voice", config.sample_voice)
  129.                         style "soundtest_button"
  130.  
  131. init -2 python:
  132.     style.pref_frame.xfill = True
  133.     style.pref_frame.xmargin = 5
  134.     style.pref_frame.top_margin = 5
  135.  
  136.     style.pref_vbox.xfill = True
  137.  
  138.     style.pref_button.size_group = "pref"
  139.     style.pref_button.xalign = 1.0
  140.  
  141.     style.pref_slider.xmaximum = 192
  142.     style.pref_slider.xalign = 1.0
  143.  
  144.     style.soundtest_button.xalign = 1.0
Advertisement
Add Comment
Please, Sign In to add comment