Jump to content

[ Dead Download Link ] <Python> Simple [New] Loginwindow & intrologin [ We Need You ]


llReonas

Recommended Posts

Hi, Metin2dev

 

Screen:

a simple intro login  ;) 

7Dsv6kz8JT.png

 

IntroLogin :

add : import os

 

def __LoadScript(self, fileName):

self.Start = GetObject("start_button")
self.Home = GetObject("home_button")
self.Quit = GetObject("quit_button")
self.Menu = GetObject("menu_button")
self.FaceBookLike = GetObject("FaceBookButton")
self.Conf = GetObject("config_button") 

Searched : self.serverList.SetEvent(ui.__mem_func__(self.__OnSelectServer))

		self.FaceBookLike.SetEvent(ui.__mem_func__(self.__onclickFaceBook))
    self.Conf.SetEvent(ui.__mem_func__(self.__onclickConf))
	  self.Home.SetEvent(ui.__mem_func__(self.__onclickHomeAdress))
	   self.Start.SetEvent(ui.__mem_func__(self.__onclickStartCheck))
    self.Quit.SetEvent(ui.__mem_func__(self.__onclickQuit))

Searched : self.serverExitButton.SetEvent

self.serverExitButton.SetEvent(ui.__mem_func__(self.__OnClickMenuButton))

Searched : def __OnClickSelectServerButton(self):

	def __onclickConf(self):	
		os.system("start config.exe")
		
	def __onclickHomeAdress(self):	
		os.startfile("http://www.mypage.com")
		
	def __onclickFaceBook(self):
		os.startfile("http://www.facebook.com/mypage")

	def __onclickStartCheck(self):
		self.__RequestServerStateList()
		self.serverBoard.Show()
		self.connectBoard.Hide()
		self.loginBoard.Hide()
		self.Menu.Hide()

	def __onclickQuit(self):
		self.stream.SetPhaseWindow(0)
		
	def __OnClickMenuButton(self):
		self.serverBoard.Hide()
		self.Menu.Show()		

 

 

Searched : self.serverBoard.SetPosition(self.xServerBoard, self.yServerBoard)

 

to the bottom :

		self.serverBoard.Hide()
		self.connectBoard.Hide()
		self.loginBoard.Hide()
		self.Menu.Show()

LoginWindow

Locale/xx

Edit locale name

{
"name" : "FaceBookButton", "type" : "button", "x" : 35, "y" : SCREEN_HEIGHT-120,
"default_image" : "locale/xx/ui/face.sub",
"over_image" : "locale/xx/ui/face2.sub",
"down_image" : "locale/xx/ui/face2.sub",
"tooltip_text" : "Facebook Page",
},
 

to the bottom

 

Patch Version Client Version NO URLLİB! 

I can, if desired

