Jump to content

uitooltip.py fix

Recommended Posts

I hate when some people delete their bug fix topic...


Today i saw a weird thing on my uitooltip.

If item with remain time stay into a shop, time shows: "Remain time 0 sec."


Here's the fix:

replace theese functions:

    def AppendUniqueItemLastTime(self, restMin):

    def AppendMallItemLastTime(self, endTime):


Like this:

    def AppendUniqueItemLastTime(self, restMin):
        if restMin > 0:
            restSecond = restMin*60
            self.AppendTextLine(localeInfo.LEFT_TIME + " : " + localeInfo.SecondToHM(restSecond), self.NORMAL_COLOR)

    def AppendMallItemLastTime(self, endTime):
        if endTime > 0:
            leftSec = max(0, endTime - app.GetGlobalTimeStamp())
            self.AppendTextLine(localeInfo.LEFT_TIME + " : " + localeInfo.SecondToDHM(leftSec), self.NORMAL_COLOR)


  • Like 11
  • Thanks 1
  • Haha 2

Share this post

Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.