Problems with altering the inventory GUI

Started by Scoville, Thu 12/02/2004 05:51:12

Previous topic - Next topic

Scoville

Okay, so I've made several changes to the STATUS and ICONBAR GUI's, and those have all worked. But any changes I make to the default INVENTORY GUI (such as changing the look and select buttons' pictures or altering the background or foreground color) don't do anything. When I run my game the inventory screen looks the same as always. This wouldn't be too much of a problem, but I'd like the icons in the inventory screen to match those of the iconbar, and worse, the background for the inventory is black, which makes some of my objects incredibly hard to see.

Any idea what I'm doing wrong?

Gilbert

Probably because you're modifying the inventory GUI in the GUI tab, but your game is still using the internal Sierra one of the engine (with which you can't change much apart from changing the button graphics, etc.).

To use that customize one shown in the GUI tab, just edit the global script, find the
function show_inventory_window () {...

line, below that, there's a line like:
InventoryScreen();

Comment out that line:
//  InventoryScreen();

and then remove the "/*" and "*/" in the code block below:

/*  <--- remove this
 // ** 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 this

groza528

If you look at the global scipt, you will see that there are two inventory GUIs.  One is the default and you can't change it.  The other one is the one that you can edit under GUIs.  The script is set, by default, to use the default inventory (big surprise.)

In the script, find the spot where you open the inventory and change InventoryScreen() to GUIOn(INVENTORY).


OK, now my turn to ask a question on the same subject :)
First of all, I used the ctrl-s from the debug mode to give myself all the inventory items, and the pictures overlap.  That didn't happen in the default inventory, just my altered one.  Any thoughts?
Secondly, you said something about the screen being black.  In my new inventory GUI the inset is the same colour as the background.  Is there any way to change that?

Scoville

Thanks! I tried what you suggested, and it fixed everything.

As for your problem, all I can think of is that you might have shrunk the parameters of the window that actually displays the items to the point where it was smaller than a single item.

I had the inset as black in the default inventory screen. I too can't change the custom one.  Sorry.

SMF spam blocked by CleanTalk