Refresh yang text

09/04/2019 18:08 cBaraN#1
Code:
game.py search
def OnPickMoney(self, money):

add
oldGold = player.GetElk() - money
self.interface.SetLastGold(oldGold)

interfaceModule.py search
def IsEditLineFocus(self):
	...
    
add
def SetLastGold(self, amount):
        self.wndInventory.lastGold = amount
        
uiInventory.py search

tooltipItem = None
add
lastGold        = None

search
self.tooltipItem = None

add

self.lastGold = None

search
def RefreshStatus(self):

replace money parts (final http://prntscr.com/p1sl9e)
        iLastGold    = self.GetLastGold()
        iGoldNow    = player.GetElk()
        gIncrease    = 1 if (not (iGoldNow - iLastGold) / 10000 > 0) else 10000
        
        for goldLoop in range(iLastGold, iGoldNow + 1, gIncrease):
            goldLoop    = goldLoop
            iGoldNow    = iGoldNow
            
            self.wndMoney.SetText(localeInfo.NumberToMoneyString(goldLoop))
            if (goldLoop == iGoldNow): break
        
        self.wndMoney.SetText(localeInfo.NumberToMoneyString(iGoldNow))
video
[Only registered and activated users can see links. Click Here To Register...]