def __init__(self, line): super(textbox, self).__init__() self.line = line assets.variables["_speaking"] = None self.tb = core.textbox(line.replace("{n}", "\n"), rightp=False) self.tb.go = 1 self.draw(pygame.Surface([10, 10]))
def __init__(self,line): super(textbox,self).__init__() self.line = line assets.variables["_speaking"] = None self.tb = core.textbox(line.replace("{n}","\n"),rightp=False) self.tb.go = 1 self.draw(pygame.Surface([10,10]))
def check_line(path,i,line): tb = core.textbox(line[1:-1].replace("{n}","\n")) tb.can_skip = True tb.enter_down() try: tb.update() except: print path,i import traceback traceback.print_exc() if getattr(tb,"OVERAGE",0)>1: print path,i,tb.written
def check_line(path, i, line): tb = core.textbox(line[1:-1].replace("{n}", "\n")) tb.can_skip = True tb.enter_down() try: tb.update() except: print path, i import traceback traceback.print_exc() if getattr(tb, "OVERAGE", 0) > 1: print path, i, tb.written