how check menu?
if menu isn't opened
PHP Code:
if(self.login == 0 && xxxxxx)
{
self openMenu("caccount_login");
}
how check menu?
if menu isn't opened
PHP Code:
if(self.login == 0 && xxxxxx)
{
self openMenu("caccount_login");
}
You can't check that via script. You can only store in a variable, if you have opened a menu, and clear that if you have closed. But that's really time-consuming I think. In my mod I have stored if some important menus are opened, and ignored the others, there isn't a proper solution for this I think.
kung foo man (7th November 2013)
Here's some older thread of mine where I asked the exact same thing. Maybe it helps. But actually is the same content iCore already stated.
http://killtube.org/showthread.php?1...ific-menu-open
do a menuresponse onopen and one onclose.
Then figure out the rest yourself