mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-16 00:19:50 -05:00
Retoring next level highlight arrow for players who are very new when they click off a selected level.
This commit is contained in:
parent
9be8c55d6f
commit
a66e1c5389
1 changed files with 3 additions and 0 deletions
|
@ -393,6 +393,9 @@ module.exports = class CampaignView extends RootView
|
|||
|
||||
onClickMap: (e) ->
|
||||
@$levelInfo?.hide()
|
||||
if @sessions.models.length < 3
|
||||
# Restore the next level higlight for very new players who might otherwise get lost.
|
||||
@highlightElement '.level.next', delay: 500, duration: 60000, rotation: 0, sides: ['top']
|
||||
|
||||
onClickLevel: (e) ->
|
||||
e.preventDefault()
|
||||
|
|
Loading…
Reference in a new issue