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.

71 lines
3.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <form autocomplete="off" spellcheck="false">
  2. <p class="notes">{{localize "PF2E.SETTINGS.Homebrew.Instructions"}}</p>
  3. <nav class="sheet-tabs tabs">
  4. <a class="item" data-tab="traits">{{localize "PF2E.SETTINGS.Homebrew.Tabs.Traits"}}</a>
  5. <a class="item" data-tab="damage">{{localize "PF2E.SETTINGS.Homebrew.Tabs.Damage"}}</a>
  6. </nav>
  7. <section class="tab" data-tab="traits"></div>
  8. {{#each traitSettings as |setting|}}
  9. <!-- {{setting.key}} -->
  10. <div class="form-group setting">
  11. <label for="{{setting.key}}">{{localize setting.name}}</label>
  12. <div class="form-fields">
  13. <input type="text" name="{{setting.key}}" class="homebrew" data-dtype="JSON" value="{{json setting.value}}" />
  14. </div>
  15. <p class="notes">{{localize setting.hint}}</p>
  16. </div>
  17. {{/each}}
  18. </section>
  19. <section class="tab" data-tab="damage">
  20. {{#if customDamageTypes}}
  21. <table class="damage-types">
  22. <tr>
  23. <th>{{localize "PF2E.SETTINGS.Homebrew.DamageTypes.Label"}}</th>
  24. <th>{{localize "PF2E.Slug"}}</th>
  25. <th>{{localize "PF2E.Category"}}</th>
  26. <th>{{localize "PF2E.SETTINGS.Homebrew.DamageTypes.Icon"}}</th>
  27. <th class="delete-cell"></th>
  28. </tr>
  29. {{#each customDamageTypes as |type idx|}}
  30. <tr>
  31. <td>
  32. <input name="damageTypes.{{idx}}.label" type="text" required minlength="3" value="{{type.label}}" />
  33. </td>
  34. <td>{{type.slug}}</td>
  35. <td>
  36. <select name="damageTypes.{{idx}}.category">
  37. {{#select type.category}}
  38. <option value="">{{localize "PF2E.NoneOption"}}</option>
  39. {{#each @root.damageCategories as |label category|}}
  40. <option value="{{category}}">{{localize label}}</option>
  41. {{/each}}
  42. {{/select}}
  43. </select>
  44. </td>
  45. <td>
  46. <div class="icon-preview">
  47. <input name="damageTypes.{{idx}}.icon" type="text" value="{{type.icon}}" />
  48. <i class="fa-solid fa-fw {{type.icon}}"></i>
  49. </div>
  50. </td>
  51. <td class="delete-cell"><i class="fa-solid fa-times" data-action="damage-delete" data-idx="{{idx}}"></i></td>
  52. </tr>
  53. {{/each}}
  54. </table>
  55. {{/if}}
  56. <button type="button" data-action="damage-add">
  57. <i class="fa-regular fa-plus"></i>{{localize "PF2E.SETTINGS.Homebrew.DamageTypes.Add"}}
  58. </button>
  59. </section>
  60. <div class="form-group buttons">
  61. <button type="submit">
  62. <i class="fa-regular fa-save"></i> {{localize "SETTINGS.Save"}}
  63. </button>
  64. <button type="reset" name="reset">
  65. <i class="fa-solid fa-undo"></i> {{localize "PF2E.SETTINGS.ResetChanges"}}
  66. </button>
  67. </div>
  68. </form>