mouse out inventory off

Started by Sam., Tue 29/06/2004 15:15:44

Previous topic - Next topic

Sam.

this is a mix of a basic and advanced scripting thing. I have an Inventory windo that comes up right how i want it to but i want it to go off on mouse out. To clarify, When i move my mouse out of the inventory window, i ant it to ckose. what script would I need to do this, (and heres the basic part) exactly where in the global script would I need to put it?
Bye bye thankyou I love you.

Proskrito

maybe in repeatedly execute? something like:

if (IsGUIOn(INVENTORY)==1 && GetGUIAt(mouse.x, mouse.y)!=INVENTORY)
GUIOff(INVENTORY)

Radiant

Yes, except that rep_ex doesn't get called if the inventory window is pop-up modal. So make sure it isn't.


Sam.

that works perfectly, thanks very much
Bye bye thankyou I love you.

SMF spam blocked by CleanTalk