Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: G_G on January 19, 2009, 02:45:33 am

Title: Item In Menu
Post by: G_G on January 19, 2009, 02:45:33 am
Okay I've been experimenting with this quite a bit.
I can actually get the Item Window to appear in the main menu.

Okay let me back up. I want a menu system or at least the coding so it shows the Item window in the Main Menu. I only want the items to go straight down and not sidy by side and down like the regular item.

I did get the item window to appear and I also got it to where I click on items it makes the other windows not active and the item window active. My problem is when I lowerd the width the items were scrunched up in a way.

Here's the layout.
(http://i307.photobucket.com/albums/nn318/bahumat27/retew.png)
If you can just make the Items Window work in the Main Menu then I can do the rest of the coding.
Title: Re: Item In Menu
Post by: Fantasist on January 19, 2009, 07:27:27 am
My advise is observe the methods draw_item and update_cursor_rect. You'll have to change the @column_max to 1 in def initialize. The cursor still scrolls sideways, for that go to update_curssor_rect and look for for something like this:

x = @index % 2 * width
y = @index / 2 * something


change the 2s to @column_max after you set it to 1.

Hope it helps.
Title: Re: Item In Menu
Post by: G_G on January 19, 2009, 01:16:02 pm
Thanks Fantasist!
*powers up*

Works like a charm now!