Jump to content
  • 0

Button not clickable in certain X/Y Coords


astroNOT

Question

  • VIP
Posted (edited)

Hello, 

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

Faulty position: https://gyazo.com/34ad7ffea9c2e6b8d720eb36a8fa5983

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://gyazo.com/9f9b1eb62a84bd156eb0f0e6e88a4e08

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 astroNOT
Link to comment

2 answers to this question

Recommended Posts

  • 0
  • VIP
Posted (edited)

Indeed it worked, with a slight catch..
What i had 2 to do is to add more height to all the parent elements, starting from the first parent, and following the nesting
Thank you!

Edited by astroNOT
  • Love 1
Link to comment

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


  • Read our Rules
  • Activity

    1. 0

      Help with quest

    2. 0

      Will anyone modify the mount?Mounts need to be mounted to increase their stats.

    3. 11

      Lock Picking Skill + Missions

    4. 4

      Quest Deleter

    5. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    6. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    7. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    8. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    9. 6

      Skill Book Combination System

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