Jump to content

Button not clickable in certain X/Y Coords


Go to solution Solved by Sonitex,

Recommended Posts

Hello, 

I have this 1 button which is not clickable in the following position:

Faulty position: https://metin2.download/picture/s0R43DwyDza6rwDugokoZ5sbXG2cLg2F/.gif

But if i move it higher it works just fine, I not sure what to do, any ideas would be appreciated :D 

Working position: https://metin2.download/picture/NWzWf64BnX17546rkVJMMmVfxK863eLq/.gif

The actual ui dictionary:

Spoiler


import uiScriptLocale
import item

BELT_START_INDEX = item.BELT_INVENTORY_SLOT_START
BUTTON_ROOT = "d:/ymir work/ui/public/"

window = {
	"name" : "BeltInventoryWindow",
	"x" : SCREEN_WIDTH - 176 - 148,
	"y" : SCREEN_HEIGHT - 37 - 565 + 209 + 32,
	"width" : 148,
	"height" : 199,

	"type" : "image",
	"image" : "d:/ymir work/ui/game/belt_inventory/bg.tga",
	

	"children" :
	(
		## Expand Buttons
		{
			"name" : "ExpandBtn",
			"type" : "button",

			"x" : 2,
			"y" : 15,

			"default_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_normal.tga",
			"over_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_over.tga",
			"down_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_down.tga",
			"disable_image" : "d:/ymir work/ui/game/belt_inventory/btn_expand_disabled.tga",
		},

		
		## Belt Inventory Layer (include minimize button)
		{
			"name" : "BeltInventoryLayer",
#			"type" : "board",
#			"style" : ("attach", "float"),

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

			"width" : 148,
			"height" : 139,

			"children" :
			(
				## Minimize Button
				{
					"name" : "MinimizeBtn",
					"type" : "button",

					"x" : 2,
					"y" : 15,

					"width" : 10,

					"default_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_normal.tga",
					"over_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_over.tga",
					"down_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_down.tga",
					"disable_image" : "d:/ymir work/ui/game/belt_inventory/btn_minimize_disabled.tga",
				},

				## Real Belt Inventory Board
				{
					"name" : "BeltInventoryBoard",
					"type" : "board",
					"style" : ("attach", "float"),

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

					"width" : 138,
					"height" : 179,

					"children" :
					(
						## Belt Inventory Slots
						{
							"name" : "BeltInventorySlot",
							"type" : "grid_table",

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

							"start_index" : BELT_START_INDEX,
							"x_count" : 4,
							"y_count" : 4,
							"x_step" : 32,
							"y_step" : 32,

							"image" : "d:/ymir work/ui/public/Slot_Base.sub"
                            
						},
                        ##Activate all potions button
						{
							"name" : "UseBeltItemsButton",
							"type" : "button",
							"x" : 0,
							"y" : 138,
							"horizontal_align" : "center",
							"default_image" : BUTTON_ROOT + "AcceptButton00.sub",
							"over_image" : BUTTON_ROOT + "AcceptButton01.sub",
							"down_image" : BUTTON_ROOT + "AcceptButton02.sub",
						},
					),
				},
			)
		},
	),
}

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.