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.

84 lines
3.8 KiB

1 year ago
  1. <div class="tab" data-group="main" data-tab="appearance">
  2. <fieldset class="appearance">
  3. <legend>{{localize "TOKEN.HeaderAppearance"}}</legend>
  4. <div class="form-group">
  5. <label>{{localize "TOKEN.ImagePath"}}</label>
  6. <div class="form-fields">
  7. {{filePicker target="texture.src" type="imagevideo"}}
  8. <input class="image" type="text" name="texture.src" placeholder="path/image.png" value="{{object.texture.src}}" />
  9. </div>
  10. </div>
  11. {{#if randomImgEnabled}}
  12. <div class="form-group">
  13. <label>{{localize "TOKEN.RandomImg"}}</label>
  14. <input type="checkbox" name="randomImg" {{checked object.randomImg}} />
  15. </div>
  16. {{else if hasAlternates}}
  17. <div class="form-group">
  18. <label>{{localize "TOKEN.ImageAlts"}}</label>
  19. <select class="alternate-images" name="alternateImages">
  20. {{selectOptions alternateImages selected=object.texture.src blank=""}}
  21. </select>
  22. </div>
  23. {{/if}}
  24. <div class="form-group slim">
  25. <label>{{localize "TOKEN.Mirror"}}</label>
  26. <div class="form-fields">
  27. <label>{{localize "TOKEN.MirrorX"}}</label>
  28. <input type="checkbox" name="mirrorX" {{checked mirrorX}} />
  29. <label>{{localize "TOKEN.MirrorY"}}</label>
  30. <input type="checkbox" name="mirrorY" {{checked mirrorY}} />
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label>{{localize "TOKEN.TintColor"}}</label>
  35. <div class="form-fields">
  36. {{colorPicker name="texture.tint" value=object.texture.tint}}
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label>{{localize "TOKEN.Opacity"}}</label>
  41. <div class="form-fields">
  42. {{rangePicker name="alpha" value=object.alpha min="0" max="1" step="0.05"}}
  43. </div>
  44. </div>
  45. </fieldset>
  46. <fieldset class="size">
  47. <legend>{{localize "PF2E.Token.Size.Label"}}</legend>
  48. <div class="form-group slim">
  49. <label>
  50. {{localize "TOKEN.Dimensions"}} <span class="units">({{localize "GridSpaces"}})</span>
  51. {{#if sizeLinkable}}
  52. <a data-action="toggle-link-to-size" title="{{localize (concat "PF2E.Token.Size.LinkToActorSize." linkToSizeTitle)}}">
  53. <i class="fa-solid fa-fw fa-lock{{#unless object.flags.pf2e.linkToActorSize}}-open{{/unless}}"></i>
  54. </a>
  55. {{/if}}
  56. </label>
  57. <div class="form-fields">
  58. <label>{{localize "Width"}}</label>
  59. <input type="number" step="0.1" name="width" placeholder="units" value="{{object.width}}" {{disabled object.flags.pf2e.linkToActorSize}} />
  60. <label>{{localize "Height"}}</label>
  61. <input type="number" step="0.1" name="height" placeholder="units" value="{{object.height}}" {{disabled object.flags.pf2e.linkToActorSize}} />
  62. </div>
  63. </div>
  64. <div class="form-group scale">
  65. <label>
  66. {{localize "Scale"}} <span class="units">({{localize "Ratio"}})</span>
  67. {{#if (and sizeLinkable object.flags.pf2e.linkToActorSize)}}
  68. <a data-action="toggle-autoscale" title="{{localize (concat "PF2E.Token.Size.LinkToActorSize." autoscaleTitle)}}">
  69. <i class="fa-solid fa-fw fa-lock{{#unless object.flags.pf2e.autoscale}}-open{{/unless}}"></i>
  70. </a>
  71. {{/if}}
  72. </label>
  73. <div class="form-fields">
  74. {{rangePicker name="scale" value=scale min="0.2" max="3.0" step="0.1"}}
  75. </div>
  76. </div>
  77. </fieldset>
  78. </div>