Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Not sure if this is a bug or problem but, about MouseEntry/MouseLeave  (Read 3097 times)

0 Members and 1 Guest are viewing this topic.

Uhfgood

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 117
  • No pain, no game!
    • View Profile
    • Indie Flux

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.
Logged
--------------------------------------------
Keith Weatherby II
uhfgood -AT- frontier -DOT- com
Games Afoot Software
Indie Flux - Previews, Reviews, News and more!
--------------------------------------------

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Not sure if this is a bug or problem but, about MouseEntry/MouseLeave
« Reply #1 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).
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.095 seconds with 18 queries.