Jump to content

Recommended Posts

Hello guys,
As you can see from the gif: BUG , when i change page and go to shining page, it still has the show/hide buttons from costume page. Any ideas how to remove them?
My costumewindow.py is this one:
 

Spoiler
import uiScriptLocale
import item

COSTUME_START_INDEX = item.COSTUME_SLOT_START
SHINING_START_INDEX = item.SHINING_SLOT_START #229

window = {
		"name" : "CostumeWindow",

		"x" : SCREEN_WIDTH - 175 - 225,
		"y" : SCREEN_HEIGHT - 95 - 620,
		"style" : ("movable", "float",),
		"width" : 146,
		"height" : 180 + 47,

		"children" :
		(
			{
				"name" : "board",
				"type" : "board_with_titlebar",
				"style" : ("attach",),

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

				"width" : 146,
				"height" : 180 + 47,
				
				"title" : uiScriptLocale.COSTUME_WINDOW_TITLE,
			
				"children" :
				(
					## Equipment Slot
					{
						"name" : "Costume_Base",
						"type" : "image",

						"x" : 13,
						"y" : 38,
					
						"image" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "costume/new_costume_bg.jpg",

						"children" :
						(
							{
								"name" : "Costume_Page",
								"type" : "window",
								"style" : ("attach",),

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

								"width" : 127,
								"height" : 175,

								"children" :
								(
									{
										"name" : "CostumeSlot",
										"type" : "slot",

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

										"width" : 127,
										"height" : 175,

										"slot" : (
													# {"index":COSTUME_START_INDEX+0, "x":49, "y":40, "width":29, "height":64},
													{"index":COSTUME_START_INDEX+0, "x":62, "y":45, "width":32, "height":64},
													# {"index":COSTUME_START_INDEX+1, "x":49, "y":3, "width":29, "height":32},
													{"index":COSTUME_START_INDEX+1, "x":62, "y": 9, "width":32, "height":32},
													# {"index":COSTUME_START_INDEX+2, "x":10, "y":15, "width":32, "height":96},
													{"index":COSTUME_START_INDEX+2, "x":13, "y":126, "width":32, "height":32},
													# {"index":COSTUME_START_INDEX+3, "x":79, "y":132, "width":32, "height":32},
													{"index":COSTUME_START_INDEX+3, "x":62, "y":126, "width":32, "height":32},
													# {"index":COSTUME_START_INDEX+4, "x":2, "y":132, "width":32, "height":32},
													{"index":item.COSTUME_SLOT_WEAPON, "x":13, "y":13, "width":32, "height":96},
												),
									},
								),
							},
							## ENABLE_HIDE_COSTUME_SYSTEM
							{
								"name" : "BodyToolTipButton",
								"type" : "toggle_button",
		
								"x" : 62,
								"y" : 45,
								"tooltip_text" : uiScriptLocale.HIDE_COSTUME,
		
								"default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
								"over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
								"down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
							},
							{
								"name" : "HairToolTipButton",
								"type" : "toggle_button",
		
								"x" : 62,
								"y" : 9,
								"tooltip_text" : uiScriptLocale.HIDE_COSTUME,
		
								"default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
								"over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
								"down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
							},
							{
								"name" : "AcceToolTipButton",
								"type" : "toggle_button",
		
								"x" : 62,
								"y" : 126,
								"tooltip_text" : uiScriptLocale.HIDE_COSTUME,
		
								"default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
								"over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
								"down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
							},
							{
								"name" : "WeaponToolTipButton",
								"type" : "toggle_button",
		
								"x" : 13,
								"y" : 13,
								"tooltip_text" : uiScriptLocale.HIDE_COSTUME,
		
								"default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
								"over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
								"down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
							},
							## END_OF_ENABLE_HIDE_COSTUME_SYSTEM
							{
								"name" : "Shining_Page",
								"type" : "window",
								"style" : ("attach",),

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

								"width" : 127,
								"height" : 175,

								"children" :
								(
									{
										"name" : "ShiningSlot",
										"type" : "slot",

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

										"width" : 127,
										"height" : 175,

										"slot" : (
													#Waffe
													{"index":SHINING_START_INDEX+0, "x":16, "y":79, "width":32, "height":32},
													{"index":SHINING_START_INDEX+1, "x":16, "y":47, "width":32, "height":32},
													{"index":SHINING_START_INDEX+2, "x":16, "y":15, "width":32, "height":32},
													#Armor
													{"index":SHINING_START_INDEX+3, "x":65, "y":79, "width":32, "height":32},
													{"index":SHINING_START_INDEX+4, "x":65, "y":47, "width":32, "height":32},
													#Special
													{"index":SHINING_START_INDEX+5, "x":65, "y":12, "width":32, "height":32},
												),
									},
								),
							},
						),
					},
					{
						"name" : "ChangeButton",
						"type" : "button",

						"x" : 113,
						"y" : 38,

						"tooltip_text" : uiScriptLocale.CHANGE_SHINING,

						"default_image" : "uiscript/refresh/refresh_normal.tga",
						"over_image" : "uiscript/refresh/refresh_hover.tga",
						"down_image" : "uiscript/refresh/refresh_pressed.tga",
					},
				),
			},
		),
	}

Thanks in advance.

Edited by Metin2 Dev
Core X - External 2 Internal

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

up

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

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.