shop items now working. really crappy css (@Pandoro save me?) but it works

This commit is contained in:
Tyler Renelle 2013-02-08 13:43:57 -05:00
parent a166f7c909
commit 2be5136a2f
2 changed files with 16 additions and 5 deletions

View file

@ -16,4 +16,12 @@
height:20px
.item-buy-link
background-color: #ccffcc
background-color: #ccffcc
.item
position:relative
.shop-table
position:absolute
top: 0
left: 50px

View file

@ -223,8 +223,8 @@
<span class='{:p.gender}_skin_{:p.skin}'></span>
<span class='{:p.gender}_hair_{:p.hair}'></span>
<span class="{equipped(_user, 'armor')}"></span>
<span class='{:p.gender}_shield_{_user.items.shield}'></span>
<span class="{equipped(_user, 'head')}"></span>
<span class='{:p.gender}_shield_{_user.items.shield}'></span>
<span class='{:p.gender}_weapon_{_user.items.weapon}'></span>
{/}
</div>
@ -543,11 +543,14 @@
</div>
<div class="task-text">
{#if :item.icon}
<img src="/img/BrowserQuest/habitrpg_mods/{:item.icon}" />
<img src="/img/BrowserQuest/habitrpg_mods/{:item.icon}" /> {:item.text}
{else}
<div class="shop_{:item.classes}"></div>
<table class='shop-table'><tr>
<td><div class="shop_{:item.classes} shop-sprite"></div></td>
<td>{:item.text}</td>
</tr></table>
{/}
{:item.text}
</div>
</pre>
</li>