Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rik_Vargard on Wed 07/04/2004 21:19:33

Title: Custom inventory GUI
Post by: Rik_Vargard on Wed 07/04/2004 21:19:33
I changed the grahics of the INVENTORY GUI (background, buttons), but nothing happens in-game. :-\ The game always shows the default one.
I can change all other GUIs but not this one... ???

Any suggestions?
Thx!! ;)
Title: Re:Custom inventory GUI
Post by: Scorpiorus on Wed 07/04/2004 21:54:04
Open main global script, find the following lines and make some changes:

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(); <-----comment this out
/*  <----- remove it
 // ** 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);
*/  <----- remove it
}
Title: Re:Custom inventory GUI
Post by: Rik_Vargard on Wed 07/04/2004 22:37:41
Wonderfull! That's it!

Thx a lot!! :)