Hello!
I need in a little advice. The trouble is in playing sound, when mouse pointer is become on button (or, equally, when WME automatically use back_hover image for button).
I didn't find any window events in documentation, so I'm thinking about solution in entities now, i.e.
var lst=NULL;
while(TRUE){
var obj=Game.ActiveObject;
if(obj!=lst){
if(obj.Caption=="button")
Game.PlaySound("sounds\menu\button_on.wav");
else Game.PlaySound("sounds\menu\button_off.wav");
lst=obj;
}
Sleep(AMBIENT_LAG);
}
But what about window events? Or any other ideas?