Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Costume window with shining page and hide costume,sash system bug


Jimmermania

Question

Posted (edited)

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
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

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


  • Activity

    1. 1

      Costume shining/costume effect system

    2. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    3. 3

      Biologist Manager (C++ & LUA)

    4. 3

      Visual studio 2022 compiling issue

    5. 63

      Metin2 | Mount System Renewal

    6. 58

      Metin2 2004 Beta Client

    7. 0

      🔥Paradise2 PVP SERVER GLOBAL!! EN-ES-PT 🕐📢Apertura 11 de diciembre 21 horas de España!

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.