示例#1
0
文件: libedit.py 项目: saluk/pywright
 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]))
示例#2
0
 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]))
示例#3
0
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
示例#4
0
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