JackieChiles / Cinch

A web-based implementation of the Cinch card game.
MIT License
3 stars 0 forks source link

Give a more obvious indication when it's the user's turn to act #164

Closed JackieChiles closed 9 years ago

JackieChiles commented 9 years ago

This could involve some sort of blinking (<blink> tag is of course the preferred method). Duck noises, Twitter posts have also been suggested. Investigation into using USAF connections to initiate drone "encouragement" should also be done.

mgaree commented 9 years ago

Drone encouragement should be default in jQuery this year.

mgaree commented 9 years ago

Can you something to make the window/tab flash, like when you get a gChat message and gMail is not the active window?

JackieChiles commented 9 years ago

@PheonixKotori I've never done that before, and after a little research it seems that browsers that support the window/tab flash are just responding to a change in document.title, which is easy enough to implement. I'm also going to add some other visual indication in the hand area.

Is an audio cue still desired? If so, I'll consider that too, but playing audio when the window/tab is active seems like it could be obnoxious.

mgaree commented 9 years ago

I'm not in love with an audio cue anymore. It doesn't work consistently in Chrome with Gmail/Gchat and it's their own browser, so I'd not bother. In-game visual cuing and manipulating document.title will be swell.

On Mon, Nov 3, 2014 at 1:12 PM, JackieChiles notifications@github.com wrote:

@PheonixKotori https://github.com/PheonixKotori I've never done that before, and after a little research it seems that browsers that support the window/tab flash are just responding to a change in document.title, which is easy enough to implement. I'm also going to add some other visual indication in the hand area.

Is an audio cue still desired? If so, I'll consider that too, but playing audio when the window/tab is active seems like it could be obnoxious.

— Reply to this email directly or view it on GitHub https://github.com/JackieChiles/Cinch/issues/164#issuecomment-61549285.

JackieChiles commented 9 years ago

A note on notifications: they will only be displayed with the Cinch window/tab is not active. They are also not yet supported in some browsers (IE), but we've established that we're not overly concerned about supporting lesser browsers. Web Notifications are currently a W3C working draft, so they will likely be more fully supported ultimately.

I opted to not go the route of toggling the document.title to make the window/tab flash, because this is non-standard functionality and the code is a lot uglier.

Of course feedback is welcome, as always.