Browsing through an Inventory

Started by Bernie, Tue 16/09/2003 13:34:14

Previous topic - Next topic

Bernie

I want to browse through my custom inventory window with two buttons (left/right), but couldn't find an command that would perform such an action... so, how can I do this?

Thanks :D

Ishmael

The lucasarts GUI has these scripts...

Code: ags
    if ((button == 10) & (game.top_inv_item < game.num_inv_items - 7))
      game.top_inv_item = game.top_inv_item + 4;
    if ((button == 9) & (game.top_inv_item > 0))
      game.top_inv_item = game.top_inv_item - 4;
    }


Put this to the interface_click, under the if (interface==) of the inv gui, and set the button numbers and scrolling values to match you inventory's size.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.


SMF spam blocked by CleanTalk