Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 27/08/2004 04:37:31

Title: A Stubborn Inventory Window
Post by: on Fri 27/08/2004 04:37:31
I have no idea what's happening here. I go into the inventory GUI, and all I do is substitute graphics and move things around. This is how it looks in the GUI editor.

(http://img.photobucket.com/albums/v217/RXmile/buh.jpg)

The only thing that's really new is the inventory box itself. I had to redraw that to fit the background image. Everything else is the original buttons, only with new graphics applied to them. I figured this should work. However, in game, it looks like this:

(http://img.photobucket.com/albums/v217/RXmile/buh2.jpg)

All the default images are back! It's like I never changed anything at all. Does anyone know what's going on here? Any help is greatly appreciated.

--OftenK
Title: Re: A Stubborn Inventory Window
Post by: Gilbert on Fri 27/08/2004 05:02:24
You have to modify the script a bit for it to use a custom inventory GUI. Here is how:

1. Press ctrl-G to edit the global script, find the function:

function show_inventory_window () { blah bla

2. Comment the line InventoryScreen();, like this:
//  InventoryScreen();

3. uncomment the next section of code, done by removing the /* and */ lines.

4. Save.