- UID
- 3258
- 积分
- 15
- 帖子
- 1
- 主题
- 1
- 论坛币
- 48
- 威望
- 0
- EP值
- 10
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2016-6-1
- 在线时间
- 7 小时
- 最后登录
- 2016-6-23
|
新人第一次发帖 = =, 刚开始学习。
# coding=utf-8
from tcaxPy import *
def tcaxPy_Init():
global _FD
global _Fs
global _Blur
global COLOR
global width
global height
_FD = 1000 / GetVal(val_FXFPS)
_Fs = GetVal(val_FontSize)
_Blur = GetVal(val_Blur)
COLOR = DivClr(GetVal(val_1C), GetVal(val_2C), _Fs)
width = GetVal(val_TextWidth)
height = GetVal(val_TextHeight)
def tcaxPy_Fin():
pass
time_gap = 1
time_fac = 1
cut_piece = 50
def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
ASS_BUF = []
TCAS_BUF = []
ts = _start + _j * time_fac * _FD / 10 - time_gap * _FD / 10
te = _start + _elapk + _k
for i in range(cut_piece):
EFT = pos(_x, _y) + clip(
int(_x - 0.5 * width[_i][_j] + (1.0 / cut_piece) * i * width[_i][_j]),
int(_y - 0.5 * height[_i][_j]),
int(_x + width[_i][_j]),
int(_y + height[_i][_j])
)
ass_main(ASS_BUF, SubL(ts, ts + _elapk + int(_k * (1.0 / cut_piece) * i), 5), EFT, _txt)
return (ASS_BUF, TCAS_BUF)
|
-
1
查看全部评分
-
|