Custom Inventory

Started by , Wed 17/12/2003 02:03:33

Previous topic - Next topic

charliehule

I replaced all the buttons on the default inventory GUI with my own, that I drew, as well as the background image. But in the game, the old one's still coming up. I'm an absolute newbie...how can I fix this problem?
Thanks,
Charlie

Gilbert

If you're using the default internal Sierra inventory GUI, it's different from that customizable GUI, so the button graphics should be imported OVER the original button sprites in sprite manager to take effect.

charliehule

So how do I chanwge it so that I'm using the customizable one?

Gilbert

If you didn't change much of the original script, select:

Script --> Edit Global Script...


Find the function show_inventory_window () line, and look a few lines lower, there should be a line:

InventoryScreen();

Comment this line:

//InventoryScreen();

Look further down, there should be a part mentioning custom inv. GUI enclosed by two lines "/*" and "*/":

/*  
 // ** 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 the two "/*" and "*/"' lines :

 // ** 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);

Everything should work now.

SMF spam blocked by CleanTalk