From 5c1c17c8dd3bfb37de4cc61ef7f370b2c771a2cf Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Wed, 26 Feb 2014 17:52:08 -0800 Subject: [PATCH 1/2] Green Guide button for attention. --- app/templates/play/level/control_bar.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/play/level/control_bar.jade b/app/templates/play/level/control_bar.jade index 59d378bc8..0cdd24241 100644 --- a/app/templates/play/level/control_bar.jade +++ b/app/templates/play/level/control_bar.jade @@ -6,7 +6,7 @@ h4.home h4.title #{worldName} -button.btn.btn-xs.btn-inverse.banner#docs-button(title="Show level instructions", data-i18n="play_level.guide") Guide +button.btn.btn-xs.btn-success.banner#docs-button(title="Show level instructions", data-i18n="play_level.guide") Guide if ladderGame button.btn.btn-xs.btn-inverse.banner#multiplayer-button(title="Leaderboard", data-i18n="play_level.leaderboard") Leaderboard From 48122000ed8e7961458dae5377ae8c067014daee Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Wed, 26 Feb 2014 18:09:09 -0800 Subject: [PATCH 2/2] Gold shows up as an int in the HUD now. --- app/lib/LevelBus.coffee | 1 - app/views/play/level/hud_view.coffee | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/lib/LevelBus.coffee b/app/lib/LevelBus.coffee index 287110f98..18985716b 100644 --- a/app/lib/LevelBus.coffee +++ b/app/lib/LevelBus.coffee @@ -113,7 +113,6 @@ module.exports = class LevelBus extends Bus @changedSessionProperties.teamSpells = true @session.set({'teamSpells': @teamSpellMap}) @saveSession() - console.log spellTeam, me.team, e.spell.spellKey if spellTeam is me.team @onSpellChanged e # Save the new spell to the session, too. diff --git a/app/views/play/level/hud_view.coffee b/app/views/play/level/hud_view.coffee index 09059d20b..cc62fb047 100644 --- a/app/views/play/level/hud_view.coffee +++ b/app/views/play/level/hud_view.coffee @@ -270,7 +270,7 @@ module.exports = class HUDView extends View if prop is "rotation" return (val * 180 / Math.PI).toFixed(0) + "˚" if typeof val is 'number' - if Math.round(val) == val then return val.toFixed(0) # int + if Math.round(val) == val or prop is 'gold' then return val.toFixed(0) # int if -10 < val < 10 then return val.toFixed(2) if -100 < val < 100 then return val.toFixed(1) return val.toFixed(0)