feat(tour): Iteration 5/29

This commit is contained in:
Sabe Jones
2015-05-29 14:56:01 -05:00
parent 6af7342693
commit 7a8046317d
4 changed files with 45 additions and 48 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -59,25 +59,25 @@
"tourEquipmentPage": "This is where your Equipment is stored! Your Battle Gear affects your stats. If you want to show different Equipment on your avatar without changing your stats, click \"Enable Costume.\"", "tourEquipmentPage": "This is where your Equipment is stored! Your Battle Gear affects your stats. If you want to show different Equipment on your avatar without changing your stats, click \"Enable Costume.\"",
"tourOkay": "Okay!", "tourOkay": "Okay!",
"tourAwesome": "Awesome!",
"tourSplendid": "Splendid!",
"tourNifty": "Nifty!",
"tourAvatar1": "<strong>Your Avatar</strong><ul><li>Your avatar lives at the top of the task dashboard.</li><li>Click on your avatar at any time to customize it!</li></ul>", "tourAvatar": "<strong>Customize Your Avatar</strong><ul><li>Your avatar represents you.</li><li>Customize now, or return later.</li><li>Your avatar starts plain until you've earned Equipment!</li></ul>",
"tourAvatar1Proceed": "Take me there!", "tourAvatarProceed": "Show me my tasks!",
"tourAvatar2": "<strong>Customize Avatar</strong><ul><li>This is the page for basic avatar customization.</li><li>You can buy Equipment for your avatar later, once you've earned Gold.</li></ul>", "tourToDosBrief": "<strong>To-Do List</strong><ul><li>Check off To-Dos to earn Gold & Experience!</li><li>To-Dos never make your avatar lose Health.</li></ul>",
"tourToDosBrief": "<strong>To-Do List</strong><ul><li>Check off To-Dos for Gold & Experience!</li><li>To-Dos never make your avatar lose Health</li></ul>", "tourDailiesBrief": "<strong>Daily Tasks</strong><ul><li>Dailies repeat every day.</li><li>You lose Health if you skip Dailies.</li></ul>",
"tourDailiesBrief": "<strong>Daily Tasks</strong><ul><li>Dailies repeat every day</li><li>You lose Health if you skip Dailies</li></ul>",
"tourDailiesProceed": "I'll be careful!", "tourDailiesProceed": "I'll be careful!",
"tourHabitsBrief": "<strong>Good & Bad Habits</strong><ul><li>Good Habits award Gold & Experience</li><li>Bad Habits make you lose Health</li></ul>", "tourHabitsBrief": "<strong>Good & Bad Habits</strong><ul><li>Good Habits award Gold & Experience.</li><li>Bad Habits make you lose Health.</li></ul>",
"tourHabitsProceed": "Makes sense!", "tourHabitsProceed": "Makes sense!",
"tourRewardsBrief": "<strong>Reward List</strong><ul><li>Spend your Gold here</li><li>Purchase Equipment for your avatar, or set custom Rewards</li></ul>", "tourRewardsBrief": "<strong>Reward List</strong><ul><li>Spend your hard-earned Gold here!</li><li>Purchase Equipment for your avatar, or set custom Rewards.</li></ul>",
"tourRewardsProceed": "Can't wait!", "tourRewardsProceed": "That's all!",
"tourQuestions": "<strong>More Questions?</strong><ul><li>If you get confused, click the <span class='glyphicon glyphicon-question-sign'></span> next to the headers.</li><li>Explore the tabs in the header to discover more features!</li></ul>",
"tourQuestionsProceed": "I will!",
"welcomeToHabit": "Welcome to HabitRPG, a game to improve your life!", "welcomeToHabit": "Welcome to HabitRPG, a game to improve your life!",
"welcome1": "Create and customize an in-game avatar to represent you.", "welcome1": "Create and customize an in-game avatar to represent you.",
"welcome2": "Your real-life tasks affect your avatar's Health (HP), Experience (XP), and Gold!", "welcome2": "Your real-life tasks affect your avatar's Health (HP), Experience (XP), and Gold!",
"welcome3": "Complete tasks to earn Experience (XP) and Gold, which unlock awesome features and rewards!", "welcome3": "Complete tasks to earn Experience (XP) and Gold, which unlock awesome features and rewards!",
"welcome4": "Avoid bad habits that drain Health (HP), or your avatar will die!", "welcome4": "Avoid bad habits that drain Health (HP), or your avatar will die!",
"welcome5": "Now Justin the Guide will teach you how to use your task dashboard...", "welcome5": "Now you'll customize your avatar and set up your tasks...",
"imReady": "I'm Ready!" "imReady": "I'm Ready!"
} }

