From 2f74221abb4ec455a5da87eac19b6097102f9a83 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Wed, 28 Jun 2023 17:47:38 +0100 Subject: [PATCH] Bug fixes * Fixed name conflict within screen scopes (pickling error) * Fixed expression editor error --- game/scripts/interface/achievements.rpy | 10 +++++----- game/scripts/interface/popup.rpy | 4 ++-- game/scripts/utility/editor.rpy | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/game/scripts/interface/achievements.rpy b/game/scripts/interface/achievements.rpy index ac00db28..0aafce72 100644 --- a/game/scripts/interface/achievements.rpy +++ b/game/scripts/interface/achievements.rpy @@ -89,7 +89,7 @@ init python: if not silent: renpy.play('sounds/achievement.ogg') - renpy.show_screen("achievement_window", string=persistent.achievements[id][1], title="Achievement unlocked!", icon=persistent.achievements[id][4]) + renpy.show_screen("achievement_window", msg=persistent.achievements[id][1], title="Achievement unlocked!", icon=persistent.achievements[id][4]) def lock(self, id): self.achievements[id][3] = False @@ -119,14 +119,14 @@ default achievements = Achievements() ### -label popup(string="", title="", icon=None, xpos=0, ypos=60, sound=True, soundfile='sounds/achievement.ogg'): +label popup(msg="", title="", icon=None, xpos=0, ypos=60, sound=True, soundfile='sounds/achievement.ogg'): if sound: play sound soundfile hide screen achievement_window - show screen achievement_window(string=string, title=title, icon=icon, xpos=xpos, ypos=ypos) + show screen achievement_window(msg=msg, title=title, icon=icon, xpos=xpos, ypos=ypos) return -screen achievement_window(string="", title="", icon=None, xpos=0, ypos=60): +screen achievement_window(msg="", title="", icon=None, xpos=0, ypos=60): tag popup_window layer "interface" @@ -160,7 +160,7 @@ screen achievement_window(string="", title="", icon=None, xpos=0, ypos=60): spacing 10 xalign 0.5 text title size 18 xalign 0.5 xanchor 0.5 - text string size 14 xalign 0.5 xanchor 0.5 + text msg size 14 xalign 0.5 xanchor 0.5 timer 6.0 action Hide("achievement_window") transform rotate_circular(): diff --git a/game/scripts/interface/popup.rpy b/game/scripts/interface/popup.rpy index 087f1317..08dd5ce1 100644 --- a/game/scripts/interface/popup.rpy +++ b/game/scripts/interface/popup.rpy @@ -7,7 +7,7 @@ transform popup_animation(time=4.0, xx=-200): pause time linear 0.5 xoffset absolute(xx) -screen popup_window(string="", xpos=0, ypos=60): +screen popup_window(msg="", xpos=0, ypos=60): tag popup_window zorder 100 @@ -18,7 +18,7 @@ screen popup_window(string="", xpos=0, ypos=60): at popup_animation pos (xpos, ypos) - text string align (0.5, 0.5) size 12 + text msg align (0.5, 0.5) size 12 label give_reward(text="You found something!", gift="interface/icons/box_blue_2.webp", sound=True): if sound: diff --git a/game/scripts/utility/editor.rpy b/game/scripts/utility/editor.rpy index 25e639ee..dfed9c18 100644 --- a/game/scripts/utility/editor.rpy +++ b/game/scripts/utility/editor.rpy @@ -76,7 +76,7 @@ init python: args = node.arguments if not args: - args = ArgumentInfo(contents, None, None) + args = renpy.ast.ArgumentInfo(contents, None, None) node.arguments = args else: if args.starred_indexes or args.doublestarred_indexes: