(AGK version: 2.0.13)
Submitted: 2015-04-18 00:32:56
SetExpansionFileVersion(version)
if ( GetExpansionFileState() = 1 )
    DownloadExpansionFile()
    if ( GetExpansionFileState() = 2 )
        fontimage=LoadImage("/Arial.png")

        downloadtxt = CreateText("Downloading Additional Files")
        progresstxt = CreateText("0%")
        othertxt = CreateText("The download will continue in the background if you close the app")

        SetTextAlignment(downloadtxt,1)
        SetTextAlignment(progresstxt,1)
        SetTextAlignment(othertxt,1)

        SetTextPosition(downloadtxt,50,30)
        SetTextPosition(progresstxt,50,40)
        SetTextPosition(othertxt,50,50)

        SetTextFontImage(downloadtxt,fontimage)
        SetTextFontImage(progresstxt,fontimage)
        SetTextFontImage(othertxt,fontimage)

        while ( GetExpansionFileState() = 2 )
            progress# = GetExpansionFileProgress()
            SetTextString(progresstxt,Str(progress#,2)+"%")
            Sync()
        endwhile
        DeleteText(downloadtxt)
        DeleteText(progresstxt)
        DeleteText(othertxt)
        DeleteImage( fontImage )
    endif
endif
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.