﻿from tcaxPy import *

def tcaxPy_Line(_i, _start, _end, _initX, _initY, _length, ASS_BUF, TCAS_BUF):
    pass

def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):

    ASS_BUF  = []        # 保存ASS特效
    TCAS_BUF = []        # 保存TCAS特效

    ##### 主要特效编写操作 #####

    ### begin of line scope, do not change the code ###
    lineChanged = IsLineChanged(_i)
    if lineChanged:
        _initX = _x - int(_a / 2 + 0.5)
        _initY = _y - int(GetVal(val_FontSize) / 2 + 0.5)
        _length = GetVal(val_TextLength)[_i]
        tcaxPy_Line(_i, _start, _end, _initX, _initY, _length, ASS_BUF, TCAS_BUF)
    ### end of line scope, do not change the code ###

    ##### 将结果返回给tcax进行处理 #####

    return (ASS_BUF, TCAS_BUF)


