Jump to content
Sign in to follow this  
cBaraN

Refresh yang text

Recommended Posts

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))

 

https://youtu.be/wpYPE6blQeY

  • Love 3

Share this post


Link to post
0914 10:41:19445 :: AttributeError
0914 10:41:19445 :: : 
0914 10:41:19445 :: 'InventoryWindow' object has no attribute 'GetLastGold'
0914 10:41:19445 :: 

Idk why because i added all like in tutorial

Share this post


Link to post
1208 18:02:19909 :: Traceback (most recent call last):

1208 18:02:19909 ::   File "networkModule.py", line 239, in SetGamePhase

1208 18:02:19909 ::   File "game.py", line 112, in __init__

1208 18:02:19909 ::   File "interfaceModule.py", line 343, in MakeInterface

1208 18:02:19909 ::   File "interfaceModule.py", line 203, in __MakeWindows

1208 18:02:19909 ::   File "uiInventory.py", line 418, in __init__

1208 18:02:19909 ::   File "uiInventory.py", line 678, in __LoadWindow

1208 18:02:19909 ::   File "uiInventory.py", line 871, in RefreshStatus

1208 18:02:19910 :: AttributeError
1208 18:02:19910 :: : 
1208 18:02:19910 :: 'InventoryWindow' object has no attribute 'GetLastGold'
1208 18:02:19910 :: 

Help!!

Share this post


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
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

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