- Joined
- Jun 21, 2015
- Messages
- 1,441
- Reaction score
- 680
- First Language
- Polish
- Primarily Uses
- Other
I'm terrible when it comes to work with default scripts and I've run into a silly trouble that apparently I can't solve.
Currently I'm working on the party window that allows to select a member when using an item/skill, nothing special.
The window automatically divides its height into numbers of items that can be displayed, in my case it can display 6 items:
#--------------------------------------------------------------------------
# * Get Item Height
#--------------------------------------------------------------------------
def item_height
(height - standard_padding * 2) / 6
end
And everything works perfectly:
That's how the window was designed - divide its height into number of items and set the size of each item based on the result.
BUT! Now the problem appears. What I want to do is to decrease the size to make them overlapping each other by 2 pixels, to make them look better and simply use less space:
And yup, since the window has lower height, it automatically gives lower size for each item, which results in stuff being cut off even if there IS space available, which is kinda stupid.
I was trying changing stuff around ~ item rects and such, but when it worked, then other things were breaking.
I guess it just need some accurate adjustments in some places, but I can't get it to work, most likely I'm just overlooking something.
~ Aaaaand windows using a superclass, that use a superclass, that use a superclass, thus stuff being all over the place doesn't help me.
Thank you! ~
Currently I'm working on the party window that allows to select a member when using an item/skill, nothing special.
The window automatically divides its height into numbers of items that can be displayed, in my case it can display 6 items:
#--------------------------------------------------------------------------
# * Get Item Height
#--------------------------------------------------------------------------
def item_height
(height - standard_padding * 2) / 6
end
And everything works perfectly:
That's how the window was designed - divide its height into number of items and set the size of each item based on the result.
BUT! Now the problem appears. What I want to do is to decrease the size to make them overlapping each other by 2 pixels, to make them look better and simply use less space:
And yup, since the window has lower height, it automatically gives lower size for each item, which results in stuff being cut off even if there IS space available, which is kinda stupid.
I was trying changing stuff around ~ item rects and such, but when it worked, then other things were breaking.
I guess it just need some accurate adjustments in some places, but I can't get it to work, most likely I'm just overlooking something.
~ Aaaaand windows using a superclass, that use a superclass, that use a superclass, thus stuff being all over the place doesn't help me.
Thank you! ~
Last edited by a moderator:


