Jump to content
  • 0

Exp gauge



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)
			self.SetRenderingRect(0.0, 0.0, 0.0, 0.0)


  • Confused 1
Link to post
  • 0



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
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Chatroom Rules


Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules


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