Sign in to follow this  
Followers 0
llReonas

<Python> Simple [New] Loginwindow & intrologin

24 posts in this topic

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

9 people like this

Share this post


Link to post
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

1 person likes this

Share this post


Link to post
Share on other sites

Can i ask, why do you use my Client ?

really ? not joke right ?

Alesta2.com not yours

1 person likes this

Share this post


Link to post
Share on other sites

Can i ask, why do you use my Client ?

 

Really ? U Creat It From 0 ? no < it's Ymir Client ! not your's

Share this post


Link to post
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

1 person likes this

Share this post


Link to post
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.  :)

1 person likes this

Share this post


Link to post
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

Share this post


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

1 person likes this

Share this post


Link to post
Share on other sites

Thanks
@IlREONAS

is it possible to add the 4 account save login detals tutorial please?
it will be amazing

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.