Register for your free account! | Forgot your password?

You last visited: Today at 00:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Refresh yang text

Discussion on Refresh yang text within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
cBaraN's Avatar
 
elite*gold: 0
Join Date: Nov 2013
Posts: 28
Received Thanks: 52
Refresh yang text

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
cBaraN is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
[Tutorial]Heavy Text [Text-Effekt]
09/14/2012 - Artist Tutorials - 2 Replies
Photoshop - Heavy Text Effekt - YouTube Have Fun!
[C#][TUTORIAL] Text-to-Speech und Speech-to-Text(Spracherkennung)
04/20/2012 - Coding Tutorials - 5 Replies
Hallo und herzlich willkommen zu meinem 1. Tutorial. Hier werde ich euch zeigen, wie ihr in C# gesprochenen Text in einen schriftlichen Text umwandelt und wie ihr Text vom "vorlesen" lassen könnt. 1.: Was brauchen wir? 2.: "Speech-to-Text" 2.1: Auf die Speech Assembly verweisen 2.2: Code 3.: "Text-to-Speech" 3.1 Code Abschluss
[C#] abfragen, ob textbox.text = teil von label.text
01/28/2012 - .NET Languages - 7 Replies
Guten Abend, ich benötige eure Hilfe. Ich möchte, dass das Programm abfrägt, ob textbox.text = teil von label.text z.B. label.Text = "1234" textbox.Text = "23" if (label.Text == textbox.Text) {...} wie kann ich ihn auslesen lassen, ob nur ein bestimmter teil des labels den text der textbox enthält?
[Text-TuT] Client Text und Beschriftungen
09/19/2011 - Flyff Private Server - 6 Replies
Hey ElitePvPer's, heute zeige ich euch; - wie man den Text und/oder die Beschriftungen ingame ändert. - Wie man die Farbe des Textes und/oder der Beschriftung ändert. Wir öffnen zu erst die im Resource-Ordner enthaltene textclient.txt.txt. Nehmen wir mal an wir möchten die Farbe und den Text von "Du hast XXX Penya erhalten (Gesamt: XXX Penya)" ändern. Wir suchen dazu(+) in der textClient.txt.txt nach "Penya". Direkt der 2te String ist es: IDS_TEXTCLIENT_INC_000185 Du hast %s Penya...



All times are GMT +2. The time now is 00:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.