add confirm hyper

lets the user know what hyper mode is, and confirms turning it on.
Updates .pot to match current source.
This commit is contained in:
Blake Grotewold
2015-12-22 16:41:10 -06:00
parent c66d484627
commit 9943c4c568
2 changed files with 935 additions and 954 deletions
+907 -952
View File
File diff suppressed because it is too large Load Diff
+28 -2
View File
@@ -148,7 +148,7 @@
$('<span>')
.addClass('hyper menuBtn')
.text(_('hyper.'))
.click(Engine.triggerHyperMode)
.click(Engine.confirmHyperMode)
.appendTo(menu);
$('<span>')
@@ -487,7 +487,33 @@
}
},
triggerHyperMode: function(){
confirmHyperMode: function(){
if (!Engine.options.doubleTime) {
Events.startEvent({
title: _('Go Hyper?'),
scenes: {
start: {
text: [_('turning hyper mode speeds up the game to x2 speed. do you want to do that?')],
buttons: {
'yes': {
text: _('yes'),
nextScene: 'end',
onChoose: Engine.triggerHyperMode
},
'no': {
text: _('no'),
nextScene: 'end'
}
}
}
}
});
} else {
Engine.triggerHyperMode();
}
},
triggerHyperMode: function() {
Engine.options.doubleTime = !Engine.options.doubleTime;
if(Engine.options.doubleTime)
$('.hyper').text(_('classic.'));