Jump to content

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 https://metin2.download/picture/f0KwyTmdUGCaG1rqFgim3U5evZW8jE49/.png)
        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

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 6
  • Not Good 1
  • Good 2
  • Love 1
  • Love 5
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
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!!

Link to comment
Share on other sites

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.