diff --git a/app/locale/en.coffee b/app/locale/en.coffee index a03ad5e7c..b0527c58c 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -225,6 +225,20 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr editor_config_indentguides_description: "Displays vertical lines to see indentation better." editor_config_behaviors_label: "Smart Behaviors" editor_config_behaviors_description: "Autocompletes brackets, braces, and quotes." + loading_ready: "Ready!" + tip_insert_positions: "Shift+Click a point on the map to insert it into the spell editor." + tip_toggle_play: "Toggle play/paused with Ctrl+P." + tip_scrub_shortcut: "Ctrl+[ and Ctrl+] rewind and fast-forward." + tip_guide_exists: "Click the guide at the top of the page for useful info." + tip_open_source: "CodeCombat is 100% open source!" + tip_beta_launch: "CodeCombat launched its beta in October, 2013." + tip_js_beginning: "JavaScript is just the beginning." + tip_autocast_setting: "Adjust autocast settings by clicking the gear on the cast button." + tip_baby_coders: "In the future, even babies will be Archmages." + tip_morale_improves: "Loading will continue until morale improves." + tip_all_species: "We believe in equal opportunities to learn programming for all species." + tip_reticulating: "Reticulating spines." + tip_harry: "Yer a Wizard, " admin: av_title: "Admin Views" diff --git a/app/templates/home.jade b/app/templates/home.jade index 0d7c5f0fd..ce17e1b5b 100644 --- a/app/templates/home.jade +++ b/app/templates/home.jade @@ -5,7 +5,7 @@ block content h1#site-slogan(data-i18n="home.slogan") Learn to Code JavaScript by Playing a Game #trailer-wrapper - + img(src="/images/pages/home/video_border.png") hr diff --git a/app/templates/kinds/search.jade b/app/templates/kinds/search.jade index 4102cdda6..b7babdc95 100644 --- a/app/templates/kinds/search.jade +++ b/app/templates/kinds/search.jade @@ -1,4 +1,5 @@ extends /templates/base + block content div ol.breadcrumb diff --git a/app/templates/multiplayer_launch_modal.jade b/app/templates/multiplayer_launch_modal.jade index 53e3a27d9..a20295b05 100644 --- a/app/templates/multiplayer_launch_modal.jade +++ b/app/templates/multiplayer_launch_modal.jade @@ -7,7 +7,7 @@ block modal-header-content block modal-body-content .multiplayer-launch-wrapper - + img(src="/images/pages/home/video_border.png") h3(data-i18n="multiplayer_launch.to_battle") To Battle, Developers! diff --git a/app/views/play/level/level_loading_view.coffee b/app/views/play/level/level_loading_view.coffee index c50107b6d..3ac98738d 100644 --- a/app/views/play/level/level_loading_view.coffee +++ b/app/views/play/level/level_loading_view.coffee @@ -8,7 +8,7 @@ module.exports = class LevelLoadingView extends View subscriptions: 'level-loader:progress-changed': 'onLevelLoaderProgressChanged' - + afterRender: -> @$el.find('.tip.rare').remove() if _.random(1, 10) < 9 tips = @$el.find('.tip').addClass('to-remove') @@ -22,11 +22,12 @@ module.exports = class LevelLoadingView extends View @updateProgressBar() updateProgressBar: -> - #@text.text = "BUILDING" if @progress is 1 @$el.find('.progress-bar').css('width', (100 * @progress) + '%') showReady: -> - @$el.find('h2').addClass('ready').text 'Ready!' + ready = $.i18n.t('play_level.loading_ready', defaultValue: 'Ready!') + @$el.find('#tip-wrapper .tip').addClass('ready').text ready + Backbone.Mediator.publish 'play-sound', trigger: 'loading_ready', volume: 0.75 unveil: -> _.delay @reallyUnveil, 1000 diff --git a/app/views/play/level_view.coffee b/app/views/play/level_view.coffee index 6f05b204d..68bca74d8 100644 --- a/app/views/play/level_view.coffee +++ b/app/views/play/level_view.coffee @@ -149,8 +149,8 @@ module.exports = class PlayLevelView extends View onLevelLoaderLoaded: -> return unless @levelLoader.progress() is 1 # double check, since closing the guide may trigger this early + @loadingView.showReady() if window.currentModal and not window.currentModal.destroyed - @loadingView.showReady() return Backbone.Mediator.subscribeOnce 'modal-closed', @onLevelLoaderLoaded, @ # Save latest level played in local storage