mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Update inventory.jade
This commit is contained in:
parent
fa212b6e93
commit
06132f8a48
1 changed files with 31 additions and 32 deletions
|
|
@ -1,19 +1,19 @@
|
||||||
script(type='text/ng-template', id='partials/options.inventory.equipment.html')
|
script(type='text/ng-template', id='partials/options.inventory.equipment.html')
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span6.border-right
|
.span6.border-right
|
||||||
h3 Battle Gear
|
h3=env.t('battleGear')
|
||||||
small This is the gear you wear into battle, it affects numbers when interacting with your tasks.
|
small =env.t('battleGearText')
|
||||||
li.customize-menu.inventory-gear
|
li.customize-menu.inventory-gear
|
||||||
menu.pets-menu(label='{{label}}', ng-repeat='(klass,label) in {base:"Base", warrior:"Warrior", wizard:"Wizard", rogue:"Rogue", healer:"Healer", special:"Special"}', ng-show='gear[klass]')
|
menu.pets-menu(label='{{label}}', ng-repeat='(klass,label) in {base:"Base", warrior:"Warrior", wizard:"Wizard", rogue:"Rogue", healer:"Healer", special:"Special"}', ng-show='gear[klass]')
|
||||||
div(ng-repeat='item in gear[klass]')
|
div(ng-repeat='item in gear[klass]')
|
||||||
button.customize-option(popover='{{item.notes}}', popover-title='{{item.text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='user.ops.equip({params:{key:item.key}})', class='shop_{{item.key}}', ng-class='{selectableInventory: user.items.gear.equipped[item.type] == item.key}')
|
button.customize-option(popover='{{item.notes}}', popover-title='{{item.text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='user.ops.equip({params:{key:item.key}})', class='shop_{{item.key}}', ng-class='{selectableInventory: user.items.gear.equipped[item.type] == item.key}')
|
||||||
.span6
|
.span6
|
||||||
h3 Costume
|
h3=env.t('costume')
|
||||||
small But if you prefer the look of other gear to what you have equipped, check this box to visually don a costume while wearing your battle gear underneath.
|
small =env.t('costumeText')
|
||||||
br
|
br
|
||||||
label.checkbox.inline
|
label.checkbox.inline
|
||||||
input(type="checkbox", ng-model="user.preferences.costume", ng-click='set({"preferences.costume":!user.preferences.costume})')
|
input(type="checkbox", ng-model="user.preferences.costume", ng-click='set({"preferences.costume":!user.preferences.costume})')
|
||||||
| Use Costume
|
=env.t('useCostume')
|
||||||
li.customize-menu(ng-if='user.preferences.costume')
|
li.customize-menu(ng-if='user.preferences.costume')
|
||||||
menu.pets-menu(label='{{label}}', ng-repeat='(klass,label) in {base:"Base", warrior:"Warrior", wizard:"Wizard", rogue:"Rogue", healer:"Healer", special:"Special"}', ng-show='gear[klass]')
|
menu.pets-menu(label='{{label}}', ng-repeat='(klass,label) in {base:"Base", warrior:"Warrior", wizard:"Wizard", rogue:"Rogue", healer:"Healer", special:"Special"}', ng-show='gear[klass]')
|
||||||
div(ng-repeat='item in gear[klass]')
|
div(ng-repeat='item in gear[klass]')
|
||||||
|
|
@ -22,13 +22,13 @@ script(type='text/ng-template', id='partials/options.inventory.equipment.html')
|
||||||
script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
.row-fluid
|
.row-fluid
|
||||||
.span6.border-right
|
.span6.border-right
|
||||||
h2 Inventory
|
h2=env.t('inventory')
|
||||||
p.well Click an egg to see usable potions highlighted in green and then click one of the highlighted potions to hatch your pet. If no potions are highlighted, click that egg again to deselect it, and instead click a potion first to have the usable eggs highlighted. You can also sell unwanted drops to Alexander the Merchant.
|
p.well =env.t('inventoryText')
|
||||||
menu.inventory-list(type='list')
|
menu.inventory-list(type='list')
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Eggs ({{eggCount}})')
|
menu.pets-menu(label=env.t('eggs') + '({{eggCount}})')
|
||||||
p.muted(ng-show='eggCount < 1') You don't have any eggs.
|
p.muted(ng-show='eggCount < 1')=env.t('noEggs')
|
||||||
div(ng-repeat='(egg,points) in ownedItems(user.items.eggs)')
|
div(ng-repeat='(egg,points) in ownedItems(user.items.eggs)')
|
||||||
//TODO move positioning this styling to css
|
//TODO move positioning this styling to css
|
||||||
button.customize-option(popover='{{Content.eggs[egg].notes}}', popover-title='{{Content.eggs[egg].text}} Egg', popover-trigger='mouseenter', popover-placement='right', ng-click='chooseEgg(egg)', class='Pet_Egg_{{egg}}', ng-class='{selectableInventory: selectedPotion && !user.items.pets[egg+"-"+selectedPotion.key]}')
|
button.customize-option(popover='{{Content.eggs[egg].notes}}', popover-title='{{Content.eggs[egg].text}} Egg', popover-trigger='mouseenter', popover-placement='right', ng-click='chooseEgg(egg)', class='Pet_Egg_{{egg}}', ng-class='{selectableInventory: selectedPotion && !user.items.pets[egg+"-"+selectedPotion.key]}')
|
||||||
|
|
@ -36,35 +36,35 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
//-p {{Content.eggs[egg].text}}
|
//-p {{Content.eggs[egg].text}}
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.hatchingPotion-menu(label='Hatching Potions ({{potCount}})')
|
menu.hatchingPotion-menu(label=env.t('hatchingPotions') + '({{potCount}})')
|
||||||
p.muted(ng-show='potCount < 1') You don't have any hatching potions.
|
p.muted(ng-show='potCount < 1')=env.t('noHatchingPotions')
|
||||||
div(ng-repeat='(pot,points) in ownedItems(user.items.hatchingPotions)')
|
div(ng-repeat='(pot,points) in ownedItems(user.items.hatchingPotions)')
|
||||||
button.customize-option(popover='{{Content.hatchingPotions[pot].notes}}', popover-title='{{Content.hatchingPotions[pot].text}} Potion', popover-trigger='mouseenter', popover-placement='right', ng-click='choosePotion(pot)', class='Pet_HatchingPotion_{{pot}}', ng-class='{selectableInventory: selectedEgg && !user.items.pets[selectedEgg.key+"-"+pot]}')
|
button.customize-option(popover='{{Content.hatchingPotions[pot].notes}}', popover-title='{{Content.hatchingPotions[pot].text}} Potion', popover-trigger='mouseenter', popover-placement='right', ng-click='choosePotion(pot)', class='Pet_HatchingPotion_{{pot}}', ng-class='{selectableInventory: selectedEgg && !user.items.pets[selectedEgg.key+"-"+pot]}')
|
||||||
.badge.badge-info.stack-count {{points}}
|
.badge.badge-info.stack-count {{points}}
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Quest Scrolls ({{questCount}})')
|
menu.pets-menu(label=env.t('scrolls') + '({{questCount}})')
|
||||||
p.muted(ng-show='questCount < 1') You don't have any quest scrolls.
|
p.muted(ng-show='questCount < 1')=env.t('noScrolls').
|
||||||
p.muted Quests require parties. If you want to quest solo, <a href="/#/options/groups/party">create an empty party</a>
|
p.muted!=env.t('scrollsText1') + '<a href="/#/options/groups/party">' + !=env.t('scrollsText2') + '</a>'
|
||||||
div(ng-repeat='(quest_key,points) in ownedItems(user.items.quests)', ng-init='quest = Content.quests[quest_key]')
|
div(ng-repeat='(quest_key,points) in ownedItems(user.items.quests)', ng-init='quest = Content.quests[quest_key]')
|
||||||
button.customize-option(popover='{{quest.previous && !user.achievements.quests[quest.previous] ? "You need to complete the previous quest to start this one!" : quest.notes}}', popover-title='{{quest.text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='showQuest(quest_key)', class='inventory_quest_scroll', ng-class='{locked: quest.previous && !user.achievements.quests[quest.previous]}')
|
button.customize-option(popover='{{quest.previous && !user.achievements.quests[quest.previous] ? "You need to complete the previous quest to start this one!" : quest.notes}}', popover-title='{{quest.text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='showQuest(quest_key)', class='inventory_quest_scroll', ng-class='{locked: quest.previous && !user.achievements.quests[quest.previous]}')
|
||||||
.badge.badge-info.stack-count {{points}}
|
.badge.badge-info.stack-count {{points}}
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Food ({{foodCount}})')
|
menu.pets-menu(label=env.t('food') + '({{foodCount}})')
|
||||||
p(ng-show='foodCount < 1') You don't have any food.
|
p(ng-show='foodCount < 1')=env.t('noFood')
|
||||||
div(ng-repeat='(food,points) in ownedItems(user.items.food)')
|
div(ng-repeat='(food,points) in ownedItems(user.items.food)')
|
||||||
button.customize-option(popover='{{Content.food[food].notes}}', popover-title='{{Content.food[food].text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='chooseFood(food)', class='Pet_Food_{{food}}')
|
button.customize-option(popover='{{Content.food[food].notes}}', popover-title='{{Content.food[food].text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='chooseFood(food)', class='Pet_Food_{{food}}')
|
||||||
.badge.badge-info.stack-count {{points}}
|
.badge.badge-info.stack-count {{points}}
|
||||||
|
|
||||||
li.customize-menu(ng-if='user.items.special.snowball')
|
li.customize-menu(ng-if='user.items.special.snowball')
|
||||||
menu.pets-menu(label='Special')
|
menu.pets-menu(label=env.t('special'))
|
||||||
div
|
div
|
||||||
button.customize-option(popover='{{Content.special.snowball.notes}}', popover-title='{{Content.special.snowball.text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='castStart(Content.special.snowball)', class='inventory_special_snowball')
|
button.customize-option(popover='{{Content.special.snowball.notes}}', popover-title='{{Content.special.snowball.text}}', popover-trigger='mouseenter', popover-placement='right', ng-click='castStart(Content.special.snowball)', class='inventory_special_snowball')
|
||||||
.badge.badge-info.stack-count {{user.items.special.snowball}}
|
.badge.badge-info.stack-count {{user.items.special.snowball}}
|
||||||
|
|
||||||
.span6
|
.span6
|
||||||
h2 Market
|
h2=env.t('market')
|
||||||
.row-fluid
|
.row-fluid
|
||||||
table.npc_alex_container
|
table.npc_alex_container
|
||||||
tr
|
tr
|
||||||
|
|
@ -74,21 +74,20 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
.popover.static-popover.fade.right.in
|
.popover.static-popover.fade.right.in
|
||||||
.arrow
|
.arrow
|
||||||
h3.popover-title
|
h3.popover-title
|
||||||
a(target='_blank', href='http://www.kickstarter.com/profile/523661924') Alexander the Merchant
|
a(target='_blank', href='http://www.kickstarter.com/profile/523661924')=env.t('alexander')
|
||||||
.popover-content
|
.popover-content
|
||||||
p
|
p
|
||||||
| Welcome to the Market! Buy hard-to-find eggs and potions! Sell your extras! Commission useful services! Come see what we have to offer.
|
=env.t('welcomeMarket')
|
||||||
p
|
p
|
||||||
button.btn.btn-primary(ng-show='selectedEgg', ng-click='sellInventory()')
|
button.btn.btn-primary(ng-show='selectedEgg', ng-click='sellInventory()')
|
||||||
| Sell {{selectedEgg.key}} for {{selectedEgg.value}} Gold
|
=env.t('sellEgg', {{selectedEgg.key}}, {{selectedEgg.value}})
|
||||||
button.btn.btn-primary(ng-show='selectedPotion', ng-click='sellInventory()')
|
button.btn.btn-primary(ng-show='selectedPotion', ng-click='sellInventory()')
|
||||||
| Sell {{selectedPotion.key}} for {{selectedPotion.value}} Gold
|
=env.t('sellPotion', {{selectedPotion.key}}, {{selectedPotion.value}})
|
||||||
button.btn.btn-primary(ng-show='selectedFood', ng-click='sellInventory()')
|
button.btn.btn-primary(ng-show='selectedFood', ng-click='sellInventory()')
|
||||||
| Sell {{selectedFood.key}} for {{selectedFood.value}} Gold
|
=env.t('sellFood', {{selectedFood.key}}, {{selectedFood.value}})
|
||||||
|
|
||||||
menu.inventory-list(type='list')
|
menu.inventory-list(type='list')
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Eggs')
|
menu.pets-menu(label=env.t('eggs'))
|
||||||
div(ng-repeat='egg in Content.eggs')
|
div(ng-repeat='egg in Content.eggs')
|
||||||
button.customize-option(popover='{{egg.notes}}', popover-title='{{egg.text}} Egg', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("eggs", egg)', class='Pet_Egg_{{egg.key}}')
|
button.customize-option(popover='{{egg.notes}}', popover-title='{{egg.text}} Egg', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("eggs", egg)', class='Pet_Egg_{{egg.key}}')
|
||||||
p
|
p
|
||||||
|
|
@ -96,7 +95,7 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Hatching Potions')
|
menu.pets-menu(label=env.t('hatchingPotions'))
|
||||||
div(ng-repeat='pot in Content.hatchingPotions')
|
div(ng-repeat='pot in Content.hatchingPotions')
|
||||||
button.customize-option(popover='{{pot.notes}}', popover-title='{{pot.text}} Potion', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("hatchingPotions", pot)', class='Pet_HatchingPotion_{{pot.key}}')
|
button.customize-option(popover='{{pot.notes}}', popover-title='{{pot.text}} Potion', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("hatchingPotions", pot)', class='Pet_HatchingPotion_{{pot.key}}')
|
||||||
p
|
p
|
||||||
|
|
@ -104,7 +103,7 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Food')
|
menu.pets-menu(label=env.t('food'))
|
||||||
div(ng-repeat='food in Content.food', ng-show='food.key !== "Saddle"')
|
div(ng-repeat='food in Content.food', ng-show='food.key !== "Saddle"')
|
||||||
button.customize-option(popover='{{food.notes}}', popover-title='{{food.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("food", food)', class='Pet_Food_{{food.key}}')
|
button.customize-option(popover='{{food.notes}}', popover-title='{{food.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("food", food)', class='Pet_Food_{{food.key}}')
|
||||||
p
|
p
|
||||||
|
|
@ -112,8 +111,8 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Quests')
|
menu.pets-menu(label=env.t('quests'))
|
||||||
p.muted Quests require parties. If you want to quest solo, <a href="/#/options/groups/party">create an empty party</a>
|
p.muted!=env.t('scrollsText1') + '<a href="/#/options/groups/party">' + !=env.t('scrollsText2') + '</a>'
|
||||||
div(ng-repeat='quest in Content.quests')
|
div(ng-repeat='quest in Content.quests')
|
||||||
button.customize-option(popover='{{quest.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("quests", quest)', class='inventory_quest_scroll', ng-class='{locked: quest.previous && !user.achievements.quests[quest.previous]}')
|
button.customize-option(popover='{{quest.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("quests", quest)', class='inventory_quest_scroll', ng-class='{locked: quest.previous && !user.achievements.quests[quest.previous]}')
|
||||||
p
|
p
|
||||||
|
|
@ -121,14 +120,14 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
|
|
||||||
li.customize-menu
|
li.customize-menu
|
||||||
menu.pets-menu(label='Special')
|
menu.pets-menu(label=env.t('special'))
|
||||||
div
|
div
|
||||||
button.customize-option(popover='{{Content.food.Saddle.notes}}', popover-title='{{Content.food.Saddle.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("food", Content.food.Saddle)', class='Pet_Food_{{Content.food.Saddle.key}}')
|
button.customize-option(popover='{{Content.food.Saddle.notes}}', popover-title='{{Content.food.Saddle.text}}', popover-trigger='mouseenter', popover-placement='left', ng-click='purchase("food", Content.food.Saddle)', class='Pet_Food_{{Content.food.Saddle.key}}')
|
||||||
p
|
p
|
||||||
| {{Content.food.Saddle.value}}
|
| {{Content.food.Saddle.value}}
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
div
|
div
|
||||||
button.customize-option(popover='Return all tasks to neutral value (yellow color), and restore all lost Health.', popover-title=env.t('rerollName'), popover-trigger='mouseenter', popover-placement='left', ng-click='modals.reroll = true', class='inventory_special_fortify')
|
button.customize-option(popover=env.t('fortifyPop'), popover-title=env.t('rerollName'), popover-trigger='mouseenter', popover-placement='left', ng-click='modals.reroll = true', class='inventory_special_fortify')
|
||||||
p
|
p
|
||||||
| 4
|
| 4
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
|
|
@ -138,7 +137,7 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
|
||||||
| {{Content.spells.special.snowball.value}}
|
| {{Content.spells.special.snowball.value}}
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
div(ng-show='user.flags.rebirthEnabled')
|
div(ng-show='user.flags.rebirthEnabled')
|
||||||
button.customize-option(popover='Begin a new character at Level 1 while retaining achievements, collectibles, and tasks with history.', popover-title='Orb of Rebirth', popover-trigger='mouseenter', popover-placement='left', ng-click='modals.rebirth = true', class='rebirth_orb')
|
button.customize-option(popover=env.t('rebirthPop'), popover-title=env.t('rebirthName'), popover-trigger='mouseenter', popover-placement='left', ng-click='modals.rebirth = true', class='rebirth_orb')
|
||||||
p
|
p
|
||||||
| 8
|
| 8
|
||||||
span.Pet_Currency_Gem1x.inline-gems
|
span.Pet_Currency_Gem1x.inline-gems
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue