Optimize choice screen constants and variables
This commit is contained in:
parent
42c3804b66
commit
c77f2ca46e
@ -122,6 +122,9 @@ style quick_button_text is default:
|
||||
#
|
||||
# https://www.renpy.org/doc/html/screen_special.html#choice
|
||||
|
||||
define blacklist_screens = {"say", "letter", "bld1"}
|
||||
define choice_width = int(config.screen_width/2)
|
||||
|
||||
screen choice(items, menu_yalign=.6):
|
||||
tag menu
|
||||
modal True
|
||||
@ -129,7 +132,6 @@ screen choice(items, menu_yalign=.6):
|
||||
|
||||
style_prefix gui.theme("menu")
|
||||
|
||||
default blacklist_screens = {"say", "letter", "bld1"} # Combine sets
|
||||
default blacklist_tags = set(get_character_tag(x) for x in states.dolls)
|
||||
|
||||
# Dont add the fade if character or saybox is present (They have their own triggers for fading)
|
||||
@ -143,9 +145,8 @@ screen choice(items, menu_yalign=.6):
|
||||
|
||||
vbox:
|
||||
spacing 0
|
||||
$ choice_width = int(config.screen_width/2)
|
||||
|
||||
$ max_progress = max([len(e.kwargs.get("progress", [])) for e in items])
|
||||
default max_progress = max(len(e.kwargs.get("progress", [])) for e in items)
|
||||
|
||||
for i, entry in enumerate(items, 1):
|
||||
$ style_part = entry.kwargs.get("style", None)
|
||||
|
Loading…
Reference in New Issue
Block a user