[#1396] Add justin to tour bubbles

This commit is contained in:
Tyler Renelle
2013-09-10 18:20:10 -04:00
parent 598c4445ff
commit 16a4e87fea
3 changed files with 10 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
@import "./game-pane.styl" @import "./game-pane.styl"
@import "./npcs.styl" @import "./npcs.styl"
@import "./challenges.styl" @import "./challenges.styl"
@import "./tour.styl"
// fix exploding to very wide for some reason // fix exploding to very wide for some reason
.datepicker .datepicker

5
public/css/tour.styl Normal file
View File

@@ -0,0 +1,5 @@
@import "../bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css"
.tour-tour .NPC-Justin
float: left
padding-right: 5px
.popover-navigation {clear:both;}

View File

@@ -13,7 +13,7 @@ angular.module('guideServices', []).
{ {
element: ".main-herobox", element: ".main-herobox",
title: "Welcome to HabitRPG", title: "Welcome to HabitRPG",
content: "Welcome to HabitRPG, a habit-tracker which treats your goals like a Role Playing Game." content: "Welcome to HabitRPG, a habit-tracker which treats your goals like a Role Playing Game. I'm <a href='http://www.kickstarter.com/profile/1823740484' target='_blank'>Justin</a>, your guide! "
}, { }, {
element: "#bars", element: "#bars",
title: "Achieve goals and level up", title: "Achieve goals and level up",
@@ -45,6 +45,9 @@ angular.module('guideServices', []).
placement: "right" placement: "right"
} }
]; ];
_.each(tourSteps, function(step){
step.content = "<div><div class='NPC-Justin'></div>" + step.content + "</div>"; // add Justin NPC img
});
$('.main-herobox').popover('destroy'); $('.main-herobox').popover('destroy');
var tour = new Tour({ var tour = new Tour({
onEnd: function(){ onEnd: function(){