Bug inventar

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Pișta
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 20 Iul 2016, 14:47
Regat: Shinsoo
Aprecieri: 36  
Mulţumiri: 1  
  Rezolvări prob.: 1
Medalii

Am adăugat acest sistem: http://just4metin.ro/post412267.html?hi ... ar#p412267
Problema e că bara aia cu butoane, zici că nu e acolo, apăs click pe un buton de acolo și caracterul începe să meargă. Nici când dau over pe butoane nu se întâmplă nimic. Imagine uitați invetorywindow.py

Cod: Selectaţi tot

import uiScriptLocale
import item
import uiToolTip

EQUIPMENT_START_INDEX = 225

window = {
	"name" : "InventoryWindow",

	"x" : SCREEN_WIDTH - 176 - 36 - 72 + 70,
	"y" : SCREEN_HEIGHT - 22 - 580,
 
    "style" : ("movable", "float", "not_pick",),

	"width" : 176+37,
	"height" : 635,

	"children" :
	(
		{
			"name" : "board2",
			"type" : "board",
			"style" : ("attach", "float", "not_pick",),

			"x" : -45,
			"y" : 230,

			"width" : 45,
			"height" : 188+35,

			"children" : 
			(
				#Switchbot
				{
					"name" : "switchboot",
					"type" : "button",
					"x" : 8,
					"y" : 9,
					
					"default_image" : "d:/ymir work/ui/game/twix_button/switchbot_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/switchbot_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/switchbot_1.tga",
				},	
				#Bonusuri
				{
					"name" : "bonusuri",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/pagina_bonusuri_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/pagina_bonusuri_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/pagina_bonusuri_1.tga",
				},	
				#Magazin Offline
				{
					"name" : "OfflineShopButton",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/magazin_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/magazin_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/magazin_1.tga",
				},	
				##Anti Experienta
				{
					"name" : "antiexp",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/inel_anti_exp_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/inel_anti_exp_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/inel_anti_exp_1.tga",
				},
				##Inel Teleport
				{
					"name" : "teleport",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/inel_teleport_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/inel_teleport_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/inel_teleport_1.tga",
				},
				#Iesire
				{
					"name" : "iesire",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35+35+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/iesire_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/iesire_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/iesire_1.tga",
				},				
			),	
		},
		## Inventory, Equipment Slots
		{
			"name" : "board",
			"type" : "board",
			"style" : ("attach",),

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

			"width" : 176,
			"height" : 565,

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

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

					"width" : 161,
					"color" : "yellow",

					"children" :
					(
						{ "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
					),
				},

				## Equipment Slot
				{
					"name" : "Equipment_Base",
					"type" : "image",

					"x" : 10,
					"y" : 33,

					"image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
					"image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",

					"children" :
					(

						{
							"name" : "EquipmentSlot",
							"type" : "slot",

							"x" : 3,
							"y" : 3,

							"width" : 150,
							"height" : 182,

							"slot" : (
										{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
										{"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
										{"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
										 ##새 반지1
										{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
										 ##새 반지2
										{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
										 ##새 벨트
										{"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
									),
						},
						## Dragon Soul Button
						{
							"name" : "DSSButton",
							"type" : "button",

							"x" : 114,
							"y" : 107,

							"tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,

							"default_image" : "d:/ymir work/ui/dragonsoul/cakmavector.tga",
							"over_image" : "d:/ymir work/ui/dragonsoul/cakmavector.tga",
							"down_image" : "d:/ymir work/ui/dragonsoul/cakmavector.tga",
						},
						## MallButton
						{
							"name" : "MallButton",
							"type" : "button",

							"x" : 118,
							"y" : 148,

							"tooltip_text" : uiScriptLocale.MALL_TITLE,

							"default_image" : "d:/ymir work/ui/game/twix_button/Mall_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/twix_button/Mall_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/twix_button/Mall_Button_03.tga",
						},
						## CostumeButton
						{
							"name" : "CostumeButton",
							"type" : "button",

							"x" : 78,
							"y" : 5,

							"tooltip_text" : uiScriptLocale.COSTUME_TITLE,

							"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
						},			
						{
							"name" : "Equipment_Tab_01",
							"type" : "radio_button",

							"x" : 86,
							"y" : 161,

							"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
							"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
							"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

									"all_align" : "center",

									"text" : "I",
								},
							),
						},
						{
							"name" : "Equipment_Tab_02",
							"type" : "radio_button",

							"x" : 86 + 32,
							"y" : 161,

							"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
							"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
							"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

									"all_align" : "center",

									"text" : "II",
								},
							),
						},

					),
				},

				{
					"name" : "Inventory_Tab_01",
					"type" : "radio_button",

					"x" : 7,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "I",
						},
					),
				},
				{
					"name" : "Inventory_Tab_02",
					"type" : "radio_button",

					"x" : 7 + 32,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,

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

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

							"all_align" : "center",

							"text" : "II",
						},
					),
				},
				{
					"name" : "Inventory_Tab_03",
					"type" : "radio_button",

					"x" : 7 + 32*2,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "III",
						},
					),
				},
				{
					"name" : "Inventory_Tab_04",
					"type" : "radio_button",

					"x" : 7 + 32*3,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "IV",
						},
					),
				},
				{
					"name" : "Inventory_Tab_05",
					"type" : "radio_button",

					"x" : 7 + 32*4,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "V",
						},
					),
				},

				## Item Slot
				{
					"name" : "ItemSlot",
					"type" : "grid_table",

					"x" : 8,
					"y" : 246,

					"start_index" : 0,
					"x_count" : 5,
					"y_count" : 9,
					"x_step" : 32,
					"y_step" : 32,

					"image" : "d:/ymir work/ui/public/Slot_Base.sub"
				},

				## Print
				{
					"name":"Money_Slot",
					"type":"button",

					"x":8,
					"y":28,

					"horizontal_align":"center",
					"vertical_align":"bottom",

					"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
					"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
					"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",

					"children" :
					(
						{
							"name":"Money_Icon",
							"type":"image",

							"x":-18,
							"y":2,

							"image":"d:/ymir work/ui/game/windows/money_icon.sub",
						},

						{
							"name" : "Money",
							"type" : "text",

							"x" : 3,
							"y" : 3,

							"horizontal_align" : "right",
							"text_horizontal_align" : "right",

							"text" : "123456789",
						},
					),
				},

			),
		},
	),
}
Imagine
Afișează semnătura
Avatar utilizator
BRTSERGIU2
Utilizator interzis !

