Wintermute Engine Forum

Wintermute Engine => Bug reports => Not a bug => Topic started by: Uhfgood on February 23, 2008, 07:59:02 AM

Title: Not sure if this is a bug or problem but, about MouseEntry/MouseLeave
Post by: Uhfgood on February 23, 2008, 07:59:02 AM
I want to know if MouseEntry and MouseLeave are events with a window object?  The docs don't tell you if this is a lowlevel event that it uses.
Title: Re: Not sure if this is a bug or problem but, about MouseEntry/MouseLeave
Post by: metamorphium on February 23, 2008, 09:24:42 AM
actually components of Window are normal Active objects.

I've made myself a tooltips on hovering over window components which used similar logic to this simple example:

Code: [Select]
while(1)
{
if (Game.ActiveObject != null)
{
  var w = Game.ActiveObject;
  if (w.Name == "Button1") do_some_hover_code;
}

You can set this easily in loop attached to window for example or handle it in game_loop.script (game_daemon.script).