03-17-2020, 11:52 AM
Here is a File loader with spinner and progress bar that can be integrated in other scripts
Code:
var count, currentIndex, percent, a0, a1,a2,a3,dots, wait
varexists ext1
if varexists
!wait=ext1
else
!wait=10
endif
!percent=0
!count=0
!a0=|
!a1=/
!a2=~
!a3=\\
!dots=
while percent<100 do
!currentIndex=count mod 4
? File Loading %dots%%a%currentIndex%% [%percent%%]
wait 30
!count=count+1
rndint %wait%
if rndint < 5
!percent=percent+1
if percent mod 5=0
!dots=%dots%.
endif
endif
done
? File Loading %dots%. [%percent%%]
free count, currentIndex, percent, a0,a1,a2,a3,dots, wait, varexists, rndint