Utilizator interzis !
Mesaje: 600
Membru din: 25 Aug 2014, 21:28
Server: Metin2Ro
Regat: Chunjo
Aprecieri: 28  
Mulţumiri: 77  
Medalii

tu aici ai doar partea vizuala problema nu e de aici
Avatar utilizator
Pișta
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 20 Iul 2016, 14:47
Regat: Shinsoo
Aprecieri: 36  
Mulţumiri: 1  
  Rezolvări prob.: 1
Medalii

BRTSERGIU scrie:tu aici ai doar partea vizuala problema nu e de aici

Eu cred că de aici e, normal ar trebui să se schimbe icon-ul de la butoane când te duci cu săgeata de la mouse pe unul dintre ele, nu se întâmplă asta, și dacă apăs click pe pe bara aia, e ca și cum aș da click prin bară..parcă nu ar fi acolo
Imagine
Afișează semnătura
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Pișta scrie:
BRTSERGIU scrie:tu aici ai doar partea vizuala problema nu e de aici

Eu cred că de aici e, normal ar trebui să se schimbe icon-ul de la butoane când te duci cu săgeata de la mouse pe unul dintre ele, nu se întâmplă asta, și dacă apăs click pe pe bara aia, e ca și cum aș da click prin bară..parcă nu ar fi acolo
Sterge linia

Cod: Selectaţi tot

         "style" : ("attach", "float", "not_pick",),
din

Cod: Selectaţi tot

         "name" : "board2",
         "type" : "board",
         "style" : ("attach", "float", "not_pick",),
Avatar utilizator
★Cristi★
Nivel 1

Nivel 1
Mesaje: 126
Membru din: 19 Aug 2014, 11:33
Server: În căutare.
Regat: Shinsoo
Aprecieri: 18  
Mulţumiri: 52  
 Contact:
Medalii

