mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 01:10:04 +02:00
Issue #105 making objective more discoverable
This commit is contained in:
parent
3b8649c891
commit
31ad2a586b
9 changed files with 41 additions and 12 deletions
|
@ -393,7 +393,7 @@ exports.strings = {
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
'help-vague-level': {
|
||||
'__desc__': 'When you are in a level and you say help, its vague and you need to specify',
|
||||
'en_US': 'You are in a level, so multiple forms of help are available. Please select either "help level" or "help general"',
|
||||
'en_US': 'You are in a level, so multiple forms of help are available. Please select either "help level" to learn more about this lesson, "help general" for using Learn GitBranching, or "objective" to learn about how to solve the level.',
|
||||
'zh_CN': '您正在关卡中,这里有多种形式的帮助,请选择 "help level" (关卡帮助)或 "help general" (一般帮助)'
|
||||
},
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -88,9 +88,11 @@ var Level = Sandbox.extend({
|
|||
return;
|
||||
}
|
||||
|
||||
var dialog = _.clone(intl.getStartDialog(levelObj));
|
||||
debugger;
|
||||
console.log(intl.getStartDialog(levelObj));
|
||||
var dialog = $.extend({}, intl.getStartDialog(levelObj));
|
||||
// grab the last slide only
|
||||
dialog.childViews = dialog.childViews.splice(-1);
|
||||
dialog.childViews = dialog.childViews.slice(-1);
|
||||
new MultiView(_.extend(
|
||||
dialog,
|
||||
{ deferred: deferred }
|
||||
|
|
|
@ -704,6 +704,9 @@ var CommandsHelperBar = HelperBar.extend({
|
|||
}, {
|
||||
text: 'Undo',
|
||||
id: 'undo'
|
||||
}, {
|
||||
text: 'Objective',
|
||||
id: 'objectve'
|
||||
}, {
|
||||
text: 'Help',
|
||||
id: 'help'
|
||||
|
@ -718,6 +721,10 @@ var CommandsHelperBar = HelperBar.extend({
|
|||
HelperBar.prototype.fireCommand.apply(this, arguments);
|
||||
},
|
||||
|
||||
onObjectiveClick: function() {
|
||||
this.fireCommand('objective');
|
||||
},
|
||||
|
||||
onLevelsClick: function() {
|
||||
this.fireCommand('levels');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue