mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
fix #2032 - add button to show classes tour, mention 10pt/day mp regen
This commit is contained in:
parent
d03a996946
commit
41cc6ff3bc
3 changed files with 10 additions and 4 deletions
|
|
@ -22,8 +22,12 @@ habitrpg.controller('SettingsCtrl',
|
|||
|
||||
$scope.showTour = function(){
|
||||
User.set({'flags.showTour':true});
|
||||
Guide.initTour();
|
||||
$location.path('/tasks');
|
||||
$timeout(Guide.initTour);
|
||||
}
|
||||
|
||||
$scope.showClassesTour = function(){
|
||||
Guide.classesTour();
|
||||
}
|
||||
|
||||
$scope.showBailey = function(){
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ angular.module('guideServices', []).
|
|||
}, {
|
||||
element: ".meter.mana",
|
||||
title: "Spells",
|
||||
content: "You can now unlock class-specific spells. You'll see your first at level 6."
|
||||
content: "You can now unlock class-specific spells. You'll see your first at level 6. Your mana replenishes 10 points per day."
|
||||
}, {
|
||||
orphan: true,
|
||||
title: "Read More",
|
||||
|
|
|
|||
|
|
@ -43,8 +43,10 @@ script(type='text/ng-template', id='partials/options.settings.settings.html')
|
|||
button.btn(ng-click='showBailey()', popover-trigger='mouseenter', popover-placement='right', popover='Bring Bailey the Town Crier out of hiding so you can review past news.') Show Bailey
|
||||
br
|
||||
button.btn(ng-click='modals.restore = true', popover-trigger='mouseenter', popover-placement='right', popover='Manually change values like Health, Level, and Gold.') Fix Character Values
|
||||
br
|
||||
button.btn(ng-click='user.ops.changeClass({})', ng-if='user.preferences.disableClasses==true' popover-trigger='mouseenter', popover-placement='right', popover="You opted out of the class system initially. Would you like now to opt-in?") Enable Class System
|
||||
div(ng-if='user.preferences.disableClasses==true')
|
||||
button.btn(ng-click='user.ops.changeClass({})', popover-trigger='mouseenter', popover-placement='right', popover="You opted out of the class system initially. Would you like now to opt-in?") Enable Class System
|
||||
div(ng-if='!user.preferences.disableClasses')
|
||||
button.btn(ng-click='showClassesTour()', popover-trigger='mouseenter', popover-placement='right', popover="Show the tour for using the class system.") Show Classes Tour
|
||||
|
||||
div(ng-show='user.auth.local')
|
||||
hr
|
||||
|
|
|
|||
Loading…
Reference in a new issue