- UID
 - 3
 - 积分
 - 8169
 - 帖子
 - 259
 - 主题
 - 68
 - 论坛币
 - 5016 
 - 威望
 - 54 
 - EP值
 - 2533 
 - MP值
 - 20 
 - 阅读权限
 - 200
 - 注册时间
 - 2011-8-3
 - 在线时间
 - 1097 小时
 - 最后登录
 - 2022-10-8
  
 
 
 
    
 | 
預覽:http://pan.baidu.com/s/1hqqY9CC#dir/path=%2FSaiyakuFX_Preview- from tcaxPy 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, _BT, _ET, _SK, _KT, _X, _Y, _A, _TXT):
 
  
-     ASS_BUF  = []        # 保存ASS特效
 
 -     TCAS_BUF = []        # 保存TCAS特效
 
  
-     rx = 15
 
 -     ry = 3
 
 -     angle = 78
 
 -     y =25
 
 -     size = 230
 
 -     n = 50
 
  
-     if _i>3:
 
 -         rx = 25
 
 -         ry = 25
 
 -         angle = 0
 
 -         y = 0
 
 -         size = randint(150,300)
 
 -         n = 15
 
 -     for i in range(0,_KT,n):
 
 -         
 
 -         ass_main(ASS_BUF,SubL(_BT+_SK-5+randint(-5,5)+i,_BT+_SK+100+randint(-5,5)+i),an(5)+pos(_X+randint(0,rx),_Y+y+randint(-ry,ry))+frx(angle)+alpha1(255)+alpha3(82)+be(1)+color3("FFFFFF")+bord(1.5)+fs(15)+t(fsc(size,size)+bord(3.5))+fad(100,1000),"●")
 
 -         ass_main(ASS_BUF,SubL(_BT+_SK-5+randint(-5,5)+i,_BT+_SK+100+randint(-5,5)+i),an(5)+pos(_X+randint(-rx,0),_Y+y+randint(-ry,ry))+frx(angle)+alpha1(255)+alpha3(82)+be(1)+color3("FFFFFF")+bord(1.5)+fs(15)+t(fsc(size,size)+bord(3.5))+fad(100,1000),"●")        
 
 -         
 
 -         X = randint(0,5)
 
 -         
 
 -         if X == 0:
 
 -             ass_main(ASS_BUF,SubL(_BT+_SK-5+randint(-5,5)+i,_BT+_SK+100+randint(-5,5)+i),an(5)+pos(_X+randint(-5,5),_Y+y+randint(-3,3))+frx(angle)+alpha1(255)+alpha3(82)+be(1)+color3("FFFFFF")+bord(1.5)+fs(15)+t(fsc(size,size)+bord(3.5))+fad(100,1000),"●")
 
  
 
 
-     dx = _X - int(_A / 2 + 0.5)
 
 -     dy = _Y - int(_Fs / 2 + 0.5)
 
  
-     outline = TextOutlineDraw(Font, _TXT, dx, dy)
 
  
-     t0 = _BT - 15 + _j * 7
 
 -     t1 = t0 + 50
 
 -     t2 = _BT + _SK - 5
 
 -     t3 = _BT + _SK + _KT
 
 -     t4 = _ET - 60 + _j * 7
 
 -     t5 = t4 + 15
 
  
-     scol = 'FFFFFF'
 
  
-     T = 120
 
  
-     if _KT>120:
 
 -         T = _KT
 
 -     
 
 -     ass_main(ASS_BUF, SubL(t2, t2+T, 11, Pix_Style), pos(0, 0) + fad(0, 900) + alpha1(0) + alpha3(HexToDec('77')) + \
 
 -                                            blur(5) + bord(5) + t(bord(0)), '{\\p7}' + outline + '{\\p0}')
 
 -     ass_main(ASS_BUF, SubL(t0, t5, 5, Pix_Style), pos(1, 1) + fad(500, 500) + alpha1(0) + blur(1.3) + color1('000000'), \
 
 -                                                    '{\\p7}' + outline + '{\\p0}')
 
 -                                                                                                    
 
 -     ass_main(ASS_BUF, SubL(t0, t5, 6, Pix_Style), pos(0, 0) + fad(500, 500) + alpha1(180)  + color1('FFFFFF'), \
 
 -                                                    '{\\p7}' + outline + '{\\p0}')
 
  
-     lastptx0 = 0
 
 -     lastpty0 = 0
 
 -     first = True
 
 -     ti = t0 - 100 + randint(-30, 30)
 
 -     while ti <= t5 - 150:
 
 -         ptt0 = ti
 
 -         ptt1 = ptt0 + 300
 
 -         ptx0 = randint(_X - 20, _X + 20)
 
 -         pty0 = randint(_Y - 20, _Y + 20)
 
 -         if not first:
 
 -             for i in range(2):
 
 -                 ptx0_tmp = randint(_X - 20, _X + 20)
 
 -                 pty0_tmp = randint(_Y - 20, _Y + 20)
 
 -                 if GetDistance(lastptx0, lastpty0, ptx0, pty0) < GetDistance(lastptx0, lastpty0, ptx0_tmp, pty0_tmp):
 
 -                     ptx0 = ptx0_tmp
 
 -                     pty0 = pty0_tmp
 
 -         first = False
 
 -         lastptx0 = ptx0
 
 -         lastpty0 = pty0
 
 -         ptcol = 'FFFFFF'
 
 -         lumsz = 15 + GetDistance(_X, _Y, ptx0, pty0) * 0.5
 
 -         if ptt0 >= t2:
 
 -             ptcol = scol
 
 -         ts0 = ''
 
 -         if ptt0 < t2 and ptt1 > t2:
 
 -             ts0 = t(10 * (t2 - ptt0) - 10, 10 * (t2 - ptt0), color1(scol) + color3(scol))
 
 -         dup = 1
 
 -         if _j >= 4:
 
 -             dup = 2
 
 -         while dup > 0:
 
 -             ass_main(ASS_BUF, SubL(ptt0, ptt1, 10, Pix_Style), pos(ptx0, pty0) + clip(7, outline) + org(_X, _Y) + t(frz(RandSign() * randint(80, 120))) + \
 
 -                                 fad(800, 800) + t(0, 10 * (ptt1 - ptt0), bord(lumsz) + blur(lumsz)) + alpha1(HexToDec('44')) + alpha3(HexToDec('44')) + color1(ptcol) + color3(ptcol) + \
 
 -                                 ts0 + t((ptt1 - ptt0) * 700, ptt1, color1('000000') + color3('000000')), PixPt())
 
 -             dup -= 1
 
 -         ti += randint(120, 165)
 
  
-     return (ASS_BUF, TCAS_BUF)
 
  复制代码 |   
 
- 
1
查看全部评分 
 
- 
 
 
  
 |