Jump to content
La fin ?! Elle est là ! ×
×
×
  • Create New...

Python - Ajouter un Bouton : S'inscrire


Recommended Posts

  • Bot

Centre de Téléchargement

Hidden Content

    Give reaction to this post to see the hidden content.
( Interne )

Bonjour,

 

Petit tutoriel court : Comment ajouter un bouton s'inscrire, rendu :

052040Screenshot-3.png

 

1. Depackez votre root et votre locale

 

Utilisez, EterNexus, Moustikk tools, c'est obsolète depuis longtemps... Des liens de se trouve sur le forum si vous ne l'avez pas !

 

2. On y va et on modifie !

Ouvrez le fichier : intrologin.py

 

Ajoutez :

import os
Cherchez :
self.loginExitButton		= GetObject("LoginExitButton")
Ajoutez en dessous :
self.TakumaRegister			= GetObject("TakuButton")
Ensuite, cherchez :
self.loginExitButton.SetEvent(ui.__mem_func__(self.__OnClickExitButton))
Ajoutez :
self.TakumaRegister.SetEvent(ui.__mem_func__(self.__RegisterButton))
Cherchez :
	def __OnClickExitButton(self):
		self.stream.SetPhaseWindow(0)
Ajoutez en dessous de la fonction:
	def __RegisterButton(self):
		os.startfile("https://funky-emu.net")
Allez ensuite dans "loginwindows.py"

 

Cherchez :

				{
				"name" : "ServerExitButton",
				"type" : "button",

				"x" : 267,
				"y" : SERVER_LIST_HEIGHT + 22,

				"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
				"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
				"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

				"text" : uiScriptLocale.LOGIN_SELECT_EXIT,
			},
Ajoutez :
				{
				"name" : "TakuButton",
				"type" : "button",

				"x" : 267,
				"y" : SERVER_LIST_HEIGHT - 22,

				"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
				"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
				"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

				"text" : "Inscriptions",
			},
Repackez.

Cordialement, bon jeu !

  • J'adore 3
  • J'aime 1

french_banner.gif

Link to comment
Share on other sites

  • 2 years later...
 Share



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.