Jump to content
metin2dev
  • 0
ZyuX

open Refresh coins in inventory

Question

8 answers to this question

Recommended Posts

  • 0
def OnUpdate(self):
		if app.ENABLE_COINS_INVENTORY:
            self.wndCoins.SetText(localeInfo.NumberToSecondaryCoinString(constInfo.Coins))	

	def RefreshStatus(self):
		money = player.GetElk()
		self.wndMoney.SetText(localeInfo.NumberToMoneyString(money))
		
		if app.ENABLE_COINS_INVENTORY:
            self.wndCoins.SetText(localeInfo.NumberToSecondaryCoinString(constInfo.Coins))

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

No, doesn't work:

unindent does not match any outer indentation level (uiInventory.py, line 1587)

 

Line 1587:

	if app.ENABLE_COINS_INVENTORY:
		def OnUpdate(self):
            self.wndCoins.SetText(localeInfo.NumberToSecondaryCoinString(constInfo.Coins))	

 

EDIT: 

My fault, I've added but coins doesn't refreshing.

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.

×