From e22634658a23da5c9e327fd78db0a173f76a965d Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Thu, 2 May 2013 15:01:11 +0100 Subject: [PATCH] add in daniel / tavern tab content --- public/img/npcs/daniel.png | Bin 0 -> 1635 bytes src/app/browser.coffee | 3 ++- src/app/profile.coffee | 5 ++--- styles/app/game-pane.styl | 6 +++++- views/app/avatar.html | 10 ---------- views/app/game-pane.html | 26 ++++++++++++++++++++++++++ views/app/settings.html | 2 -- 7 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 public/img/npcs/daniel.png diff --git a/public/img/npcs/daniel.png b/public/img/npcs/daniel.png new file mode 100644 index 0000000000000000000000000000000000000000..5aed8f315638890fb7facff1d4055088f3d9a4a0 GIT binary patch literal 1635 zcmV-p2AuhcP)IXRi=U@#zzTE4zMO>tCcXTWZr@WS@Xr5>gmb2V#pl83!w@%P+-{Ie^IlR4blU zB9ZBO`t(HFKX-1z`PY8&6z9)GC_`$(jaEz??mVmFy<>k_DTa$+fL0*nT8WBE8hfvc z+!yfh_1`(_?CWC}RQycGc-j<0<^U!K*yHLVm`qJ!P>e|>rKP1-H6o2W zuYJf1Q&&CIq~hMj$HX}L<$l`>bf#McY?0rQ?FBJ12QWDxN2(Q9`ZFxGOO=?^V>&je zfBh=Qb1>a4me$XKwG}`skXB+*+zu(1@9V2)dRIdV{cUw7Z#;HWxs;sjRdkemkU0x$Lqha{!YABB7NaSiNqYRsT14?~X(& zCUXFj1JFuF^s#NzJ-&?NMmMH8j$sEAs z0JP$$hR2&uY5QEi^oBd5%g-XSLGNnRrOclErcDII_>I8DtJXD}YukINE#K zG40DI{eHZ;%&|{bSC@87`CdV&L~?p$MD&SUsYLea=o}G>nL*|Nv;tW~;5QgcWtbGO zs(S*)sE^BZcM{1?AvQovF+P29P zi~+4cM5`5<-m46Eh&686uHx5sJfR(DW9=&{UR%Fas3h1szTEKrzV#~pV^OPCJ$Xg1 zs<5rCO{=XiKN*0`0Za}EiB?RCNxBJHXkugScI~lJB|+aj?1qV}?@)34=R;bR$UYKT ztwcpJWDa0*KtNiNsc+|_b5(rT(=Cq2N|nez3Y@f!@n-$nitHngm1Cw;F;XQa#T4Iq zOvPtTk~sja09yHvSS&WFQ%S@AGeRrQDv@g|HT!?iYQh#dW>v@(GkPe|o>xTX0JH)* ztra&aY3};MN+ohhU1F=1!NEZ>=3qt?W2#VOEV;I2g^J~cuP`j%lR1FN0Rd^nq!Rd- zp`jsBqO49R=^pq3bFP`@%L&ObA^otn0%!%&tQFH^A@AOBr-~2m`pjxfd8}!CNKfUm zqHqdpD}YuY6|Kl87{_A1{H@xgiergr@7VgXRaJswGOHLe2cQ*5L$zXyd{Qw)0;&~2 zE09VG`Cql7{;|A(d6SDOA#(s)0e`h3Uqdly1puvpk6J-7Ij$JKX+SHGqE?b#aG@9= ha{!YAAep}f7yxntc`0 # or the item's id property model.at("_#{type}List").pass(ignore: domId).move {id}, to -setupTooltips = module.exports.setupTooltips = (model) -> +setupTooltips = module.exports.setupTooltips = -> $('[rel=tooltip]').tooltip() $('[rel=popover]').popover() + $('.popover-auto-show').popover('show') $('.priority-multiplier-help').popover title: "How difficult is this task?" diff --git a/src/app/profile.coffee b/src/app/profile.coffee index 882b22fb60..753e48dbbf 100644 --- a/src/app/profile.coffee +++ b/src/app/profile.coffee @@ -25,7 +25,6 @@ module.exports.app = (appExports, model) -> browser.setupTooltips(model) appExports.toggleGamePane = -> - model.set '_gamePane', !model.get('_gamePane') - $('[rel=tooltip]').tooltip() - $('[rel=popover]').popover() + model.set '_gamePane', !model.get('_gamePane'), -> + browser.setupTooltips() diff --git a/styles/app/game-pane.styl b/styles/app/game-pane.styl index 7992970350..35e26ee45a 100644 --- a/styles/app/game-pane.styl +++ b/styles/app/game-pane.styl @@ -9,4 +9,8 @@ .tab-notification color: #fff; - background-color: #51a351 \ No newline at end of file + background-color: #51a351 + +.tavern-pane + position:relative + height:500px \ No newline at end of file diff --git a/views/app/avatar.html b/views/app/avatar.html index 2d993fdf3c..4f658de3e0 100644 --- a/views/app/avatar.html +++ b/views/app/avatar.html @@ -168,16 +168,6 @@ - -
-
- - Useful if you're going on vacation for or get sick. -
-
- diff --git a/views/app/game-pane.html b/views/app/game-pane.html index d5d9eba7a5..b4309c5137 100644 --- a/views/app/game-pane.html +++ b/views/app/game-pane.html @@ -55,6 +55,10 @@ +
+ +
+
{{#if _loggedIn}} @@ -62,4 +66,26 @@
+ + + +
+
+ +
+
+

Daniel Johansson

+
Welcome to the Tavern! I'm the bar keep, Daniel. If you would like to rest a while (going on vacation?), I can set you up at the inn for 10gp. While you're resting, your dailies won't hurt you. The minimum stay is 24h, but you can check out whenever you want. In the future, you may find other adventurers here, looking meet and mingle (LFG anyone?)
+
+
+
+
+
+ +
+
+ +
\ No newline at end of file diff --git a/views/app/settings.html b/views/app/settings.html index d77864b0db..6a6c94b1ce 100644 --- a/views/app/settings.html +++ b/views/app/settings.html @@ -18,8 +18,6 @@

Misc

-

- {{#if _user.auth.local}}