Jump to content
×
×
  • Create New...
  • 0

Loading bar with percents of loading


ReFresh

Question

2 answers to this question

Recommended Posts

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.