- UID
- 1462
- 积分
- 667
- 帖子
- 77
- 主题
- 13
- 论坛币
- 1091
- 威望
- 2
- EP值
- 447
- MP值
- 0
- 阅读权限
- 50
- 注册时间
- 2013-9-6
- 在线时间
- 141 小时
- 最后登录
- 2024-5-25
|
本帖最后由 Alex 于 2013-9-21 22:25 编辑
Hi
I tried to use TextOutlineDraw function, and i wrote everything properly
but I don't know why i can't see the draw text ?- from tcaxPy import *
- from extLibs.XXParticleSystem import *
- def tcaxPy_Init():
- global _Fs
- global Font
- _Fs = GetVal(val_FontSize)
- Font = InitFont(GetVal(val_FontFileName), GetVal(val_FaceID), _Fs, GetVal(val_Spacing), GetVal(val_SpaceScale), 0xFFFFFF, 0, 0)
- def tcaxPy_Fin():
- FinFont(Font)
- def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
- ASS_BUF = []
- TCAS_BUF = []
- dx = _x
- dy = _y
- outline = TextOutlineDraw(Font, _txt, dx, dy)
- t0 = _start - 50 + _j * 7
- t1 = t0 + 50
- t2 = _start + _elapk
- t3 = _start + _elapk + _k
- t4 = _end - 60 + _j * 7
- t5 = t4 + 50
- ass_main(ASS_BUF, SubL(t2, t2 + 100, 6, Pix_Style), pos(dx,dy) + an(8) + fad(0, 600) + color1('ffffff') + alpha1(0) + alpha3(HexToDec('77')) + blur(5) + bord(5) + t(bord(0)), '{\\p7}' + outline )
- ass_main(ASS_BUF, SubL(t0, t5, 5, Pix_Style), pos(dx,dy) +an(8) + fad(400, 400) + alpha1(0) + blur(1.3) + color1('000000'), '{\\p7}' + outline )
- return (ASS_BUF, TCAS_BUF)
复制代码 |
|