Problem with semi-Transparent GUI

Started by , Sun 27/08/2006 16:47:47

Previous topic - Next topic

Fahd

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  :)

Ashen

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):

Code: ags

if (GUI.GetAtScreenXY (mouse.x, mouse.y) != gUpper) {
  gUpper.Visible = false;
  gLower.Visible = false;
}
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk