Jump to content
×
×
  • Create New...

Python - Bonus via Inventaire


Recommended Posts

Centre de Téléchargement

Télécharger ( Interne )

Bonjour,

 

Je vous partage un petit tutoriel rédigé par mes soins afin d'installer le système de bonus dans l'inventaire sur les files 2014 (et 2016 by FE).

 

Révélation

060003f4iGT38.gif

 

PS : Sur l'image le système est en espagnol mais dans ce tutoriel le système est traduit en français par Eristoff.

 

Point positif : Système fonctionnel une fois adapté.

Point négatif : Le bouton "Minimiser" ne fonctionne plus (Ce qui n'est pas très grave). Edit : Le bouton fonctionne ! Voir plus bas dans le tutoriel.

 

Dans un premier temps vous devez vous munir d'un éditeur de texte et de vos fichiers "root" et "local_fr".

 

Dans root :

 

Trouvez et ouvrez le fichier "uiinventory.py"

 

Trouvez ce bout de code :

		## Refresh
	self.SetInventoryPage(0)
	self.SetEquipmentPage(0)
	self.RefreshItemSlot()
	self.RefreshStatus()
 

 

Le remplacer par : 

		## Refresh
	self.SetInventoryPage(0)
	self.SetEquipmentPage(0)
	self.RefreshItemSlot()
	self.RefreshStatus()
	self.ActualizarBonus()

def MinimizarBonus(self):
	if self.ESTADO_PAGINA_INVENTORY == False:
		#####Esta parte pertence en volver al estado original al inventory
		self.GetChild("board").SetSize(176,585)
		self.GetChild("TitleBar").SetWidth(161)
		self.GetChild("TitleName").SetPosition(77, 3)
		self.GetChild("OcultarTabla").SetPosition(161 - 30, 10)
		self.SetSize(176, 585)
		self.SetPosition(wndMgr.GetScreenWidth() - 176, wndMgr.GetScreenHeight() - 37 - 585)
		self.GetChild("Money_Slot").SetPosition(8, 28)
		#Tabla
		self.GetChild("txt_info_defenza").Hide()
		self.ESTADO_PAGINA_INVENTORY = True
	else:
		#####Esta parte pertence en volver al estado editado al inventory
		self.GetChild("board").SetSize(306,585)
		self.GetChild("TitleBar").SetWidth(161 + 130)
		self.GetChild("TitleName").SetPosition((161  + 130) / 2, 3)
		self.GetChild("OcultarTabla").SetPosition(161 + 130 - 30, 10)
		self.SetSize(306, 585)
		self.SetPosition(wndMgr.GetScreenWidth() - 176 - 130, wndMgr.GetScreenHeight() - 37 - 585)
		self.GetChild("Money_Slot").SetPosition(-55, 28)
		#Tabla
		self.GetChild("txt_info_defenza").Show()
		self.ESTADO_PAGINA_INVENTORY = False

	self.OcultarInfoTable(self.ESTADO_PAGINA_INVENTORY)
	if self.wndBelt:
		self.wndBelt.AdjustPositionAndSize()


def OcultarInfoTable(self, arg):
	if arg == True:
		self.GetChild("txt_info_defenza").Hide()
		self.GetChild("txt_info_defenza_espada").Hide()
		self.GetChild("Thin_info_defenza_espada").Hide()
		self.GetChild("txt_info_defenza_2manos").Hide()
		self.GetChild("Thin_info_defenza_2manos").Hide()
		self.GetChild("txt_info_defenza_daga").Hide()
		self.GetChild("Thin_info_defenza_daga").Hide()
		self.GetChild("txt_info_defenza_Felcha").Hide()
		self.GetChild("Thin_info_defenza_Felcha").Hide()
		self.GetChild("txt_info_defenza_campana").Hide()
		self.GetChild("Thin_info_defenza_campana").Hide()
		self.GetChild("txt_info_defenza_fan").Hide()
		self.GetChild("Thin_info_defenza_fan").Hide()
		self.GetChild("txt_info_resist_Magia").Hide()
		self.GetChild("Thin_info_resist_Magia").Hide()
		self.GetChild("txt_info_resist_veneno").Hide()
		self.GetChild("Thin_info_resist_veneno").Hide()
		self.GetChild("txt_info_resist_guerrero").Hide()
		self.GetChild("Thin_info_resist_guerrero").Hide()
		self.GetChild("txt_info_resist_ninja").Hide()
		self.GetChild("Thin_info_resist_ninja").Hide()
		self.GetChild("txt_info_resist_sura").Hide()
		self.GetChild("Thin_info_resist_sura").Hide()
		self.GetChild("txt_info_resist_chaman").Hide()
		self.GetChild("Thin_info_resist_chaman_").Hide()
		self.GetChild("txt_info_onfensivo").Hide()
		self.GetChild("txt_info_criticos").Hide()
		self.GetChild("Thin_info_criticos").Hide()
		self.GetChild("txt_info_penetracion").Hide()
		self.GetChild("Thin_info_penetracion").Hide()
		self.GetChild("txt_info_danomedia").Hide()
		self.GetChild("Thin_info_danomedia").Hide()
		self.GetChild("txt_info_danohabilidad").Hide()
		self.GetChild("Thin_info_danohabilidad").Hide()
		self.GetChild("txt_info_fmediohumano").Hide()
		self.GetChild("Thin_info_fmediohumano").Hide()
		self.GetChild("txt_info_fnomuerto").Hide()
		self.GetChild("Thin_info_fnomuerto").Hide()
		self.GetChild("txt_info_fdemonio").Hide()
		self.GetChild("Thin_info_fdemonio").Hide()
		self.GetChild("txt_info_fguerrero").Hide()
		self.GetChild("Thin_info_fguerrero").Hide()
		self.GetChild("txt_info_fninja").Hide()
		self.GetChild("Thin_info_fninja").Hide()
		self.GetChild("txt_info_fsura").Hide()
		self.GetChild("Thin_info_fsura").Hide()
		self.GetChild("txt_info_fcham").Hide()
		self.GetChild("Thin_info_fcham").Hide()
	else:
		self.GetChild("txt_info_defenza").Show()
		self.GetChild("txt_info_defenza_espada").Show()
		self.GetChild("Thin_info_defenza_espada").Show()
		self.GetChild("txt_info_defenza_2manos").Show()
		self.GetChild("Thin_info_defenza_2manos").Show()
		self.GetChild("txt_info_defenza_daga").Show()
		self.GetChild("Thin_info_defenza_daga").Show()
		self.GetChild("txt_info_defenza_Felcha").Show()
		self.GetChild("Thin_info_defenza_Felcha").Show()
		self.GetChild("txt_info_defenza_campana").Show()
		self.GetChild("Thin_info_defenza_campana").Show()
		self.GetChild("txt_info_defenza_fan").Show()
		self.GetChild("Thin_info_defenza_fan").Show()
		self.GetChild("txt_info_resist_Magia").Show()
		self.GetChild("Thin_info_resist_Magia").Show()
		self.GetChild("txt_info_resist_veneno").Show()
		self.GetChild("Thin_info_resist_veneno").Show()
		self.GetChild("txt_info_resist_guerrero").Show()
		self.GetChild("Thin_info_resist_guerrero").Show()
		self.GetChild("txt_info_resist_ninja").Show()
		self.GetChild("Thin_info_resist_ninja").Show()
		self.GetChild("txt_info_resist_sura").Show()
		self.GetChild("Thin_info_resist_sura").Show()
		self.GetChild("txt_info_resist_chaman").Show()
		self.GetChild("Thin_info_resist_chaman_").Show()
		self.GetChild("txt_info_onfensivo").Show()
		self.GetChild("txt_info_criticos").Show()
		self.GetChild("Thin_info_criticos").Show()
		self.GetChild("txt_info_penetracion").Show()
		self.GetChild("Thin_info_penetracion").Show()
		self.GetChild("txt_info_danomedia").Show()
		self.GetChild("Thin_info_danomedia").Show()
		self.GetChild("txt_info_danohabilidad").Show()
		self.GetChild("Thin_info_danohabilidad").Show()
		self.GetChild("txt_info_fmediohumano").Show()
		self.GetChild("Thin_info_fmediohumano").Show()
		self.GetChild("txt_info_fnomuerto").Show()
		self.GetChild("Thin_info_fnomuerto").Show()
		self.GetChild("txt_info_fdemonio").Show()
		self.GetChild("Thin_info_fdemonio").Show()
		self.GetChild("txt_info_fguerrero").Show()
		self.GetChild("Thin_info_fguerrero").Show()
		self.GetChild("txt_info_fninja").Show()
		self.GetChild("Thin_info_fninja").Show()
		self.GetChild("txt_info_fsura").Show()
		self.GetChild("Thin_info_fsura").Show()
		self.GetChild("txt_info_fcham").Show()
		self.GetChild("Thin_info_fcham").Show()

def ActualizarBonus(self):
	self.GetChild("bonus_1").SetText(str(player.GetStatus(69)))
	self.GetChild("bonus_2").SetText(str(player.GetStatus(70)))
	self.GetChild("bonus_3").SetText(str(player.GetStatus(71)))
	self.GetChild("bonus_4").SetText(str(player.GetStatus(74)))
	self.GetChild("bonus_5").SetText(str(player.GetStatus(72)))
	self.GetChild("bonus_6").SetText(str(player.GetStatus(73)))
	self.GetChild("bonus_7").SetText(str(player.GetStatus(77)))
	self.GetChild("bonus_8").SetText(str(player.GetStatus(81)))
	self.GetChild("bonus_9").SetText(str(player.GetStatus(59)))
	self.GetChild("bonus_10").SetText(str(player.GetStatus(60)))
	self.GetChild("bonus_11").SetText(str(player.GetStatus(61)))
	self.GetChild("bonus_12").SetText(str(player.GetStatus(62)))
	self.GetChild("bonus_13").SetText(str(player.GetStatus(40)))
	self.GetChild("bonus_14").SetText(str(player.GetStatus(41)))
	self.GetChild("bonus_15").SetText(str(player.GetStatus(122)))
	self.GetChild("bonus_16").SetText(str(player.GetStatus(121)))
	self.GetChild("bonus_17").SetText(str(player.GetStatus(43)))
	self.GetChild("bonus_18").SetText(str(player.GetStatus(47)))
	self.GetChild("bonus_19").SetText(str(player.GetStatus(48)))
	self.GetChild("bonus_20").SetText(str(player.GetStatus(54)))
	self.GetChild("bonus_21").SetText(str(player.GetStatus(55)))
	self.GetChild("bonus_22").SetText(str(player.GetStatus(56)))
	self.GetChild("bonus_23").SetText(str(player.GetStatus(57)))
 

 

En suite rendez vous tout tout à la fin et ajoutez :

def OnUpdate(self):
	self.ActualizarBonus()
 

 

 

Pour faire fonctionner le bouton "Minimiser" il faut (toujours dans le même fichier) trouver :

 

            wndItem = self.GetChild("ItemSlot")
           wndEquip = self.GetChild("EquipmentSlot")
 

 

Et ajouter juste en dessous :

 

            self.ButonMinimize = self.GetChild2("OcultarTabla")
           self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizarBonus))
 

 

 

