Jump to content

Loading bar with percents of loading


Recommended Posts

Introloading.py

Search:

self.loadingImage.SetScale(width, height)

Add under it:

self.loadingGage.SetPercentage(2, 100) 

 Now search:

self.loadingGage=self.GetChild("FullGage")  

And add under it:

self.loadingLoadingPercent=self.GetChild("LoadingPercent_Text")  

Now search:

self.loadingGage.SetPercentage(2+98*p/100, 100)  

And add under it:

self.loadingLoadingPercent.SetText(str(2+98*p/100)+"%") 

 

Open your loadingwindow.py file
Search:

                    "name" : "FullGage",  

And add under this section:

                {
                    "name" : "LoadingPercent_Text",
                    "type" : "text",

                    "x" : 190,
                    "y" : -20,

                    "text" : "", 
                    "vertical_align" : "center",                    
                },

 

Hope i helped.

  • Love 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.