From c781b3c3ed77dcdd99082b6c27ec4bd940e3fe91 Mon Sep 17 00:00:00 2001 From: CensoredUsername Date: Mon, 12 Feb 2024 15:49:34 +0100 Subject: [PATCH] Add untested camera statement. --- decompiler/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/decompiler/__init__.py b/decompiler/__init__.py index 885bb05f..800e6c84 100644 --- a/decompiler/__init__.py +++ b/decompiler/__init__.py @@ -427,6 +427,21 @@ def print_with(self, ast): self.write("with %s" % ast.expr) self.paired_with = False + @dispatch(renpy.ast.camera) + def print_camera(self, ast): + self.indent() + self.write("camera") + + if ast.name != "master": + self.write(" %s" % ast.name) + + if ast.at_list: + self.write(" at %s" % ", ".join(ast.at_list)) + + if ast.atl is not None: + self.write(":") + self.print_atl(ast.atl) + # Flow control @dispatch(renpy.ast.Label) @@ -782,7 +797,7 @@ def print_define(self, ast): self.write("define%s %s.%s%s %s %s" % (priority, ast.store[6:], ast.varname, index, operator, ast.code.source)) @dispatch(renpy.ast.Default) - def print_define(self, ast): + def print_default(self, ast): self.require_init() self.indent()