Inventory Gui Background Image

Started by Ghostlady, Thu 21/06/2007 03:02:15

Previous topic - Next topic

Ghostlady

How do I change the inventory gui image (grey box) to use a custom image?  When I try to change the background image nothing happens.  It stays at the grey box.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

GarageGothic

I assume you mean the inventory gui in the default game template? If so:
The grey box is the background color of the GUI itself, not an image. You can change this to any other color, or put a background image using a sprite with the same size as the GUI. I don't know why this isn't working for you.
If you want transparent areas of the GUI (and have transparent areas in the background sprite), set the background color to 0. You can do the same to the border color. If you do this, labels and buttons on the GUI can't have antialiased text however.

Ashen

Also, make sure you're actually using the Inventory GUI, not the hard-coded version (which you can't change). Check wherever you're turning the Inventory on (possibly just show_inventory_window()) and make sure it isn't calling InventoryScreen(). I think later versions do this by default, but it could still be worth checking.
I know what you're thinking ... Don't think that.

Ghostlady

Okay, I feel really stupid.  I imported the background over the blue cup sprite by accident.  When I imported it to a different slot, it worked.  What is with the first slot that makes it invisible? 
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Khris

There are occasions when having a transparent sprite is quite handy. Although it really isn't needed once one has learned how to use the script language.

E.g. one could make a character become invisible without scripting by changing its view to one that has the first frames of its loops set to slot 0.

Ghostlady

My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

SMF spam blocked by CleanTalk