Jump to content

How to make exp bar from under to top


Recommended Posts

add this to ui.py / ExpandedImageBox class

def SetPercentageV(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)

and use it in your code :D

 

  • Love 1
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



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