Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 27/08/2006 16:47:47

Title: Problem with semi-Transparent GUI
Post by: on Sun 27/08/2006 16:47:47
Hi,

Ok here is another problem i have just faced :

- I wanted to make a custom GUI for the Inventory. You know you just move your cursor to the screen top and the inventory appears. Ok no problem with this. Then I wanted to have the items on a semi-transparent background. I just used the tip described in the BFaq. It worked nice, but there is a problem. When I get the cursor out of the inventory it doesn't disappear :/ I guess that's because i use two GUIs which have exactly the same dimensions so when i move the cursor out of the GUI, actually it's the upper GUI which disappears.

Is there another way to make semi-transparent GUI ? or a way to make both of the two GUIs disappear when i move my cursor out of them ?

Thanks  :)
Title: Re: Problem with semi-Transparent GUI
Post by: Ashen on Mon 28/08/2006 12:24:27
How are you currently making the GUI disapear when you move the mouse off? You should just be able to add the other GUI to that bit of code, e.g. (pseudocode):


if (GUI.GetAtScreenXY (mouse.x, mouse.y) != gUpper) {
  gUpper.Visible = false;
  gLower.Visible = false;
}