Jump to content

Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

 

Spoiler

 

Find in locale/xx/ui/loadingwindow.py:

				{
					"name" : "FullGage",
					"type" : "expanded_image",

					"x" : 40,
					"y" : 25,

					"image" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/gauge_full.dds",
				},

Add this;

				{
                                      "name" : "LoadingName_Text",
                                      "type" : "text",

                                      "x" : 190,
                                      "y" : -8,

                                      "text" : "", 
                                      "vertical_align" : "center",                    
                                },

Add in constInfo.py;

loadingname = ""

Find in root/introloading.py:

			self.loadingGage=self.GetChild("FullGage")

Add this;

			self.loadingName_txt=self.GetChild("LoadingName_Text")

Find:

	def __SetProgress(self, p):

Change like this;

	def GetChName(self, p):
		import constInfo
		text = constInfo.loadingname
		uzunluk = len(text)
		asd = uzunluk*p/100
		return text[0:asd]
	
	def __SetProgress(self, p):
		if self.loadingGage:
			self.loadingGage.SetPercentage(2+98*p/100, 100)
			name = self.GetChName(2+98*p/100)
			self.loadingName_txt.SetText(name)

Last one if you use the official pack introselect(unpacked 2015 & 2018 packs), use this:

Spoiler

Find in new_introselect.py:




			playTime = net.GetAccountCharacterSlotDataInteger(chrSlot, net.ACCOUNT_CHARACTER_SLOT_PLAYTIME)

Add this;




			constInfo.loadingname = net.GetAccountCharacterSlotDataString(chrSlot, net.ACCOUNT_CHARACTER_SLOT_NAME)

 

If you use the fake official introselect or old introselet, use this:

Spoiler

Find in introselect.py:




				player.SetPlayTime(playTime)

Add this;




				constInfo.loadingname = net.GetAccountCharacterSlotDataString(self.slot, net.ACCOUNT_CHARACTER_SLOT_NAME)

 

2852191.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 9
  • Not Good 1
  • Good 5
  • Love 7

 

Link to comment
https://metin2.dev/topic/17966-fantasy-loading-gauge-name/
Share on other sites

32 minutes ago, Mali61 said:

	def GetChName(self, p):
		import constInfo
		text = constInfo.loadingname
		uzunluk = len(text)
		asd = uzunluk*p/100
		return text[0:asd]

 

# import constInfo - at the beginning of the file
def GetChName(percentage):
	name = constInfo.loadingname
	return name[:(len(name) * percentage) / 100]

And please stop to use turkish name for variables when you share something, looks very creepy..

  • Love 1
Link to comment
https://metin2.dev/topic/17966-fantasy-loading-gauge-name/#findComment-98068
Share on other sites

Why are you doing this? universal software language is english so it is so clear and simple. I am really sorry that you are sharing something and it is nice. Do not humiliate yourself by stubbing on this subject many times.You can use "google translate" for variables. Thanks for sharing.

Link to comment
https://metin2.dev/topic/17966-fantasy-loading-gauge-name/#findComment-98069
Share on other sites

  • Honorable Member
13 minutes ago, Tasho said:

# import constInfo - at the beginning of the file
def GetChName(percentage):
	name = constInfo.loadingname
	return name[:(len(name) * percentage) / 100]

And please stop to use turkish name for variables when you share something, looks very creepy..

return name[:(len(name) * percentage) / 100]

Bro please stop this I know this easy way but i want to show every way and turkish variables, everyone can change the names. I m turkish and this is my choice :)

  • Love 1

 

Link to comment
https://metin2.dev/topic/17966-fantasy-loading-gauge-name/#findComment-98070
Share on other sites

  • Premium
12 minutes ago, Mali61 said:

return name[:(len(name) * percentage) / 100]

Bro please stop this I know this easy way but i want to show every way and turkish variables, everyone can change the names. I m turkish and this is my choice :)

But if you want someone to use it do english variables.


 

Link to comment
https://metin2.dev/topic/17966-fantasy-loading-gauge-name/#findComment-98071
Share on other sites

  • 2 years later...
On 2/4/2018 at 3:16 AM, Mali61 said:

return name[:(len(name) * percentage) / 100]

Bro please stop this I know this easy way but i want to show every way and turkish variables, everyone can change the names. I m turkish and this is my choice :)

Thanks for sharing, I was looking for this for loading letters with loading bar and I agree with you.

Link to comment
https://metin2.dev/topic/17966-fantasy-loading-gauge-name/#findComment-123825
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.