Dans locale_fr :

 

Trouvez et ouvrez le fichier "inventorywindow.py"

 

Sélectionnez tout le début jusqu'à la ligne :  (Arrêtez votre sélection juste avant cette ligne)

 

				## Equipment Slot
 

 

Et remplacez par :

 

import uiScriptLocale
import item

EQUIPMENT_START_INDEX = 180
SPACE_BONUS_INVENTORY = 130
IMAGE_CHELO = "d:/ymir work/ui/public/Parameter_Slot_01.sub"
window = {
"name" : "InventoryWindow",

## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
"x" : SCREEN_WIDTH - 176 - SPACE_BONUS_INVENTORY,
"y" : SCREEN_HEIGHT - 37 - 585,

"style" : ("movable", "float",),

"width" : 176 + SPACE_BONUS_INVENTORY,
"height" : 585,

"children" :
(
	## Inventory, Equipment Slots
	{
		"name" : "board",
		"type" : "board",
		"style" : ("attach",),

		"x" : 0,
		"y" : 0,

		"width" : 176 + SPACE_BONUS_INVENTORY,
		"height" : 585,

		"children" :
		(
			## Title
			{
				"name" : "TitleBar",
				"type" : "titlebar",
				"style" : ("attach",),

				"x" : 8,
				"y" : 7,

				"width" : 161 + SPACE_BONUS_INVENTORY,
				"color" : "yellow",

				"children" :
				(
					{ 
						"name":"TitleName", 
						"type":"text", 
						"x": (161 + SPACE_BONUS_INVENTORY) / 2,
						"y":3, 
						"text":uiScriptLocale.INVENTORY_TITLE, 
						"text_horizontal_align":"center" 
					},

				),
			},
			##Ocultar table de bonus
			{
				"name" : "OcultarTabla",
				"type" : "button",

				"x" : 161 + SPACE_BONUS_INVENTORY - 30,
				"y" : 10,

				"default_image" : "d:/ymir work/ui/public/minimize_button_01.sub",
				"over_image" : "d:/ymir work/ui/public/minimize_button_02.sub",
				"down_image" : "d:/ymir work/ui/public/minimize_button_03.sub",
				"tooltip_text" : "Bonus",
			},
			###################################################
			###################################################
			###################################################
			#############Tabla de Bonus @Chelo############
			#Bonus de Defenza..........................
			{
				"name" : "txt_info_defenza",
				"type" : "horizontalbar",

				"x" : 176 - 7,
				"y" : 33,
				"width" : 125,

				"children" :
				(
					{
						"name" : "bonus_text_1",
						"type" : "text",
						"x" : 0,
						"y" : 0,
						"all_align" : "center",
						"text" : "Defensif", 
					},
				),
			},
			########################################
			{
				"name" : "txt_info_defenza_espada",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 55,
				"text" : "Epee:"
			},
			{
				"name" : "Thin_info_defenza_espada",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 55 - 2,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_1",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_defenza_2manos",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75,
				"text" : "Lance:"
			},
			{
				"name" : "Thin_info_defenza_2manos",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 - 2,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_2",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_defenza_daga",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20,
				"text" : "Dague:"
			},
			{
				"name" : "Thin_info_defenza_daga",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_3",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_defenza_Felcha",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20,
				"text" : "Fleche:"
			},
			{
				"name" : "Thin_info_defenza_Felcha",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_4",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################

			{
				"name" : "txt_info_defenza_campana",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20,
				"text" : "Gong:"
			},
			{
				"name" : "Thin_info_defenza_campana",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_5",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_defenza_fan",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20,
				"text" : "Eventail:"
			},
			{
				"name" : "Thin_info_defenza_fan",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_6",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_resist_Magia",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20,
				"text" : "Magie:"
			},
			{
				"name" : "Thin_info_resist_Magia",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_7",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			########################################
			{
				"name" : "txt_info_resist_veneno",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Poison:"
			},
			{
				"name" : "Thin_info_resist_veneno",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_8",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_resist_guerrero",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Guerrier:"
			},
			{
				"name" : "Thin_info_resist_guerrero",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_9",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_resist_ninja",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Ninja:"
			},
			{
				"name" : "Thin_info_resist_ninja",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_10",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_resist_sura",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Sura:"
			},
			{
				"name" : "Thin_info_resist_sura",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_11",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			########################################
			{
				"name" : "txt_info_resist_chaman",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Shaman:"
			},
			{
				"name" : "Thin_info_resist_chaman_",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_12",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			#Bonus de onfensivo..........................
			{
				"name" : "txt_info_onfensivo",
				"type" : "horizontalbar",

				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"width" : 125,

				"children" :
				(
					{
						"name" : "bonus_text_2",
						"type" : "text",
						"x" : 0,
						"y" : 0,
						"all_align" : "center",
						"text" : "Offensif", 
					},
				),
			},
			########################################
			{
				"name" : "txt_info_criticos",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Critique:"
			},
			{
				"name" : "Thin_info_criticos",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_13",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_penetracion",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Percant:"
			},
			{
				"name" : "Thin_info_penetracion",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_14",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_danomedia",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Degats moyen:"
			},
			{
				"name" : "Thin_info_danomedia",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_15",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_danohabilidad",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Degats comp.:"
			},
			{
				"name" : "Thin_info_danohabilidad",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_16",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fmediohumano",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Demi humains:"
			},
			{
				"name" : "Thin_info_fmediohumano",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_17",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fnomuerto",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Mort vivant:"
			},
			{
				"name" : "Thin_info_fnomuerto",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_18",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fdemonio",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Mal:"
			},
			{
				"name" : "Thin_info_fdemonio",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_19",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fguerrero",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Guerrier:"
			},
			{
				"name" : "Thin_info_fguerrero",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_20",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fninja",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Ninja:"
			},
			{
				"name" : "Thin_info_fninja",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_21",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fsura",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Sura:"
			},
			{
				"name" : "Thin_info_fsura",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_22",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
			{
				"name" : "txt_info_fcham",
				"type" : "text",
				"x" : 176 - 5,
				"y" : 75 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"text" : "Shaman:"
			},
			{
				"name" : "Thin_info_fcham",
				"type" : "image",
				"x" : 176 + SPACE_BONUS_INVENTORY - 65,
				"y" : 75 + 20 - 2 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20,
				"image" : IMAGE_CHELO,
				"children" : 
				(
					{
						"name" : "bonus_23",
						"type" : "text",
						"x" : 26,
						"y" : 3,
						"text" : "999",
						"r" : 1.0,
						"g" : 1.0,
						"b" : 1.0,
						"a" : 1.0,
						"text_horizontal_align":"center"
					},
				),
			},
			###################################################
 

 

Et le tour est joué ;)

 

Petite astuce dans Notepad++ si en copiant/collant il vous remplace les tabulations par des espaces :

 

Placez votre curseur là ou devraient être les tabulations, appuyez sur la touche de tabulation et appuyez sur la touche précédent.

En faisant cette manip Notepad++ remplacera les espaces par le nombre de tabulation qu'il faut.

 

Ce tutoriel est à présent terminé.

Merci d'avoir lu en espérant en aider certains.

 

Source : FreakGamers, et un peu moi ^^

  • Funky Emulation 3
  • J'adore 18
Link to comment

De rien :) En fait le bouton fonctionne, il faut juste ajouter :

			self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizarBonus))

 

Comme ceci :

			wndItem = self.GetChild("ItemSlot")
		wndEquip = self.GetChild("EquipmentSlot")
		self.ButonMinimize = self.GetChild2("OcultarTabla")
		self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizarBonus))
		self.GetChild("TitleBar").SetCloseEvent(ui.__mem_func__(self.Close))
		self.wndMoney = self.GetChild("Money")
		self.wndMoneySlot = self.GetChild("Money_Slot")
		self.mallButton = self.GetChild2("MallButton")
		self.DSSButton = self.GetChild2("DSSButton")
		self.costumeButton = self.GetChild2("CostumeButton")

 

Dans le fichier "uiinventory.py" qui se trouve dans le "root".

 

Je l'ai ajouté au tuto :)

  • Funky Emulation 1
Link to comment
  • 4 weeks later...
  • 4 weeks later...
  • 5 weeks later...
  • 11 months later...
  • 1 month later...
  • 3 months later...
  • 11 months later...
  • 8 months later...

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


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.