mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Don't encourage skip (esc) when in full-screen mode where esc exits full-screen mode
This commit is contained in:
parent
97043c4a25
commit
252b9a66e9
1 changed files with 4 additions and 1 deletions
|
@ -68,13 +68,16 @@ module.exports = class LevelDialogueView extends CocoView
|
|||
else
|
||||
s = $.i18n.t('play_level.hud_continue_short', defaultValue: 'Continue')
|
||||
sk = $.i18n.t('play_level.skip_tutorial', defaultValue: 'skip: esc')
|
||||
if not @escapePressed
|
||||
if not @escapePressed and not @isFullScreen()
|
||||
group.append('<span class="hud-hint">' + sk + '</span>')
|
||||
group.append($('<button class="btn btn-small banner with-dot">' + s + ' <div class="dot"></div></button>'))
|
||||
@lastResponses = null
|
||||
@animator = new DialogueAnimator(message, @bubble)
|
||||
@messageInterval = setInterval(@addMoreMessage, 1000 / 30) # 30 FPS
|
||||
|
||||
isFullScreen: ->
|
||||
document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen
|
||||
|
||||
addMoreMessage: =>
|
||||
if @animator.done()
|
||||
clearInterval(@messageInterval)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue