Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Exp gauge


Rommel

Question

2 answers to this question

Recommended Posts

  • 0

you need to use new function in uitaskbar.py (SetPercentage -> SetPercentageHorizontal)

add this function to ui.py

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

 

  • Think 1
Link to post
  • 0

Ehmm..

 

I guess your code is vertical, the basic SetPercentage is horizontal.

 

Okay i solved it. 

 

Just change like this:

				self.expGauge[FullCount].SetRenderingRect(0.0, 0.0, Percentage, 0.0)

 

 

Edited by Rommel (see edit history)
Link to post

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


×
×
  • 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.