Changing the Standard Inventory?!

Started by PureGhostGR, Mon 13/10/2003 09:06:05

Previous topic - Next topic

PureGhostGR

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.

Ishmael

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.
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.

PureGhostGR

Thanks TK, I'll check this out now.

SMF spam blocked by CleanTalk