Custom inventory GUI

Started by Rik_Vargard, Wed 07/04/2004 21:19:33

Previous topic - Next topic

Rik_Vargard

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!! ;)

Scorpiorus

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
}

Rik_Vargard

Wonderfull! That's it!

Thx a lot!! :)

SMF spam blocked by CleanTalk