All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
5.1 KiB

1 year ago
  1. {{#unless isVehicle}}
  2. <div class="inventory-filters flexrow">
  3. <ul class="filter-list flexrow" data-filter="features">
  4. <li class="filter-item" data-filter="action">{{localize "DND5E.Action"}}</li>
  5. <li class="filter-item" data-filter="bonus">{{localize "DND5E.BonusAction"}}</li>
  6. <li class="filter-item" data-filter="reaction">{{localize "DND5E.Reaction"}}</li>
  7. </ul>
  8. </div>
  9. {{/unless}}
  10. <ol class="items-list inventory-list">
  11. {{#each sections as |section sid|}}
  12. <li class="items-header flexrow">
  13. <h3 class="item-name flexrow">{{localize section.label}}</h3>
  14. {{#if section.hasActions}}
  15. <div class="item-detail item-uses">{{localize "DND5E.Uses"}}</div>
  16. <div class="item-detail item-action">{{localize "DND5E.Usage"}}</div>
  17. {{/if}}
  18. {{#if section.columns}}
  19. {{#each section.columns}}
  20. <div class="item-detail {{css}}">{{label}}</div>
  21. {{/each}}
  22. {{/if}}
  23. {{#if ../owner}}
  24. <div class="item-controls flexrow">
  25. <a class="item-control item-create" data-tooltip="DND5E.FeatureAdd"
  26. {{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
  27. <i class="fas fa-plus"></i> {{localize "DND5E.Add"}}
  28. </a>
  29. </div>
  30. {{/if}}
  31. </li>
  32. <ol class="item-list">
  33. {{#each section.items as |item iid|}}
  34. {{#dnd5e-itemContext item as |ctx|}}
  35. <li class="item flexrow {{#if ctx.isDepleted}}depleted{{/if}} {{#if ctx.isExpanded}}expanded{{/if}}"
  36. data-item-id="{{item.id}}">
  37. <div class="item-name flexrow rollable">
  38. <div class="item-image" tabindex="0" role="button" aria-label="{{item.name}}" style="background-image: url('{{item.img}}')"></div>
  39. <h4>
  40. {{#if (eq item.type "subclass")}}&rdsh;{{/if}}
  41. {{item.name}}
  42. {{#if item.system.isOriginalClass}}
  43. <i class="original-class fas fa-sun" data-tooltip="DND5E.ClassOriginal"></i>
  44. {{/if}}
  45. </h4>
  46. </div>
  47. {{#if section.hasActions}}
  48. <div class="item-detail item-uses">
  49. {{#if ctx.isOnCooldown}}
  50. <a class="item-recharge rollable">{{item.labels.recharge}}</a>
  51. {{else if item.system.recharge.value}}
  52. {{localize "DND5E.Charged"}}
  53. {{else if ctx.hasUses}}
  54. <input type="text" value="{{item.system.uses.value}}" placeholder="0"/>/ {{item.system.uses.max}}
  55. {{/if}}
  56. </div>
  57. <div class="item-detail item-action">
  58. {{#if item.system.activation.type}}
  59. {{item.labels.activation}}
  60. {{/if}}
  61. </div>
  62. {{else if (eq item.type "class")}}
  63. <div class="item-detail item-action">
  64. <select class="level-selector">
  65. {{#select 0}}
  66. {{#each ctx.availableLevels}}
  67. <option value="{{this.delta}}" {{disabled this.disabled}}>
  68. {{localize "DND5E.LevelNumber" level=this.level}}
  69. {{#if this.delta}}({{numberFormat this.delta sign=true}}){{/if}}
  70. </option>
  71. {{/each}}
  72. {{/select}}
  73. </select>
  74. </div>
  75. {{/if}}
  76. {{#if section.columns}}
  77. {{#each section.columns}}
  78. <div class="item-detail {{css}}">
  79. {{#if editable}}
  80. <input type="text" data-dtype="{{editable}}" data-property="{{property}}"
  81. value="{{#if (getProperty item property)}}{{getProperty item property}}
  82. {{~else}}{{getProperty ctx property}}{{/if}}" placeholder="&mdash;">
  83. {{else}}
  84. {{#if (getProperty item property)}}
  85. {{getProperty item property}}
  86. {{else}}
  87. {{getProperty ctx property}}
  88. {{/if}}
  89. {{/if}}
  90. </div>
  91. {{/each}}
  92. {{/if}}
  93. {{#if @root.owner}}
  94. <div class="item-controls flexrow">
  95. {{#if section.crewable}}
  96. <a class="item-control item-toggle {{ctx.toggleClass}}" data-tooltip="{{ctx.toggleTitle}}">
  97. <i class="fas fa-sun"></i>
  98. </a>
  99. {{/if}}
  100. <a class="item-control item-edit" data-tooltip="DND5E.ItemEdit">
  101. <i class="fas fa-edit"></i>
  102. </a>
  103. <a class="item-control item-delete" data-tooltip="DND5E.ItemDelete">
  104. <i class="fas fa-trash"></i>
  105. </a>
  106. </div>
  107. {{/if}}
  108. {{#if ctx.isExpanded}}
  109. {{> "dnd5e.item-summary" (lookup @root.expandedData item.id)}}
  110. {{/if}}
  111. </li>
  112. {{/dnd5e-itemContext}}
  113. {{/each}}
  114. </ol>
  115. {{/each}}
  116. </ol>