ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Wed Dec 13, 2017 10:49 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Mar 24, 2013 11:33 pm 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
Would be handy to have an ability to check if the game is in focus. Real-time modules could then auto-pause when unfocused, and ones with weird real-time sound engines could stop playing sound.

_________________
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes


Top
 Profile  
 
PostPosted: Thu Mar 28, 2013 9:37 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10144
Location: Angolwen
Done, you can now superload the Game:idling(focus) method.
Focus will be true if gaining focus, false if loosing it.
The default idling method also defines a game.has_os_focus field to remember the state

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group