Last active
December 4, 2019 14:20
-
-
Save X-Raym/8671ca8a6edef8e8f0d3c377892f3896 to your computer and use it in GitHub Desktop.
sdsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Text overlay | |
length = 3250; | |
#text = ''; | |
i = offset; | |
loop( srctime+length, | |
sprintf(#val,"% 05i", i); | |
strncat(#text,#val,0); | |
i = i+1; | |
); | |
font="Arial"; | |
//@param1:size 'text height' 0.05 0.01 0.2 0.1 0.001 | |
//@param2:ypos 'y position' 0.95 0 1 0.5 0.01 | |
//@param3:xoffset 'X offset' 0.1 0 1 0.5 0.01 | |
//@param4:border 'border' 0 0 1 0.5 0.01 | |
//@param5:fgc 'text bright' 1.0 0 1 0.5 0.01 | |
//@param6:fga 'text alpha' 1.0 0 1 0.5 0.01 | |
//@param7:bgc 'bg bright' 0.75 0 1 0.5 0.01 | |
//@param8:bga 'bg alpha' 0.5 0 1 0.5 0.01 | |
//@param10:ignoreinput 'ignore input' 0 0 1 0.5 1 | |
//@param11:projecttime 'project time' 0 0 1 0.5 1 | |
//@param12:offset 'offset' 0 0 6500 0.5 1 | |
input = ignoreinput ? -2:0; | |
project_wh_valid===0 ? input_info(input,project_w,project_h); | |
gfx_a2=0; | |
gfx_blit(input,1); | |
gfx_setfont(size*project_h,font); | |
strcmp(#text,"")==0 ? input_get_name(-1,#text); | |
gfx_str_measure(#text,txtw,txth); | |
yt = (project_h- txth*(1+border*2))*ypos; | |
gfx_set(bgc,bgc,bgc,bga); | |
gfx_fillrect(0, yt, project_w, txth*(1+border*2)); | |
gfx_set(fgc,fgc,fgc,fga); | |
time_val = time; | |
projecttime ? time_val = project_time; | |
xrate = txtw / length; | |
gfx_str_draw(#text,time_val*-xrate+project_w*xoffset,yt+txth*border); | |
gfx_set(1,0,0,1); | |
gfx_fillrect(project_w*xoffset, yt, 10, txth*(1+border*2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment