Afisaj Inventar extra

În cazul în care aveţi o nelămurire postaţi aici, de asemenea este locul unde puteţi găsi posibile rezolvări la problemele dvs.
Avatar utilizator
RDaniel
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 26 Apr 2019, 19:35
Aprecieri: 24  
Mulţumiri: 0
Medalii

*Problemă/Întrebare: Cum as putea ordona inventarul extra ?
Tipologie server: x
*Resursă folosită: x
*ServerFiles utilizat: riseofhero
*Syserr: -curat-
Poză: [imagelink][/imagelink]
*Detalii suplimentare: extra inventar deranjat vizual

extrainventory.py :

Cod: Selectaţi tot

import uiscriptlocale

WINDOW_WIDTH = 310
WINDOW_HEIGHT = 290

window = {
	"name" : "ExtraInventory",

	"x" : (SCREEN_WIDTH - WINDOW_WIDTH) / 2,
	"y" : (SCREEN_HEIGHT - WINDOW_HEIGHT) / 2,

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

	"width" : WINDOW_WIDTH,
	"height" : WINDOW_HEIGHT,

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

			"style" : ("attach",),

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

			"width" : WINDOW_WIDTH,
			"height" : WINDOW_HEIGHT,

			"children" :
			(
				## Separate
				#{
				#	"name" : "SeparateBaseImage",
				#	"type" : "image",
				#	"style" : ("attach",),
				#
				#	"x" : 8,
				#	"y" : 7,
				#
				#	"image" : "d:/ymir work/ui/pattern/titlebar_inv_refresh_baseframe.tga",
				#
				#	"children" :
				#	(
				#		# Separate Button (38x24)
				#		{
				#			"name" : "RefreshButton",
				#			"type" : "button",
				#
				#			"x" : 11,
				#			"y" : 3,
				#
				#			"tooltip_text" : uiscriptlocale.INVENTORY_SPECIAL_SEPARATE,
				#
				#			"default_image" : "d:/ymir work/ui/game/inventory/refresh_small_button_01.sub",
				#			"over_image" : "d:/ymir work/ui/game/inventory/refresh_small_button_02.sub",
				#			"down_image" : "d:/ymir work/ui/game/inventory/refresh_small_button_03.sub",
				#			"disable_image" : "d:/ymir work/ui/game/inventory/refresh_small_button_04.sub",
				#		},
				#	),
				#},
				## Title
				{
					"name" : "TitleBar",
					"type" : "titlebar",
					"style" : ("attach",),

					#"x" : 8 +38,
					"x" : 8,
					"y" : 7,

					#"width" : WINDOW_WIDTH-15 - 38,
					"width" : WINDOW_WIDTH-15,
					"color" : "yellow",

					"children" :
					(
						{ "name" : "TitleName", "type" : "text", "x" : 0, "y" : -1, "text" : uiscriptlocale.EXTRA_INVENTORY_TITLE, "all_align" : "center" },
					),
				},
				## Item Slot
				{
					"name" : "ItemSlot",
					"type" : "grid_table",

					"x" : 10,
					"y" : 32,

					"start_index" : 0,
					"x_count" : EXTRA_INVENTORY_PAGE_COLUMN,
					"y_count" : EXTRA_INVENTORY_PAGE_ROW,
					"x_step" : 32,
					"y_step" : 32,

					"image" : "d:/ymir work/ui/public/Slot_Base.sub"
				},
				{
					"name":"cover_open_8",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 0)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_8",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 0)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_7",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 1)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_7",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 1)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_6",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 2)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_6",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 2)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_5",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 3)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_5",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 3)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_4",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 4)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_4",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 4)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_3",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 5)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_3",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 5)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_2",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 6)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_2",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 6)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_1",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 7)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_1",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 7)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				{
					"name":"cover_open_0",
					"type":"button",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 8)+ 137,

					"default_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"over_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
					"down_image":"d:/ymir work/ui/ex_inven_cover_button_open.sub",
				},
				{
					"name":"cover_close_0",
					"type":"image",
					"vertical_align":"bottom",
					
					"x":8,
					"y":24 + (32 * 8)+ 137,

					"image":"d:/ymir work/ui/ex_inven_cover_button_close.sub",
				},
				## Button1
				{
					"name" : "Inventory_Tab_01",
					"type" : "radio_button",

					"x" : 90,
					"y" : 210,

					"default_image" : "d:/ymir work/ui/game/windows/bottone/button3.tga",
					"over_image" : "d:/ymir work/ui/game/windows/bottone/button1.tga",
					"down_image" : "d:/ymir work/ui/game/windows/bottone/button2.tga",

				},
				## Button2
				{
					"name" : "Inventory_Tab_02",
					"type" : "radio_button",

					"x" : 90 + 32,
					"y" : 210,

					"default_image" : "d:/ymir work/ui/game/windows/bottone/button6.tga",
					"over_image" : "d:/ymir work/ui/game/windows/bottone/button4.tga",
					"down_image" : "d:/ymir work/ui/game/windows/bottone/button5.tga",


				},
				
				## Button3
				{
					"name" : "Inventory_Tab_03",
					"type" : "radio_button",

					"x" : 90 + 32 + 32,
					"y" : 210,

					"default_image" : "d:/ymir work/ui/game/windows/bottone/button9.tga",
					"over_image" : "d:/ymir work/ui/game/windows/bottone/button7.tga",
					"down_image" : "d:/ymir work/ui/game/windows/bottone/button8.tga",

				},
				## Button4
				{
					"name" : "Inventory_Tab_04",
					"type" : "radio_button",

					"x" : 90 + 32 + 32 + 32,
					"y" : 210,

					"default_image" : "d:/ymir work/ui/game/windows/bottone/button12.tga",
					"over_image" : "d:/ymir work/ui/game/windows/bottone/button10.tga",
					"down_image" : "d:/ymir work/ui/game/windows/bottone/button11.tga",

				},
				## CategoryButton1
				{
					"name" : "Cat_00",
					"type" : "radio_button",

					"x" : 15,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.BOOKS_TITLE,

					"default_image" : "d:/ymir work/ui/extra_inventory/cat_0.tga",
					"over_image" : "d:/ymir work/ui/extra_inventory/cat_0o.tga",
					"down_image" : "d:/ymir work/ui/extra_inventory/cat_0d.tga",
				},
				## CategoryButton2
				{
					"name" : "Cat_01",
					"type" : "radio_button",

					"x" : 15 + 41,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.UPPGRADE_TITLE,

					"default_image" : "d:/ymir work/ui/extra_inventory/cat_1.tga",
					"over_image" : "d:/ymir work/ui/extra_inventory/cat_1o.tga",
					"down_image" : "d:/ymir work/ui/extra_inventory/cat_1d.tga",
				},
				## CategoryButton3
				{
					"name" : "Cat_02",
					"type" : "radio_button",

					"x" : 15 + 82,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.STONES_TITLE,

					"default_image" : "d:/ymir work/ui/extra_inventory/cat_2.tga",
					"over_image" : "d:/ymir work/ui/extra_inventory/cat_2o.tga",
					"down_image" : "d:/ymir work/ui/extra_inventory/cat_2d.tga",
				},
				## CategoryButton3
				{
					"name" : "Cat_03",
					"type" : "radio_button",

					"x" : 15 + 123,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.COFFERS_TITLE,

					"default_image" : "d:/ymir work/ui/extra_inventory/cat_3.tga",
					"over_image" : "d:/ymir work/ui/extra_inventory/cat_3o.tga",
					"down_image" : "d:/ymir work/ui/extra_inventory/cat_3d.tga",
				},
				## CategoryButton4
				{
					"name" : "Cat_04",
					"type" : "radio_button",

					#"x" : 10,
					"x" : 15 + 164,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.ENCHANT_REINFORCE_TITLE,

					"default_image" : "new_ui/btn/cat_4.tga",
					"over_image" : "new_ui/btn/cat_4o.tga",
					"down_image" : "new_ui/btn/cat_4d.tga",
				},
				## CategoryButton 4 Safebox
				{
					"name" : "Safebox_cat",
					"type" : "button",

					#"x" : 10 + 41,
					"x" : 15 + 205,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.SAFEBOX_TITLE,

					"default_image" : "d:/ymir work/ui/extra_inventory/magazzino_normal.tga",
					"over_image" : "d:/ymir work/ui/extra_inventory/magazzino_hover.tga",
					"down_image" : "d:/ymir work/ui/extra_inventory/magazzino_active.tga",
				},
				
				# CategoryButton 5 Mall
				{
					"name" : "Mall_cat",
					"type" : "button",

					#"x" : 10 + 82,
					"x" : 15 + 246,
					"y" : 245,
					
					
					"tooltip_text" : uiscriptlocale.MALL_TITLE,

					"default_image" : "d:/ymir work/ui/extra_inventory/carrello_normal.tga",
					"over_image" : "d:/ymir work/ui/extra_inventory/carrello_hover.tga",
					"down_image" : "d:/ymir work/ui/extra_inventory/carrello_active.tga",
				},
			),	
		},
	),
}
Avatar utilizator
RDaniel
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 26 Apr 2019, 19:35
Aprecieri: 24  
Mulţumiri: 0
Medalii

Am rezolvat , cer T/C
Avatar utilizator
[SeeTher]
Nivel 2

Nivel 2
Mesaje: 188
Membru din: 23 Sep 2015, 08:47
Regat: Jinno
Aprecieri: 350  
Mulţumiri: 263  
Medalii

Lasa si rezolvarea
TikTok : @pms.alex92
Afișează semnătura
Răspunde
Răspunsuri
4
Vizualizări
72
Răspunsuri
3
Vizualizări
488
Răspunsuri
1
Vizualizări
157

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori