Jump to content

Fantasy Loading Gauge Name


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 4
  • Not Good 1
  • Good 4
  • Love 6

 

Link to comment
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
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
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
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
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.