Internal tweaks

(cherry picked from commit d34a96284c)
This commit is contained in:
Gouvernathor 2023-11-17 03:29:45 +01:00 committed by LoafyLemon
parent 03d1c9a2c4
commit db26683c25
1 changed files with 5 additions and 8 deletions

View File

@ -93,11 +93,11 @@ screen summon_menu():
vbox:
pos (6, 6)
$ tmp_x = 0
$ allbusy = True
for char in summon_categories_sorted:
if summon_dict[char]["flag"]:
if summon_show_busy or not summon_dict[char]["busy"]:
$ tmp_x += 1
$ allbusy = False
frame:
style "empty"
xsize 195
@ -118,19 +118,16 @@ screen summon_menu():
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:
style gui.theme("overlay_button")
background gui.format("interface/achievements/{}/iconbox.webp")
foreground "interface/achievements/glass_iconbox.webp"
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
if not states.sna.unlocked:
text "You don't know anyone" size 12 at truecenter
else:
if tmp_x <= 0:
text "All characters are busy" size 12 at truecenter
elif allbusy:
text "All characters are busy" size 12 at truecenter