Actually accommodates for weird flags. For real this time.

This commit is contained in:
GManon 2022-11-28 19:12:54 -03:00
parent 57555453b8
commit 9252776dad
2 changed files with 5 additions and 3 deletions

View file

@ -981,13 +981,14 @@ screen preferences():
draggable True draggable True
xsize 320 xsize 320
ysize 250 ysize 250
if len(languages)>5: if len(languages)>4:
scrollbars "vertical" scrollbars "vertical"
for lang in languages: for lang in languages:
fixed: fixed:
xsize 400 xsize 400
ysize 60 ysize 60
hbox: hbox:
spacing 10
textbutton lang["name"]: textbutton lang["name"]:
activate_sound "audio/ui/uiRollover.wav" activate_sound "audio/ui/uiRollover.wav"
action If(lang["value"] in persistent.seenWarning or lang["value"] == None, action If(lang["value"] in persistent.seenWarning or lang["value"] == None,

View file

@ -95,7 +95,7 @@ screen lang_sel:
for i in range(maxItems): for i in range(maxItems):
fixed: fixed:
xsize 400 xsize 400
ysize 250 ysize 300
vbox: vbox:
if i<len(languages): if i<len(languages):
text languages[i]["name"] at top text languages[i]["name"] at top
@ -111,4 +111,5 @@ screen lang_sel:
at renpysdumb # Scales the imagebutton down. No, you can't just specify the zoom here. It has to be a defined transform. at renpysdumb # Scales the imagebutton down. No, you can't just specify the zoom here. It has to be a defined transform.
else: else:
# Renpy seethes if a vpgrid doesn't have the exact maximum amount of items for some reason. # Renpy seethes if a vpgrid doesn't have the exact maximum amount of items for some reason.
add Null(0,0) add Null(0,0)
at truecenter