Item In Menu

Started by G_G, January 19, 2009, 02:45:33 am

Previous topic - Next topic

G_G

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.

If you can just make the Items Window work in the Main Menu then I can do the rest of the coding.

Fantasist

January 19, 2009, 07:27:27 am #1 Last Edit: January 19, 2009, 07:29:09 am by Fantasist
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.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




G_G

Thanks Fantasist!
*powers up*

Works like a charm now!