Incearcă asta, ți le pune deasupra la inventare. Trebuie să modifici locația la imagini si eventual:
" #Bonusuri
{
"name" : "Alaska_py"
,"

Cod: Selectaţi tot

import uiScriptLocale
import item

EQUIPMENT_START_INDEX = 225

window = {
	"name" : "InventoryWindow",

	## 600 - (width + ¿À¸¥ÂÊÀ¸·Î ºÎÅÍ ¶ç¿ì±â 24 px)
	"x" : SCREEN_WIDTH - 176,
	"y" : SCREEN_HEIGHT - 592,

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

	"width" : 176,
	"height" : 592,

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

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

			"width" : 176,
			"height" : 592,

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

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

					"width" : 161,
					"color" : "yellow",

					"children" :
					(
						{ "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
					),
				},

				## Equipment Slot
				{
					"name" : "Equipment_Base",
					"type" : "image",

					"x" : 10,
					"y" : 33,

					"image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",

					"children" :
					(

						{
							"name" : "EquipmentSlot",
							"type" : "slot",

							"x" : 3,
							"y" : 3,

							"width" : 150,
							"height" : 182,

							"slot" : (
										{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
										{"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
										{"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
									),
						},
						## MallButton
						{
							"name" : "MallButton",
							"type" : "button",

							"x" : 118,
							"y" : 148,

							"tooltip_text" : uiScriptLocale.MALL_TITLE,

							"default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
						},
						## CostumeButton
						{
							"name" : "CostumeButton",
							"type" : "button",

							"x" : 78,
							"y" : 5,

							"tooltip_text" : uiScriptLocale.COSTUME_TITLE,

							"default_image" : "d:/ymir work/ui/game/costume_button_01.tga",
							"over_image" : "d:/ymir work/ui/game/costume_button_02.tga",
							"down_image" : "d:/ymir work/ui/game/costume_button_03.tga",
						},						
						{
							"name" : "Equipment_Tab_01",
							"type" : "radio_button",

							"x" : 86,
							"y" : 161,

							"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
							"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
							"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

									"all_align" : "center",

									"text" : "I",
								},
							),
						},
						{
							"name" : "Equipment_Tab_02",
							"type" : "radio_button",

							"x" : 86 + 32,
							"y" : 161,

							"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
							"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
							"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

									"all_align" : "center",

									"text" : "II",
								},
							),
						},

					),
				},

				{
					"name" : "Inventory_Tab_01",
					"type" : "radio_button",

					"x" : 7,
					"y" : 63 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

							"all_align" : "center",

							"text" : "1",
						},
					),
				},
				#Bonusuri
				{
					"name" : "Alaska_py",
					"type" : "button",
					"x" : 7,
					"y" : 30 + 191,

					"tooltip_text" : "Vezi Bonusurile",

					"default_image" : " LOCATIA_BUTONULUI 1.tga",
					"over_image" : " -"- 2.tga",
					"down_image" : " -"- 1.tga",
				},
				{
					"name" : "Inventory_Tab_02",
					"type" : "radio_button",

					"x" : 7 + 32,
					"y" : 63 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

							"all_align" : "center",

							"text" : "2",
						},
					),
				},
				#Switchbot
				{
					"name" : "switchboot",
					"type" : "button",

					"x" : 7 + 32,
					"y" : 30 + 191,

					"tooltip_text" : "SwitchBot",

					"default_image" : "1.tga",
					"over_image" : "2.tga",
					"down_image" : "2.tga",
				},
				{
					"name" : "Inventory_Tab_03",
					"type" : "radio_button",

					"x" : 7 + 32*2,
					"y" : 63 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

							"all_align" : "center",

							"text" : "3",
						},
					),
				},
				#Depozit
				{
					"name" : "depozit",
					"type" : "button",

					"x" : 7 + 32*2,
					"y" : 30 + 191,

					"tooltip_text" : "Depozit",

					"default_image" : "1.tga",
					"over_image" : "2.tga",
					"down_image" : "2.tga",
				},
				{
					"name" : "Inventory_Tab_04",
					"type" : "radio_button",

					"x" : 7 + 32*3,
					"y" : 63 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

							"all_align" : "center",

							"text" : "4",
						},
					),
				},
				#Anti-EXP
				{
					"name" : "anti_exp",
					"type" : "button",

					"x" : 7 + 32*3,
					"y" : 30 + 191,

					"tooltip_text" : "Inel Anti-EXP",

					"default_image" : "1.tga",
					"over_image" : "2.tga",
					"down_image" : "2.tga",
				},
				#Inel Teleport
				{
					"name" : "teleport",
					"type" : "button",

					"x" : 7 + 32*4,
					"y" : 30 + 191,

					"tooltip_text" : "Inel Teleport",

					"default_image" : "1.tga",
					"over_image" : "2.tga",
					"down_image" : "1.tga",
				},
				{
					"name" : "Inventory_Tab_05",
					"type" : "radio_button",

					"x" : 7 + 32*4,
					"y" : 63 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

							"all_align" : "center",

							"text" : "5",
						},
					),
				},


				## Item Slot
				{
					"name" : "ItemSlot",
					"type" : "grid_table",

					"x" : 8,
					"y" : 272,

					"start_index" : 0,
					"x_count" : 5,
					"y_count" : 9,
					"x_step" : 32,
					"y_step" : 32,

					"image" : "d:/ymir work/ui/public/Slot_Base.sub"
				},

				## Print
				{
					"name":"Money_Slot",
					"type":"button",

					"x":8,
					"y":28,

					"horizontal_align":"center",
					"vertical_align":"bottom",

					"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
					"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
					"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",

					"children" :
					(
						{
							"name":"Money_Icon",
							"type":"image",

							"x":-18,
							"y":2,

							"image":"d:/ymir work/ui/game/windows/money_icon.sub",
						},

						{
							"name" : "Money",
							"type" : "text",

							"x" : 3,
							"y" : 3,

							"horizontal_align" : "right",
							"text_horizontal_align" : "right",

							"text" : "123456789",
						},
					),
				},

			),
		},
	),
}
Pentru acest mesaj, ★Cristi★ for the post:
obedenaru
NO SIGMATURE
Afișează semnătura
Avatar utilizator
Pișta
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 20 Iul 2016, 14:47
Regat: Shinsoo
Aprecieri: 36  
Mulţumiri: 1  
  Rezolvări prob.: 1