because of the simple intrologin

		## Check
		{
			"name" : "Show",
			"type" : "thinboard",

			"x" : SCREEN_WIDTH-165,
			"y" : 0,
			"width" : 166,
			"height" : 90,

			"children" :
			(
{
					"name" : "Neu_Text",
					"type" : "text",

					"x" : 10,
					"y" : 3,
					"vertical_align" : "center",
					"text_vertical_align" : "center",

					"text" : "Patch Version: 00001",
				},

{
					"name" : "Neu_Edit",
					"type" : "text",

					"x" : 100,
					"y" : 42,

					"width" : 120,
					"height" : 18,

				},



{
					"name" : "Client_Text",
					"type" : "text",

					"x" : 10,
					"y" : -23,
					"vertical_align" : "center",
					"text_vertical_align" : "center",

					"text" : "Client Version: 00001",
				},

{
					"name" : "Client_Edit",
					"type" : "text",

					"x" : 100,
					"y" : 17,

					"width" : 120,
					"height" : 28,

				},


),
},

		## Menu
		{
			"name" : "menu_button",
			"type" : "thinboard",

			'x' : (SCREEN_WIDTH - 204) / 2,
			'y' : (SCREEN_HEIGHT - 100) / 2,
			"width" : 200,
			"height" : 190,

			"children" :
			(
					{
					"name" : "start_button",
					"type" : "button",

					"x" : 10,
					"y" : 17,

					"text" : "Start Game",
					"text_color" : 0xffF8BF24,
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
				{
					"name" : "config_button",
					"type" : "button",

					"x" : 10,
					"y" : 62,

					"text" : "Config",
					"text_color" : 0xffF8BF24,
					"tooltip_text" : "Turns game settings.",
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
				{
					"name" : "home_button",
					"type" : "button",

					"x" : 10,
					"y" : 107,

					"text" : "Home Page",
					"text_color" : 0xffF8BF24,
					"tooltip_text" : "Redirects to the main page.",
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
				{
					"name" : "quit_button",
					"type" : "button",

					"x" : 10,
					"y" : 152,

					"text" : "Exit",
					"text_color" : 0xffF8BF24,
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
),
},

Sub and JPG Download Link :

https://mega.co.nz/#!ItMi0aQT!QXeDnsVPczpRXkynFcgKtStLHxfLQLUoh5DHF2xJLuw

ready loginwindow,intrologin in the present, You can not use those!

loginwindow:

locale/tr

Edit locale name!

 

intrologin :

locale_is_turkey

Edit locale name!

Example:

localeInfo,Locale

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 10
Link to comment
Share on other sites

 

Hi, Metin2dev

 

Screen:

a simple intro login  ;) 

7Dsv6kz8JT.png

 

IntroLogin :

add : import os

 

def __LoadScript(self, fileName):

self.Start = GetObject("start_button")
self.Home = GetObject("home_button")
self.Quit = GetObject("quit_button")
self.Menu = GetObject("menu_button")
self.FaceBookLike = GetObject("FaceBookButton")
self.Conf = GetObject("config_button") 

Searched : self.serverList.SetEvent(ui.__mem_func__(self.__OnSelectServer))

		self.FaceBookLike.SetEvent(ui.__mem_func__(self.__onclickFaceBook))
    self.Conf.SetEvent(ui.__mem_func__(self.__onclickConf))
	  self.Home.SetEvent(ui.__mem_func__(self.__onclickHomeAdress))
	   self.Start.SetEvent(ui.__mem_func__(self.__onclickStartCheck))
    self.Quit.SetEvent(ui.__mem_func__(self.__onclickQuit))

Searched : self.serverExitButton.SetEvent

self.serverExitButton.SetEvent(ui.__mem_func__(self.__OnClickMenuButton))

Searched : def __OnClickSelectServerButton(self):

		
	def __onclickConf(self):	
		os.system("start config.exe")
		
	def __onclickHomeAdress(self):	
		os.startfile("http://www.mypage.com")
			def __onclickFaceBook(self):
os.startfile("http://www.facebook.com/mypage") 
 

 

Searched : self.serverBoard.SetPosition(self.xServerBoard, self.yServerBoard)

 

to the bottom :

		self.serverBoard.Hide()
		self.connectBoard.Hide()
		self.loginBoard.Hide()
		self.Menu.Show()
		self.serverBoard.Hide()
		self.connectBoard.Hide()
		self.loginBoard.Hide()
		self.Menu.Show()

Searched : serverInfo.REGION_DICT[regionID][serverID]["channel"][channelID]["state"] = stateName

 

Delete :

self.__RefreshServerStateList()

LoginWindow

Locale/xx

Edit locale name


{
"name" : "FaceBookButton", "type" : "button", "x" : 35, "y" : SCREEN_HEIGHT-120,
"default_image" : "locale/xx/ui/face.sub",
"over_image" : "locale/xx/ui/face2.sub",
"down_image" : "locale/xx/ui/face2.sub",
"tooltip_text" : "Facebook Page",
},

to the bottom

 

Patch Version Client Version NO URLLİB! 

I can, if desired

because of the simple intrologin

		## Check
		{
			"name" : "Show",
			"type" : "thinboard",

			"x" : SCREEN_WIDTH-165,
			"y" : 0,
			"width" : 166,
			"height" : 90,

			"children" :
			(
{
					"name" : "Neu_Text",
					"type" : "text",

					"x" : 10,
					"y" : 3,
					"vertical_align" : "center",
					"text_vertical_align" : "center",

					"text" : "Patch Version: 00001",
				},

{
					"name" : "Neu_Edit",
					"type" : "text",

					"x" : 100,
					"y" : 42,

					"width" : 120,
					"height" : 18,

				},



{
					"name" : "Client_Text",
					"type" : "text",

					"x" : 10,
					"y" : -23,
					"vertical_align" : "center",
					"text_vertical_align" : "center",

					"text" : "Client Version: 00001",
				},

{
					"name" : "Client_Edit",
					"type" : "text",

					"x" : 100,
					"y" : 17,

					"width" : 120,
					"height" : 28,

				},


),
},

		## Menu
		{
			"name" : "menu_button",
			"type" : "thinboard",

			'x' : (SCREEN_WIDTH - 204) / 2,
			'y' : (SCREEN_HEIGHT - 100) / 2,
			"width" : 200,
			"height" : 190,

			"children" :
			(
					{
					"name" : "start_button",
					"type" : "button",

					"x" : 10,
					"y" : 17,

					"text" : "Start Game",
					"text_color" : 0xffF8BF24,
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
				{
					"name" : "config_button",
					"type" : "button",

					"x" : 10,
					"y" : 62,

					"text" : "Config",
					"text_color" : 0xffF8BF24,
					"tooltip_text" : "Turns game settings.",
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
				{
					"name" : "home_button",
					"type" : "button",

					"x" : 10,
					"y" : 107,

					"text" : "Home Page",
					"text_color" : 0xffF8BF24,
					"tooltip_text" : "Redirects to the main page.",
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
				{
					"name" : "quit_button",
					"type" : "button",

					"x" : 10,
					"y" : 152,

					"text" : "Exit",
					"text_color" : 0xffF8BF24,
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
),
},

Sub and JPG Download Link :

https://mega.co.nz/#!kZZEhJAA!51SD6s4WYOqNjqsKjEOMbFcxDQNRgrv4SjH0zdPcf-4

ready loginwindow,intrologin in the present, You can not use those!

loginwindow:

locale/tr

Edit locale name!

 

intrologin :

locale_is_turkey

Edit locale name!

Example:

localeInfo,Locale

 

Thanks Brothers <3

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2
Link to comment
Share on other sites

  • Bronze

the bg is so old ahah , it made me remember when i was still about lv 50 

just to help you improve use insted of this :

 "text" : "Patch Version: 00001"

do this :

import uiScriptLocale

then :

"text" : uiScriptLocale.Patch_Version

on locale_interface.txt add :

Patch_Version Patch Version: 00001

this is easyer to translate to many other lang , better the plain text on a py script ^^

good luck

  • Love 1
Link to comment
Share on other sites

the bg is so old ahah , it made me remember when i was still about lv 50 

just to help you improve use insted of this :

 "text" : "Patch Version: 00001"

do this :

import uiScriptLocale

then :

"text" : uiScriptLocale.Patch_Version

on locale_interface.txt add :

Patch_Version Patch Version: 00001

this is easyer to translate to many other lang , better the plain text on a py script ^^

good luck

Thx.  :)

  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...

thank u really really a lot! i was looking for somenew cool intrologin
are u capable to implement save login details 4 accounts?



can someone help me, i used his ui files downloaded
 

loginwindow:

locale/tr

Edit locale name!

 

intrologin :

locale_is_turkey

Edit locale name!

Example:
localeInfo,Locale



i did the part of loginwindow
using replace /tr  with /uk

but i do not understand   the intrologin part
about edit locale name.

Z3j991Z.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

thank u really really a lot! i was looking for somenew cool intrologin

are u capable to implement save login details 4 accounts?

can someone help me, i used his ui files downloaded

 

loginwindow:

locale/tr

Edit locale name!

 

intrologin :

locale_is_turkey

Edit locale name!

Example:

localeInfo,Locale

i did the part of loginwindow

using replace /tr  with /uk

but i do not understand   the intrologin part

about edit locale name.

Z3j991Z.png

see Inbox.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...
  • 4 weeks later...
  • 8 months later...
  • 6 months later...
  • 4 months later...
  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.