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.

134 lines
5.3 KiB

  1. <nav class="sheet-tabs tabs rule-tabs">
  2. <h4>
  3. <a data-rule-tab="basic"><i class="fa-solid fa-lightbulb"></i> {{localize "LIGHT.HeaderBasic"}}</a>
  4. <a data-rule-tab="animation"><i class="fa-solid fa-play"></i> {{localize "LIGHT.HeaderAnimation"}}</a>
  5. <a data-rule-tab="advanced"><i class="fa-solid fa-cogs"></i> {{localize "LIGHT.HeaderAdvanced"}}</a>
  6. </h4>
  7. </nav>
  8. <div data-rule-tab="basic">
  9. <fieldset class="radii">
  10. <legend>{{localize "LIGHT.Radius"}}</legend>
  11. <div class="form-group">
  12. <div class="form-fields">
  13. <label class="short">{{localize "LIGHT.Dim"}}</label>
  14. {{{form.resolvableValue "value.dim"}}}
  15. {{{form.resolvableAddBracket "value.dim"}}}
  16. </div>
  17. </div>
  18. {{{form.resolvableBrackets "value.dim"}}}
  19. <div class="form-group">
  20. <div class="form-fields">
  21. <label class="short">{{localize "LIGHT.Bright"}}</label>
  22. {{{form.resolvableValue "value.bright"}}}
  23. {{{form.resolvableAddBracket "value.bright"}}}
  24. </div>
  25. </div>
  26. {{{form.resolvableBrackets "value.bright"}}}
  27. </fieldset>
  28. <div class="form-group slim">
  29. <label>{{localize "LIGHT.Angle" }} <span class="units">({{localize "Degrees"}})</span></label>
  30. <div class="form-fields">
  31. <input type="number" name="system.rules.{{index}}.value.angle" value="{{light.angle}}" placeholder="360"/>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label>{{ localize "LIGHT.Color" }}</label>
  36. <div class="form-fields">
  37. {{colorPicker name=(concat "system.rules." index ".value.color") value=light.color}}
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label>{{ localize "LIGHT.Alpha" }}</label>
  42. <div class="form-fields">
  43. {{rangePicker name=(concat "system.rules." index ".value.alpha") value=light.alpha placeholder="1" min="0" max="1" step="0.05"}}
  44. </div>
  45. </div>
  46. <div class="form-group column-span-two">
  47. <label>{{localize "PF2E.RuleEditor.General.Predicate"}}</label>
  48. <input type="text" class="predicate" name="system.rules.{{index}}.predicate" value="{{json rule.predicate}}" />
  49. </div>
  50. </div>
  51. <div data-rule-tab="animation">
  52. <div class="form-group">
  53. <label>{{localize "LIGHT.AnimationType"}}</label>
  54. <div class="form-fields">
  55. <select name="system.rules.{{index}}.value.animation.type">
  56. {{selectOptions lightAnimations selected=light.animation.type localize=true}}
  57. </select>
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label>{{localize "LIGHT.AnimationSpeed"}}</label>
  62. <div class="form-fields">
  63. {{rangePicker name=(concat "system.rules." index ".value.animation.speed") value=light.animation.speed min="0" max="10" step="1"}}
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label>{{localize "LIGHT.AnimationReverse"}}</label>
  68. <div class="form-fields">
  69. <input type="checkbox" name="system.rules.{{index}}.value.animation.reverse" {{checked light.animation.reverse}}/>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label>{{localize "LIGHT.AnimationIntensity"}}</label>
  74. <div class="form-fields">
  75. {{rangePicker name=(concat "system.rules." index ".value.animation.intensity") value=light.animation.intensity min="1" max="10" step="1"}}
  76. </div>
  77. </div>
  78. </div>
  79. <div data-rule-tab="advanced">
  80. <div class="form-group">
  81. <label>{{ localize 'LIGHT.ColorationTechnique' }}</label>
  82. <div class="form-fields">
  83. <select name="system.rules.{{index}}.value.coloration" data-dtype="Number">
  84. {{selectOptions colorationTechniques selected=light.coloration nameAttr="id" labelAttr="label" localize=true}}
  85. </select>
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label>{{ localize 'LIGHT.Luminosity' }}</label>
  90. <div class="form-fields">
  91. {{ rangePicker name=(concat "system.rules." index ".value.luminosity") value=light.luminosity min="-1" max="1" step="0.05" }}
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label>{{ localize 'LIGHT.Attenuation' }}</label>
  96. <div class="form-fields">
  97. {{ rangePicker name=(concat "system.rules." index ".value.attenuation") value=light.attenuation min="0" max="1" step="0.05" }}
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label>{{ localize 'LIGHT.Saturation' }}</label>
  102. <div class="form-fields">
  103. {{ rangePicker name=(concat "system.rules." index ".value.saturation") value=light.saturation min="-1" max="1" step="0.05" }}
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label>{{ localize 'LIGHT.Contrast' }}</label>
  108. <div class="form-fields">
  109. {{ rangePicker name=(concat "system.rules." index ".value.contrast") value=light.contrast min="-1" max="1" step="0.05" }}
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label>{{ localize 'LIGHT.Shadows' }}</label>
  114. <div class="form-fields">
  115. {{ rangePicker name=(concat "system.rules." index ".value.shadows") value=light.shadows min="0" max="1" step="0.05" }}
  116. </div>
  117. </div>
  118. </div>