Active Member ReFresh 2340 Posted November 7, 2016 Active Member Share Posted November 7, 2016 Hi guys, how can I do loading bar with percents of loading? https://youtu.be/3oIhp2Mi93c Thanks for answers! Regards ReFresh 1 I'll be always helpful! Link to comment Share on other sites More sharing options...
z35 170 Posted November 7, 2016 Share Posted November 7, 2016 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. 2 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 7, 2016 Author Active Member Share Posted November 7, 2016 Thank you. I will try it I'll be always helpful! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now