Medalii

qTupeu scrie:
Pișta scrie:
BRTSERGIU scrie:tu aici ai doar partea vizuala problema nu e de aici

Eu cred că de aici e, normal ar trebui să se schimbe icon-ul de la butoane când te duci cu săgeata de la mouse pe unul dintre ele, nu se întâmplă asta, și dacă apăs click pe pe bara aia, e ca și cum aș da click prin bară..parcă nu ar fi acolo
Sterge linia

Cod: Selectaţi tot

         "style" : ("attach", "float", "not_pick",),
din

Cod: Selectaţi tot

         "name" : "board2",
         "type" : "board",
         "style" : ("attach", "float", "not_pick",),
Tot așa face...
Imagine
Afișează semnătura
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Incearca:

Cod: Selectaţi tot

import uiScriptLocale
import item
import uiToolTip

EQUIPMENT_START_INDEX = 225

window = {
	"name" : "InventoryWindow",

	"x" : SCREEN_WIDTH - 176 - 36 - 72 + 70,
	"y" : SCREEN_HEIGHT - 22 - 580,
 
    "style" : ("movable", "float",),

	"width" : 176+37,
	"height" : 635,

	"children" :
	(
		{
			"name" : "board2",
			"type" : "board",

			"x" : -45,
			"y" : 230,

			"width" : 45,
			"height" : 188+35,

			"children" : 
			(
				#Switchbot
				{
					"name" : "switchboot",
					"type" : "button",
					"x" : 8,
					"y" : 9,
					
					"default_image" : "d:/ymir work/ui/game/twix_button/switchbot_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/switchbot_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/switchbot_1.tga",
				},	
				#Bonusuri
				{
					"name" : "bonusuri",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/pagina_bonusuri_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/pagina_bonusuri_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/pagina_bonusuri_1.tga",
				},	
				#Magazin Offline
				{
					"name" : "OfflineShopButton",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/magazin_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/magazin_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/magazin_1.tga",
				},	
				##Anti Experienta
				{
					"name" : "antiexp",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/inel_anti_exp_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/inel_anti_exp_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/inel_anti_exp_1.tga",
				},
				##Inel Teleport
				{
					"name" : "teleport",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/inel_teleport_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/inel_teleport_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/inel_teleport_1.tga",
				},
				#Iesire
				{
					"name" : "iesire",
					"type" : "button",
					"x" : 8 ,
					"y" : 9+35+35+35+35+35,

					"default_image" : "d:/ymir work/ui/game/twix_button/iesire_1.tga",
					"over_image" : "d:/ymir work/ui/game/twix_button/iesire_2.tga",
					"down_image" : "d:/ymir work/ui/game/twix_button/iesire_1.tga",
				},				
			),	
		},
		## Inventory, Equipment Slots
		{
			"name" : "board",
			"type" : "board",
			"style" : ("attach",),

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

			"width" : 176,
			"height" : 565,

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

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

					"width" : 161,
					"color" : "yellow",

					"children" :
					(
						{ "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
					),
				},

				## Equipment Slot
				{
					"name" : "Equipment_Base",
					"type" : "image",

					"x" : 10,
					"y" : 33,

					"image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
					"image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",

					"children" :
					(

						{
							"name" : "EquipmentSlot",
							"type" : "slot",

							"x" : 3,
							"y" : 3,

							"width" : 150,
							"height" : 182,

							"slot" : (
										{"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
										{"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
										{"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
										{"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
										 ##새 반지1
										{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
										 ##새 반지2
										{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
										 ##새 벨트
										{"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
									),
						},
						## Dragon Soul Button
						{
							"name" : "DSSButton",
							"type" : "button",

							"x" : 114,
							"y" : 107,

							"tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,

							"default_image" : "d:/ymir work/ui/dragonsoul/cakmavector.tga",
							"over_image" : "d:/ymir work/ui/dragonsoul/cakmavector.tga",
							"down_image" : "d:/ymir work/ui/dragonsoul/cakmavector.tga",
						},
						## MallButton
						{
							"name" : "MallButton",
							"type" : "button",

							"x" : 118,
							"y" : 148,

							"tooltip_text" : uiScriptLocale.MALL_TITLE,

							"default_image" : "d:/ymir work/ui/game/twix_button/Mall_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/twix_button/Mall_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/twix_button/Mall_Button_03.tga",
						},
						## CostumeButton
						{
							"name" : "CostumeButton",
							"type" : "button",

							"x" : 78,
							"y" : 5,

							"tooltip_text" : uiScriptLocale.COSTUME_TITLE,

							"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
							"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
							"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
						},			
						{
							"name" : "Equipment_Tab_01",
							"type" : "radio_button",

							"x" : 86,
							"y" : 161,

							"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
							"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
							"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

									"all_align" : "center",

									"text" : "I",
								},
							),
						},
						{
							"name" : "Equipment_Tab_02",
							"type" : "radio_button",

							"x" : 86 + 32,
							"y" : 161,

							"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
							"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
							"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",

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

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

									"all_align" : "center",

									"text" : "II",
								},
							),
						},

					),
				},

				{
					"name" : "Inventory_Tab_01",
					"type" : "radio_button",

					"x" : 7,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "I",
						},
					),
				},
				{
					"name" : "Inventory_Tab_02",
					"type" : "radio_button",

					"x" : 7 + 32,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,

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

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

							"all_align" : "center",

							"text" : "II",
						},
					),
				},
				{
					"name" : "Inventory_Tab_03",
					"type" : "radio_button",

					"x" : 7 + 32*2,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "III",
						},
					),
				},
				{
					"name" : "Inventory_Tab_04",
					"type" : "radio_button",

					"x" : 7 + 32*3,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "IV",
						},
					),
				},
				{
					"name" : "Inventory_Tab_05",
					"type" : "radio_button",

					"x" : 7 + 32*4,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,

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

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

							"all_align" : "center",

							"text" : "V",
						},
					),
				},

				## Item Slot
				{
					"name" : "ItemSlot",
					"type" : "grid_table",

					"x" : 8,
					"y" : 246,

					"start_index" : 0,
					"x_count" : 5,
					"y_count" : 9,
					"x_step" : 32,
					"y_step" : 32,

					"image" : "d:/ymir work/ui/public/Slot_Base.sub"
				},

				## Print
				{
					"name":"Money_Slot",
					"type":"button",

					"x":8,
					"y":28,

					"horizontal_align":"center",
					"vertical_align":"bottom",

					"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
					"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
					"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",

					"children" :
					(
						{
							"name":"Money_Icon",
							"type":"image",

							"x":-18,
							"y":2,

							"image":"d:/ymir work/ui/game/windows/money_icon.sub",
						},

						{
							"name" : "Money",
							"type" : "text",

							"x" : 3,
							"y" : 3,

							"horizontal_align" : "right",
							"text_horizontal_align" : "right",

							"text" : "123456789",
						},
					),
				},

			),
		},
	),
}
Inlocuiesti continutul cu asta.
Ultima oară modificat 23 Ian 2017, 21:18 de către [Tupeu], modificat 1 dată în total.
Motiv: Link download.
Avatar utilizator
Pișta
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 20 Iul 2016, 14:47
Regat: Shinsoo
Aprecieri: 36  
Mulţumiri: 1  
  Rezolvări prob.: 1
Medalii

qTupeu scrie: Inlocuiesti continutul cu asta.
Tot așa face..
Imagine
Afișează semnătura
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Subiect inactiv. Arhivat !
Închis
Răspunsuri
4
Vizualizări
175
Răspunsuri
4
Vizualizări
299
Răspunsuri
6
Vizualizări
459

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Semrush [Bot] și 45 vizitatori