Advertisement
barsunduk

renpy change quick_menu view

Sep 21st, 2015
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.07 KB | None | 0 0
  1. ##############################################################################
  2. # Quick Menu
  3. #
  4. # Экран, входящий в экран save и дающий некоторые полезные функции
  5. screen q1:
  6.     hbox:
  7.         style_group "quick"
  8.         xalign 1.0
  9.         yalign 1.0
  10.         textbutton _("Назад") action Rollback()
  11.         textbutton _("Сохранить") action ShowMenu('save')
  12.         textbutton _("Настр") action ShowMenu('preferences')
  13.         textbutton _("Пропуск") action Skip()
  14.         textbutton _("Вид") action SetField(persistent, "qm", "q2")
  15. screen q2:
  16.     hbox:
  17.         style_group "mm"
  18.         xalign 1.0
  19.         yalign 1.0
  20.         textbutton _("Назад") action Rollback()
  21.         textbutton _("Настр") action ShowMenu('preferences')
  22.         textbutton _("Вид") action SetField(persistent, "qm", "q1")
  23. screen quick_menu:
  24.     if persistent.qm == "q1":
  25.         use q1
  26.     if persistent.qm == "q2":
  27.         use q2
  28.  
  29. init -2 python:
  30.     if persistent.qm == None:
  31.         persistent.qm = "q2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement