Advertisement
Yellow_Chocobo

Untitled

May 23rd, 2024
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. vbox:
  2.  
  3. style_prefix "radio"
  4. label _("Language")
  5. textbutton "English" action Language(None)
  6. textbutton "Spanish" action Language("spanish")
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. The whole pref menu code:
  15.  
  16. screen preferences():
  17.  
  18. tag menu
  19.  
  20. use game_menu(_("Preferences"), scroll="viewport"):
  21.  
  22. vbox:
  23.  
  24. hbox:
  25. box_wrap True
  26.  
  27. if renpy.variant("pc") or renpy.variant("web"):
  28.  
  29. vbox:
  30. style_prefix "radio"
  31. label _("Display")
  32. textbutton _("Window") action Preference("display", "window")
  33. textbutton _("Fullscreen") action Preference("display", "fullscreen")
  34.  
  35. vbox:
  36. style_prefix "check"
  37. label _("Skip")
  38. textbutton _("Unseen Text") action Preference("skip", "toggle")
  39. textbutton _("After Choices") action Preference("after choices", "toggle")
  40. textbutton _("Transitions") action InvertSelected(Preference("transitions", "toggle"))
  41.  
  42. ## Additional vboxes of type "radio_pref" or "check_pref" can be
  43. ## added here, to add additional creator-defined preferences.
  44.  
  45.  
  46.  
  47.  
  48. vbox:
  49.  
  50. style_prefix "radio"
  51. label _("Language")
  52. textbutton "English" action Language(None)
  53. textbutton "Spanish" action Language("spanish")
  54.  
  55.  
  56.  
  57. null height (4 * gui.pref_spacing)
  58.  
  59. hbox:
  60. style_prefix "slider"
  61. box_wrap True
  62.  
  63. vbox:
  64.  
  65. label _("Text Speed")
  66.  
  67. bar value Preference("text speed")
  68.  
  69. label _("Auto-Forward Time")
  70.  
  71. bar value Preference("auto-forward time")
  72.  
  73. vbox:
  74.  
  75. if config.has_music:
  76. label _("Music Volume")
  77.  
  78. hbox:
  79. bar value Preference("music volume")
  80.  
  81. if config.has_sound:
  82.  
  83. label _("Sound Volume")
  84.  
  85. hbox:
  86. bar value Preference("sound volume")
  87.  
  88. if config.sample_sound:
  89. textbutton _("Test") action Play("sound", config.sample_sound)
  90.  
  91.  
  92. if config.has_voice:
  93. label _("Voice Volume")
  94.  
  95. hbox:
  96. bar value Preference("voice volume")
  97.  
  98. if config.sample_voice:
  99. textbutton _("Test") action Play("voice", config.sample_voice)
  100.  
  101. if config.has_music or config.has_sound or config.has_voice:
  102. null height gui.pref_spacing
  103.  
  104. textbutton _("Mute All"):
  105. action Preference("all mute", "toggle")
  106. style "mute_all_button"
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement