Jump to content

Help Python Progressbar


Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Premium
33 minutes ago, Seryov said:

I'm using that, but dont work success, 
self.petlifeg.SetPercentage(50, 100)

The progress bar it's set to 50% but show +/- 10%...


 

Yes i mean can you paste here the snippet for that def?
So we can understand if the two parameters are correctly processed by python.

Unfortunately i don`t have the code with me so if you could provide here it would be great.

 

If you can provide even the petlifeg would be even better

Link to comment
Share on other sites

39 minutes ago, Fleon said:

Yes i mean can you paste here the snippet for that def?
So we can understand if the two parameters are correctly processed by python.

Unfortunately i don`t have the code with me so if you could provide here it would be great.

 

If you can provide even the petlifeg would be even better

it's here

 

	def SetPercentage(self, curValue, maxValue):
		if maxValue:
			self.SetRenderingRect(0.0, 0.0, -1.0 + float(curValue) / float(maxValue), 0.0)
		else:
			self.SetRenderingRect(0.0, 0.0, 0.0, 0.0)

 

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



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.