Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: PlushDez on September 10, 2007, 03:25:00 PM
-
Is it normal for WME to handle "LeftRelease" event on window only when window in SystemExclusive mode? If my window not in SystemExclusive mode "LeftRelease" event doesn't work :( ???
-
No, it's not normal. Can you post your script and/or more info?
-
It's not my script :) it's WME_Demo (1.7.003)
I only add this small code to game.script
and this one to mainmenu.script
Now I get "LF RELEASE ON WINDOW" message only when this window in SystemExclusive, when not I get "LF RELEASE ON GAME!"
-
Yup, because if a window runs in system exclusive mode, the game.script it suspended, so the window gets the event.
If you want the window to always receive the event, simply reroute it from game.script by adding something like this (to game.script):
on "LeftRelease"
{
if(ActObj !=
null) ActObj.
ApplyEvent("LeftRelease");
}
-
;)Thanx