From d34a96284c179ef32aed145d1aa5838949d0c04a Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 17 Nov 2023 03:29:45 +0100 Subject: [PATCH] Internal tweaks --- game/scripts/interface/door.rpy | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/game/scripts/interface/door.rpy b/game/scripts/interface/door.rpy index b2b13211..ed6a11c3 100644 --- a/game/scripts/interface/door.rpy +++ b/game/scripts/interface/door.rpy @@ -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