New account registration is temporarily disabled.

[RMVX ACE] STRANGE PROBLEM WITH WINDOW_BASE, PLEASE HELP!

Posts

Pages: 1
As the title suggests, I'm having a really strange problem with the Window_Base script. I know for a fact that Window_Base is the sole cause of the issue, because I was able to recreate the problem in a completely new, untouched project after copying over my project's version of Window_Base.

What I mean by "my project's version of Window_Base" is that I've altered a few X and Y values to better suit how I want my game's menus to look. And therein lies the problem. You'll see what I mean.

I was able to isolate the exact line of code causing the problem.

#--------------------------------------------------------------------------
# * Draw Item Name
# enabled : Enabled flag. When false, draw semi-transparently.
#--------------------------------------------------------------------------
def draw_item_name(item, x, y, enabled = true, width = 172)
return unless item
draw_icon(item.icon_index, x, y, enabled)
change_color(normal_color, enabled)
draw_text(x + 24, y, width, line_height, item.name)

Specifically, I edited the "draw_text" line to (x + 40, y - 6). I did this because it aligns the text in my Command Menu exactly the way I want it. It looks like this:

http://i.imgur.com/JoyyLNY.png

However, in changing the draw_text line to (x + 40, y - 6), it ends up doing this to my Item List:

http://i.imgur.com/jpaS6p8.png

It's 20 pixels too far to the right, and 6 pixels too high. So, when I try changing draw_text to correct the Item List, it ends up doing this to my Command Menu:

http://i.imgur.com/8aPHtJh.png

It's like some kind of tug of war. Draw_text's values accounts for both menus, and correcting one means ruining the other.

Perhaps someone knows a way to change the X Y alignment of one of these menus while leaving the other unaltered, possibly through editing Window_Command and Window_ItemList individually, instead of Window_Base.

I should probably mention that I'm using Luna Engine!

If I left any useful information out, just ask! Anyways, thanks for hearing me out!!
SunflowerGames
The most beautiful user on RMN!
13323

Put images in Locker, then easily place them in posts, they are visible immediately.

You should have put the Luna Engine thing at the top. Before it sounded like you were just messing around with the engine, but using a specific script is different.

Edit:

Just wondering about the draw item icon thing, since none of your pictures show icons. Try disabling that. It's something to try at least.

Edit / Edit:

Also noticed that with items you have x 1, which makes the name of the thing actually bigger.

Also check for anything that mentions padding.

Pages: 1