View File

@@ -11,19 +11,12 @@ function($rootScope, User, $timeout, $state) {
var chapters = { var chapters = {
intro: [ intro: [
[ [
{
state: 'tasks',
element: ".main-herobox",
content: window.env.t('tourAvatar1'),
placement: "right",
proceed: window.env.t('tourAvatar1Proceed')
},
{ {
state: 'options.profile.avatar', state: 'options.profile.avatar',
element: '.tab-content.ng-scope', element: '.tab-content.ng-scope',
content: window.env.t('tourAvatar2'), content: window.env.t('tourAvatar'),
placement: "top", placement: "top",
proceed: window.env.t('tourOkay'), proceed: window.env.t('tourAvatarProceed'),
backdrop: false, backdrop: false,
orphan: true orphan: true
}, },
@@ -52,14 +45,8 @@ function($rootScope, User, $timeout, $state) {
state: 'tasks', state: 'tasks',
element: ".task-column.rewards", element: ".task-column.rewards",
content: window.env.t('tourRewardsBrief'), content: window.env.t('tourRewardsBrief'),
placement: "left", placement: "top",
proceed: window.env.t('tourRewardsProceed') proceed: window.env.t('tourRewardsProceed'),
},
{
state: 'tasks',
content: window.env.t('tourQuestions'),
proceed: window.env.t('tourQuestionsProceed'),
orphan: true,
final: true final: true
} }
] ]
@@ -99,7 +86,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourStatsPage'), content: window.env.t('tourStatsPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourOkay'),
hideNavigation: true
} }
]], ]],
tavern: [[ tavern: [[
@@ -107,7 +95,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourTavernPage'), content: window.env.t('tourTavernPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourAwesome'),
hideNavigation: true
} }
]], ]],
party: [[ party: [[
@@ -115,7 +104,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourPartyPage'), content: window.env.t('tourPartyPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourSplendid'),
hideNavigation: true
} }
]], ]],
guilds: [[ guilds: [[
@@ -123,7 +113,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourGuildsPage'), content: window.env.t('tourGuildsPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourNifty'),
hideNavigation: true
} }
]], ]],
challenges: [[ challenges: [[
@@ -131,7 +122,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourChallengesPage'), content: window.env.t('tourChallengesPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourOkay'),
hideNavigation: true
} }
]], ]],
market: [[ market: [[
@@ -139,7 +131,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourMarketPage'), content: window.env.t('tourMarketPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourAwesome'),
hideNavigation: true
} }
]], ]],
hall: [[ hall: [[
@@ -147,7 +140,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourHallPage'), content: window.env.t('tourHallPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourSplendid'),
hideNavigation: true
} }
]], ]],
pets: [[ pets: [[
@@ -155,7 +149,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourPetsPage'), content: window.env.t('tourPetsPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourNifty'),
hideNavigation: true
} }
]], ]],
mounts: [[ mounts: [[
@@ -163,7 +158,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourMountsPage'), content: window.env.t('tourMountsPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourOkay'),
hideNavigation: true
} }
]], ]],
equipment: [[ equipment: [[
@@ -171,7 +167,8 @@ function($rootScope, User, $timeout, $state) {
orphan: true, orphan: true,
content: window.env.t('tourEquipmentPage'), content: window.env.t('tourEquipmentPage'),
final: true, final: true,
proceed: window.env.t('tourOkay') proceed: window.env.t('tourAwesome'),
hideNavigation: true
} }
]] ]]
} }
@@ -215,9 +212,9 @@ function($rootScope, User, $timeout, $state) {
//'<button class="btn btn-sm btn-default" data-role="end" style="float:none;">' + (step.final ? 'Finish Tour' : 'Hide') + '</button>' + //'<button class="btn btn-sm btn-default" data-role="end" style="float:none;">' + (step.final ? 'Finish Tour' : 'Hide') + '</button>' +
(showCounter ? '<span style="float:right;">'+ (i+1 +' of '+ _.flatten(chapters[k]).length) +'</span>' : '')+ // counter (showCounter ? '<span style="float:right;">'+ (i+1 +' of '+ _.flatten(chapters[k]).length) +'</span>' : '')+ // counter
'<div class="btn-group">' + '<div class="btn-group">' +
'<button class="btn btn-sm btn-default" data-role="prev">&laquo; Previous</button>' + (step.hideNavigation ? '' : '<button class="btn btn-sm btn-default" data-role="prev">&laquo; Previous</button>') +
(showFinish ? ('<button class="btn btn-sm btn-primary" data-role="end" style="float:none;">' + (step.proceed ? step.proceed : "Finish Tour") + '</button>') : (showFinish ? ('<button class="btn btn-sm btn-primary" data-role="end" style="float:none;">' + (step.proceed ? step.proceed : "Finish Tour") + '</button>') :
('<button class="btn btn-sm btn-primary" data-role="next">' + (step.proceed ? step.proceed : "Next") + ' &raquo;</button>')) + (step.hideNavigation ? '' : ('<button class="btn btn-sm btn-primary" data-role="next">' + (step.proceed ? step.proceed : "Next") + ' &raquo;</button>'))) +
'<button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume">Pause</button>' + '<button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume">Pause</button>' +
'</div>' + '</div>' +
'</div>' + '</div>' +

View File

@@ -16,7 +16,7 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
span.glyphicon.glyphicon-calendar span.glyphicon.glyphicon-calendar
// <a href="https://www.google.com/calendar/render?cid={{encodeiCalLink(_user.id, _user.apiToken)}}" rel=tooltip title="Google Calendar"><i class=icon-calendar></i></a> // <a href="https://www.google.com/calendar/render?cid={{encodeiCalLink(_user.id, _user.apiToken)}}" rel=tooltip title="Google Calendar"><i class=icon-calendar></i></a>
a.option-action(ng-click='list.help=!list.help', tooltip='Click for help') a.option-action(ng-click='list.help=!list.help', tooltip='Click for help')
span.glyphicon.glyphicon-question-sign span.glyphicon.glyphicon-question-sign(style={'zoom':1.5,'vertical-align':'-webkit-baseline-middle'})
// Header // Header
h2.task-column_title h2.task-column_title
@@ -117,6 +117,13 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
+taskColumnTabs('top') +taskColumnTabs('top')
// Actual List
ul(class='{{list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', hrpg-sort-tasks, ng-if='!$state.includes("options.social.challenges")')
include ./task
//Loads the non-sortable lists for challenges
ul(class='{{list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', ng-if='$state.includes("options.social.challenges")')
include ./task
// Static Rewards // Static Rewards
ul.items.rewards(ng-if='main && list.type=="reward"') ul.items.rewards(ng-if='main && list.type=="reward"')
li.task.reward-item(ng-repeat='item in itemStore',popover-trigger='mouseenter', popover-placement='top', popover='{{item.notes()}}') li.task.reward-item(ng-repeat='item in itemStore',popover-trigger='mouseenter', popover-placement='top', popover='{{item.notes()}}')
@@ -160,13 +167,6 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
+specialSpell('opaquePotion','spookDust') +specialSpell('opaquePotion','spookDust')
+specialSpell('petalFreePotion','shinySeed') +specialSpell('petalFreePotion','shinySeed')
// Actual List
ul(class='{{list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', hrpg-sort-tasks, ng-if='!$state.includes("options.social.challenges")')
include ./task
//Loads the non-sortable lists for challenges
ul(class='{{list.type}}s main-list', ng-show='obj[list.type + "s"].length > 0', ng-if='$state.includes("options.social.challenges")')
include ./task
// Spells // Spells
ul.items(ng-if='main && list.type=="reward" && user.stats.class && !user.preferences.disableClasses') ul.items(ng-if='main && list.type=="reward" && user.stats.class && !user.preferences.disableClasses')
li.task.reward-item(ng-repeat='(k,skill) in Content.spells[user.stats.class]', ng-if='user.stats.lvl >= skill.lvl',popover-trigger='mouseenter', popover-placement='top', popover='{{skill.notes()}}') li.task.reward-item(ng-repeat='(k,skill) in Content.spells[user.stats.class]', ng-if='user.stats.lvl >= skill.lvl',popover-trigger='mouseenter', popover-placement='top', popover='{{skill.notes()}}')