diff --git a/LIBSCII.py b/LIBSCII.py index 7a6b500..fcee8fe 100644 --- a/LIBSCII.py +++ b/LIBSCII.py @@ -208,7 +208,7 @@ class Scii: i["animations"]["coords_animations"][key]["animation_frame"] = 0 layerc += 1 self._dvram() - def show_text(self, text, portrait = None): + def _show_text(self, text, portrait = None): if portrait: dwidth = self.screen_width - (2 + self.portrait_width) else: dwidth = self.screen_width - 2 self._cvram() @@ -262,6 +262,8 @@ class Scii: if portrait: self._draw_portrait(portrait) self._dvram() if msg != "": self._add_message(msg) + def show_text(self, text, portrait = None): + self._show_text(text, portrait) input("End of the text > ") def _draw_portrait(self, portrait): for i in range(self.screen_height): @@ -294,10 +296,8 @@ class Scii: input("Go back > ") c = len(self.old_messages) for i in [i for i in self.old_messages[::-1]]: - self.show_text(i) + self._show_text(i) c -= 1 - self._cvram() - self._dvram() if c < 1: input("Go back > ") else: intxt = input("Next message > ") if len(intxt) > 0: @@ -311,7 +311,7 @@ class Scii: if c < len(choices): newtext += "{}:{}\n".format(c, i) else: newtext += "{}:{}".format(c, i) c += 1 - self.show_text(newtext, portrait) + self._show_text(newtext, portrait) try: choice = int(input("Choice > ")) except: choice = -1