Jump to content
×
×
  • Create New...
  • 0

Loading bar - How can I set text?


ReFresh

Question

  • Premium

Hi guys,

how can I set text with loaded percents? For example: is 10% it will show: loading map textures, is 20% it will show: loading warrior etc.

Here is a video with that loading:

I think, I must do it somewhere on these lines:

https://ctrlv.cz/uORE

Thanks for answers!

Sincerely,

ReFresh

Link to comment

12 answers to this question

Recommended Posts

  • 0

d9e27a7ccb1085d7deb6d59858b162e4.gif

//@root/introLoading.py
//@Mr.Big Dick
//1.) Search:
			self.loadingGage=self.GetChild("FullGage")
//2.) Add bellow:
			self.loadingInfo = self.GetChild("LoadingInfo_Text")
//3.) Search:
			self.loadingGage.SetPercentage(2+98*p/100, 100)
//4.) Add bellow:
			self.loadingInfo.SetText("Loading: %s" % (self.txtLoadingProgressDict[p]))
//5.) Search:
		self.errMsg.Hide()
//6.) Add bellow:
		self.txtLoadingProgressDict = {
			0: "InitData",      10: "Map",      30: "Sound",
			40: "Effect",       50: "Warrior",  60: "Assasin",
			70: "Sura",         80: "Shaman",   90: "Skill",
			93: "Enemy",        97: "NPC",      98: "Guild Building",
			100: "Start game"
		}
//@locale/xx/loadingwindow.py
//1.) Search:
					"name" : "FullGage",
//2.) And add under this section: -> http://image.prntscr.com/image/4e78fa944a704c699d7a52075eefc582.png
                {
					"name" : "LoadingInfo_Text", "type" : "text", "x" : 190, "y" : -20, "fontname" : "Tahoma:19", "text" : "",  "vertical_align" : "center",
				},

 

  • Love 3
Link to comment
  • 0
  • Premium

@VegaS I got this error:

1112 12:04:19056 ::   File "introLoading.py", line 268, in OnUpdate

1112 12:04:19056 ::   File "introLoading.py", line 190, in __SetProgress

1112 12:04:19056 :: KeyError
1112 12:04:19056 :: : 
1112 12:04:19056 :: 10 //THIS IS NUMBER OF LOADED PRECENT, IN SYSSER WAS ALL SAME ERRORS WITH PERCENTS WHICH WAS LOADED.
1112 12:04:19056 :: 

Here are the lines where is an error:

 

 

Link to comment
  • 0
  • Premium
1 hour ago, tavi said:

Refresh problem is with your gauge, because I implement this sistem and is work very nice without your problem

Are you serious? I know it omg. Go to learn English language and don't post comments like which you posted. I don't need to read it's your problem blablabla I need solution for my problem.

Link to comment
  • 0
18 hours ago, ReFresh said:

Are you serious? I know it omg. Go to learn English language and don't post comments like which you posted. I don't need to read it's your problem blablabla I need solution for my problem.

 

Thank you very much, you are very annoying. I trying to help you with my post.

Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.