Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PureGhostGR on Mon 13/10/2003 09:06:05

Title: Changing the Standard Inventory?!
Post by: PureGhostGR on Mon 13/10/2003 09:06:05
Greetings,

I am new to AGS and  after reading through the manuals and checking a few sites, I've reached a brick wall.

By using the AGS panels I changed the standard inventory look. (background color, icons and an image).

Then after saving the game and running a tryout, the inventory screen in-game remains the same (standard sierra look)..

The manual mentions something about not being able to change the custom inventory, but I assumed it was refering to the "functions" instead of the cosmetic issues.

I've read somewhere that I can try uploading my icons over the custom ones.. but should it work.. it would still leave the matter of adding a background image.

Is this a bug? The AGS editor displays the changes correctly, but the game does not display them at all.. I am lost.

Any help will be more that welcome.

Thanks.
Title: Re:Changing the Standard Inventory?!
Post by: Ishmael on Mon 13/10/2003 09:25:29
You need to go the the Global Script, and find a function called show_inventory_screen()



function show_inventory_window () {
 // This demonstrates both types of inventory window - the first part is how to
 // show the built-in inventory window, the second part uses the custom one.
 // Un-comment one section or the other below.
 
 // ** DEFAULT INVENTORY WINDOW
 InventoryScreen();
/*  
 // ** CUSTOM INVENTORY WINDOW
 GUIOn (INVENTORY);  
 // switch to the Use cursor (to select items with)
 SetCursorMode (MODE_USE);
 // But, override the appearance to look like the arrow
 SetMouseCursor (6);
*/
}



There you see an uncommented part, (commented are the ones with // in front of them, and commented parts are the ones between /* and */) with the line

InventoryScreen();

in it. You need to comment this, and uncomment the other part



function show_inventory_window () {
 // This demonstrates both types of inventory window - the first part is how to
 // show the built-in inventory window, the second part uses the custom one.
 // Un-comment one section or the other below.
 
 // ** DEFAULT INVENTORY WINDOW
//  InventoryScreen();
/*
 // ** CUSTOM INVENTORY WINDOW
 GUIOn (INVENTORY);  
 // switch to the Use cursor (to select items with)
 SetCursorMode (MODE_USE);
 // But, override the appearance to look like the arrow
 SetMouseCursor (6);
*/
}



This should do it.
Title: Re:Changing the Standard Inventory?!
Post by: PureGhostGR on Mon 13/10/2003 13:19:46
Thanks TK, I'll check this out now.