2014-09-17 21:56:08 -04:00
|
|
|
.map
|
2014-10-02 17:05:18 -04:00
|
|
|
.gradient.horizontal-gradient.top-gradient
|
|
|
|
.gradient.vertical-gradient.right-gradient
|
|
|
|
.gradient.horizontal-gradient.bottom-gradient
|
|
|
|
.gradient.vertical-gradient.left-gradient
|
2014-11-19 19:36:06 -05:00
|
|
|
img.map-background(src="/images/pages/play/map_" + mapType + ".jpg", alt="", draggable="false")
|
2014-09-17 21:56:08 -04:00
|
|
|
|
2014-10-22 18:42:51 -04:00
|
|
|
- var seenNext = nextLevel;
|
2014-10-29 12:47:00 -04:00
|
|
|
each level in campaign.levels
|
2014-11-22 23:56:46 -05:00
|
|
|
if !level.hidden
|
2014-11-20 22:56:44 -05:00
|
|
|
- var next = level.id == nextLevel || (!seenNext && levelStatusMap[level.id] != "complete" && !level.locked && !level.disabled && (!level.practice || me.getBranchingGroup() == 'all-practice'));
|
|
|
|
- seenNext = seenNext || next;
|
2014-12-01 01:11:36 -05:00
|
|
|
//- A/B Test hiding locked levels
|
|
|
|
if !hideLockedLevels || !level.locked
|
|
|
|
div(style="left: #{level.x}%; bottom: #{level.y}%; background-color: #{level.color}", class="level" + (next ? " next" : "") + (level.disabled ? " disabled" : "") + (level.locked ? " locked" : "") + " " + levelStatusMap[level.id] || "", data-level-id=level.id, title=level.name + (level.disabled ? ' (Coming Soon to Adventurers)' : ''))
|
|
|
|
a(href=level.type == 'hero' ? '#' : level.disabled ? "/play" : "/play/#{level.levelPath || 'level'}/#{level.id}", disabled=level.disabled, data-level-id=level.id, data-level-path=level.levelPath || 'level', data-level-name=level.name)
|
|
|
|
div(style="left: #{level.x}%; bottom: #{level.y}%", class="level-shadow" + (next ? " next" : "") + " " + levelStatusMap[level.id] || "")
|
|
|
|
.level-info-container(data-level-id=level.id, data-level-path=level.levelPath || 'level', data-level-name=level.name)
|
|
|
|
div(class="level-info " + (levelStatusMap[level.id] || ""))
|
|
|
|
h3= level.name + (level.disabled ? " (Coming soon!)" : (level.locked ? " (Locked)" : ""))
|
|
|
|
.level-description= level.description
|
|
|
|
if level.disabled
|
|
|
|
p
|
|
|
|
span.spr(data-i18n="play.awaiting_levels_adventurer_prefix") We release five levels per week.
|
|
|
|
a.spr(href="/contribute/adventurer")
|
|
|
|
strong(data-i18n="play.awaiting_levels_adventurer") Sign up as an Adventurer
|
|
|
|
span.spl(data-i18n="play.awaiting_levels_adventurer_suffix") to be the first to play new levels.
|
|
|
|
|
|
|
|
- var playCount = levelPlayCountMap[level.id]
|
|
|
|
if playCount && playCount.sessions > 20
|
|
|
|
div
|
|
|
|
span.spr #{playCount.sessions}
|
|
|
|
span(data-i18n="play.players") players
|
|
|
|
span.spr , #{Math.round(playCount.playtime / 3600)}
|
|
|
|
span(data-i18n="play.hours_played") hours played
|
|
|
|
.campaign-label(style="color: #{campaign.color}")= campaign.name
|
|
|
|
if isIPadApp && !level.disabled && !level.locked
|
|
|
|
button.btn.btn-success.btn-lg.start-level(data-i18n="common.play") Play
|
2014-11-12 19:26:30 -05:00
|
|
|
if mapType === 'dungeon' && forestIsAvailable
|
|
|
|
a#forest-link.glyphicon.glyphicon-share-alt.campaign-switch(href="/play/forest", data-i18n="[title]play.campaign_forest")
|
|
|
|
if mapType === 'forest'
|
|
|
|
a#dungeon-link.glyphicon.glyphicon-share-alt.campaign-switch(href="/play/dungeon", data-i18n="[title]play.campaign_dungeon")
|
2014-09-17 21:56:08 -04:00
|
|
|
|
2014-09-20 01:15:58 -04:00
|
|
|
.game-controls.header-font
|
2014-11-04 10:52:23 -05:00
|
|
|
button.btn.items(data-toggle='coco-modal', data-target='play/modal/PlayItemsModal', data-i18n="[title]play.items")
|
2014-11-05 22:07:06 -05:00
|
|
|
button.btn.heroes(data-toggle='coco-modal', data-target='play/modal/PlayHeroesModal', data-i18n="[title]play.heroes")
|
2014-11-19 17:55:01 -05:00
|
|
|
button.btn.achievements(data-toggle='coco-modal', data-target='play/modal/PlayAchievementsModal', data-i18n="[title]play.achievements")
|
2014-11-21 17:55:04 -05:00
|
|
|
if me.get('anonymous') === false || me.get('iosIdentifierForVendor') || isIPadApp
|
2014-11-12 12:40:55 -05:00
|
|
|
button.btn.gems(data-toggle='coco-modal', data-target='play/modal/BuyGemsModal', data-i18n="[title]play.buy_gems")
|
2014-11-12 17:25:34 -05:00
|
|
|
if me.isAdmin()
|
2014-09-25 18:58:25 -04:00
|
|
|
button.btn.account(data-toggle='coco-modal', data-target='play/modal/PlayAccountModal', data-i18n="[title]play.account")
|
|
|
|
button.btn.settings(data-toggle='coco-modal', data-target='play/modal/PlaySettingsModal', data-i18n="[title]play.settings")
|
2014-11-17 18:15:02 -05:00
|
|
|
else if me.get('anonymous', true)
|
2014-11-29 11:54:08 -05:00
|
|
|
button.btn.settings(data-toggle='coco-modal', data-target='core/AuthModal', data-i18n="[title]play.settings")
|
2014-11-05 22:23:45 -05:00
|
|
|
// Don't show these things, they are bad and take us out of the game. Just wait until the new ones work.
|
|
|
|
//else
|
|
|
|
// a.btn.achievements(href="/user/#{me.getSlugOrID()}/stats", data-i18n="[title]play.achievements")
|
|
|
|
// a.btn.account(href="/user/#{me.getSlugOrID()}", data-i18n="[title]play.account")
|
|
|
|
// a.btn.settings(href='/account', data-i18n="[title]play.settings")
|
2014-10-29 12:47:00 -04:00
|
|
|
|
2014-09-25 18:58:25 -04:00
|
|
|
.user-status.header-font
|
2014-09-26 05:28:54 -04:00
|
|
|
span.gem.gem-20
|
2014-11-12 13:22:56 -05:00
|
|
|
span#gems-count.spr= me.gems()
|
2014-11-11 01:07:55 -05:00
|
|
|
span.spl.spr(data-i18n="general.player_level")
|
|
|
|
span.spr= me.level()
|
2014-09-25 18:58:25 -04:00
|
|
|
if me.get('anonymous')
|
|
|
|
span.spr(data-i18n="play.anonymous_player") Anonymous Player
|
2014-11-29 11:54:08 -05:00
|
|
|
button.btn.btn-default.btn-flat.btn-sm(data-toggle='coco-modal', data-target='core/AuthModal', data-i18n="login.log_in")
|
2014-09-25 18:58:25 -04:00
|
|
|
else
|
|
|
|
span.spr= me.get('name')
|
|
|
|
button#logout-button.btn.btn-default.btn-flat.btn-sm(data-i18n="login.log_out") Log Out
|
2014-10-06 13:17:40 -04:00
|
|
|
|
|
|
|
button.btn.btn-lg.btn-inverse#volume-button(title="Adjust volume")
|
|
|
|
.glyphicon.glyphicon-volume-off
|
|
|
|
.glyphicon.glyphicon-volume-down
|
|
|
|
.glyphicon.glyphicon-volume-up
|