Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. function Sub(clip s, string okay, int offset, string "font_", int "size__"){
  2. length_=StrLen(okay)
  3. f=offset+1
  4. ##size_=(length_<30*f) ? 48 : (length_<55*f) ? 36 : (length_>87*f) ? Error_Text_Is_Too_Long() : 24
  5. ##fact_=
  6. size_=(length_<30*f) ? 48 : (length_<=55*f) ? 36 : (length_>87*f) ? Error_Text_Is_Too_Long() : Floor((-3*float(length_))/(8*f)+float(453/8))
  7. size_=(size_<=24 || f>2) ? 24 : size_
  8. size_=(defined(size__)) ? size__ : size_
  9. offset_=offset*size_
  10. font_=(defined(font_)) ? font_ : "Lucidia Console"
  11. ss=SubtitleEx(s,okay, x = s.Width/2+2, y= s.Height-16-offset_, effects = "bcsssf(10,10)", textcolor = $20000000, halocolor = $00000000,size=size_,font=font_)
  12. return SubtitleEx(ss,okay, x = s.Width/2, y= s.Height-18-offset_, effects = "bcf(10,10)", textcolor = $00FFFFFF, halocolor = $00000000,size=size_,font=font_)
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement