Jump to content
  • 0

PlayerBox Clickables not aligned


Push

Question

Not sure how to title this, but the photo should help:

 

I edited the 'TargetBox.json' and changed the postion of the 'Trade, Party, Befriend' text.

When I hover over the text nothing appears, the 'clickable' part seems to start at the very top of the text box. I dont see an option to change the location.

 

(The Green arrow is representing where my mouse is when the 'tooltip' appears and I am able to click the text.) It's activated at the bottom of the HP bar. How to change this?
d7c9d791aa2f59e9f3a1dcb820d6ef22.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

You will need to edit the bounds, as well as check the padding/text padding. The bounds is set up like this:

 

"X,Y,WIDTH,HEIGHT"

 

"Bounds": "250,82,22,22",

 

X = 250 = Position Horizontal (250 pixels in from the left)

Y = 82 = Position Vertical (82 pixels down from the top)

Width = 22 = Width of the box / entity (22 pixels in width = space allowed)

Height = 22 = Height of the box / entity (22 pixels in heigth = space allowed)

 

Also keep in mind the size of the overall box size that is set at the very top bound. This determinds the play area for the rest of the objects within.

Link to comment
Share on other sites

  • 0
  On 6/25/2020 at 10:31 PM, Ainz Ooal Gown said:

You will need to edit the bounds, as well as check the padding/text padding. The bounds is set up like this:

 

"X,Y,WIDTH,HEIGHT"

 

"Bounds": "250,82,22,22",

 

X = 250 = Position Horizontal (250 pixels in from the left)

Y = 82 = Position Vertical (82 pixels down from the top)

Width = 22 = Width of the box / entity (22 pixels in width = space allowed)

Height = 22 = Height of the box / entity (22 pixels in heigth = space allowed)

 

Also keep in mind the size of the overall box size that is set at the very top bound. This determinds the play area for the rest of the objects within.

Expand  

Thanks for the input!

 

When I try to change the Bounds of those, they always revert back to the orginal numbers.
The padding only changes the position for the text, but the clickable area is only a pixel wide at the top of the text (bottom outline of the HP Bar)

Here's what my TradeButton Looks like:
 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 6/25/2020 at 11:07 PM, CosakiGames said:

Thanks for the input!

 

When I try to change the Bounds of those, they always revert back to the orginal numbers.
The padding only changes the position for the text, but the clickable area is only a pixel wide at the top of the text (bottom outline of the HP Bar)

Here's what my TradeButton Looks like:
 

  Reveal hidden contents

 

Expand  

 

Can you post your whole .json file?

 

Padding might be too much for size of area it has? An element's padding is the space between its content and its border.

 

Link to comment
Share on other sites

  • 0
  On 6/26/2020 at 9:46 AM, Ainz Ooal Gown said:

 

Can you post your whole .json file?

 

Padding might be too much for size of area it has? An element's padding is the space between its content and its border.

 

Expand  

 

 

I moved the buttons and HP bar up and it helped a bit, but seems to be stuck at a certain point. Im not sure which bounds is effecting it.

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 6/26/2020 at 5:55 PM, CosakiGames said:

 

 

I moved the buttons and HP bar up and it helped a bit, but seems to be stuck at a certain point. Im not sure which bounds is effecting it.

 

  Reveal hidden contents

 

Expand  

 

For me I think you have too much padding and margins that might be pushing other entities away? Especially "Padding": "0,10,10,10", on the mainbox which isnt needed as you want the whole main box to be the size of the image your using?.

Link to comment
Share on other sites

  • 0
  On 6/27/2020 at 12:00 PM, Ainz Ooal Gown said:

 

For me I think you have too much padding and margins that might be pushing other entities away? Especially "Padding": "0,10,10,10", on the mainbox which isnt needed as you want the whole main box to be the size of the image your using?.

Expand  

Even after setting the mianbox padding to 0, nothing changed.
I made sure all padding were at 0, but still the same outcome.

 

Maybe it has to do with disabling the MP Bar? Ill keep at it and see if I can figure out the problem. Thank you for your help!

 

Link to comment
Share on other sites

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
Γ—
Γ—
  • Create New...