Internal tweaks

This commit is contained in:
Gouvernathor 2023-11-17 03:29:45 +01:00
parent acfb09516c
commit d34a96284c

View File

@ -93,11 +93,11 @@ screen summon_menu():
vbox: vbox:
pos (6, 6) pos (6, 6)
$ tmp_x = 0 $ allbusy = True
for char in summon_categories_sorted: for char in summon_categories_sorted:
if summon_dict[char]["flag"]: if summon_dict[char]["flag"]:
if summon_show_busy or not summon_dict[char]["busy"]: if summon_show_busy or not summon_dict[char]["busy"]:
$ tmp_x += 1 $ allbusy = False
frame: frame:
style "empty" style "empty"
xsize 195 xsize 195
@ -118,19 +118,16 @@ screen summon_menu():
add gui.format("interface/achievements/{}/spacer_left.webp") add gui.format("interface/achievements/{}/spacer_left.webp")
$ image_zoom = crop_image_zoom("interface/icons/head/"+summon_dict[char]["ico"]+".webp", 42, 42, summon_dict[char]["busy"])
button: button:
style gui.theme("overlay_button") style gui.theme("overlay_button")
background gui.format("interface/achievements/{}/iconbox.webp") background gui.format("interface/achievements/{}/iconbox.webp")
foreground "interface/achievements/glass_iconbox.webp" foreground "interface/achievements/glass_iconbox.webp"
xysize (48, 48) xysize (48, 48)
add image_zoom align (0.5, 0.5) add crop_image_zoom("interface/icons/head/"+summon_dict[char]["ico"]+".webp", 42, 42, summon_dict[char]["busy"]) align (0.5, 0.5)
text map_transcript_loc[summon_dict[char]["loc"]] size 10 xalign 0.625 yalign 0.9 xanchor 0.5 text map_transcript_loc[summon_dict[char]["loc"]] size 10 xalign 0.625 yalign 0.9 xanchor 0.5
if not states.sna.unlocked: if not states.sna.unlocked:
text "You don't know anyone" size 12 at truecenter text "You don't know anyone" size 12 at truecenter
else: elif allbusy:
if tmp_x <= 0: text "All characters are busy" size 12 at truecenter
text "All characters are busy" size 12 at truecenter