A nice "one-off" sort of feature would be to have the client transmit a message to the server whenever the client task-switches away from Dream Seeker, if client/LoseFocus() is defined.
The client would also transmit a message to the server when Dream Seeker regained focus, which would call the client/RegainFocus() proc.
Like the various MouseABC() procs, these messages would only be generated if the server actually needed them.
BYOND's integrated popup browser windows would not cause a loss of focus, although external links (popping up IE or Firefox) would.
I think this would be very useful for dedicated roleplaying games (mine in particular ;-)) where players may have switched away from the application for a moment or two and forgotten about their character! The server could then make the character snooze or something so people don't stare at a blank character and wonder why they're just blank. client.inactivity already allows us to remember the last time the player sent a message, so it might be nice to allow us to remember whether the player is actually looking at the window or not.
ID:134278
Dec 11 2006, 11:41 am (Edited on Dec 16 2006, 9:58 pm)
|
|
This could be a nice convenience in some cases, and perhaps should be added some day. However some other things (like key presses) may be of higher priority.