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.

143 lines
8.0 KiB

1 year ago
  1. <form onsubmit="event.preventDefault()" autocomplete="off">
  2. <h2>{{> "modules/combat-utility-belt/templates/partials/triggler-icon.hbs"}} Triggler</h2>
  3. <div class="form-group triggler">
  4. <label>Existing Triggers</label>
  5. <select name="triggers">
  6. {{#select id}}
  7. <option value="">--Existing Triggers--</option>
  8. {{#each triggers as |trigger key|}}
  9. <option value="{{trigger.id}}">{{trigger.text}}</option>
  10. {{/each}}
  11. {{/select}}
  12. </select>
  13. {{#if triggerSelected}}
  14. <a class="delete" title="Delete Trigger"><i class="fas fa-trash"></i></a>
  15. {{/if}}
  16. </div>
  17. <hr>
  18. <div class="simple-trigger">
  19. <div class="type-select">
  20. <input id="triggler-trigger-type-simple" type="radio" name="triggerType" value="simple" {{checked isSimpleTrigger}}>
  21. <label for="triggler-trigger-type-simple"><strong>{{localize "CUB.TRIGGLER.App.TriggerType.Simple.Label"}}</strong></label>
  22. </div>
  23. <div class="flexrow">
  24. <span>Category</span>
  25. <span>Attribute</span>
  26. <span>Property 1</span>
  27. <span>Operator</span>
  28. <span>Value</span>
  29. <span>Property 2</span>
  30. </div>
  31. <div class="flexrow">
  32. <select name="category" {{#unless isSimpleTrigger}}disabled{{/unless}}>
  33. {{#select category}}
  34. <option value="">--Category--</option>
  35. {{#each categories}}
  36. <option value="{{this}}">{{this}}</option>
  37. {{/each}}
  38. {{/select}}
  39. </select>
  40. <select name="attribute" {{#unless isSimpleTrigger}}disabled{{/unless}}>
  41. {{#select attribute}}
  42. <option value="">--Attribute--</option>
  43. {{#each attributes}}
  44. <option value="{{this}}">{{this}}</option>
  45. {{/each}}
  46. {{/select}}
  47. </select>
  48. <select name="property1" {{#unless isSimpleTrigger}}disabled{{/unless}}>
  49. {{#select property1}}
  50. <option value="">--Property 1--</option>
  51. {{#each properties}}
  52. <option value="{{this}}">{{this}}</option>
  53. {{/each}}
  54. {{/select}}
  55. </select>
  56. <select name="operator" {{#unless isSimpleTrigger}}disabled{{/unless}}>
  57. {{#select operator}}
  58. <option value="">--Operator--</option>
  59. {{#each operators as |name key|}}
  60. <option value="{{key}}">{{name}}</option>
  61. {{/each}}
  62. {{/select}}
  63. </select>
  64. <input type="text" name="value" class="value" placeholder="--Value--" value="{{value}}" {{#unless isSimpleTrigger}}disabled{{/unless}}/>
  65. <select name="property2" {{#unless isSimpleTrigger}}disabled{{/unless}}>
  66. {{#select property2}}
  67. <option value="">--Property 2--</option>
  68. {{#each properties}}
  69. <option value="{{this}}">{{this}}</option>
  70. {{/each}}
  71. {{/select}}
  72. </select>
  73. </div>
  74. </div>
  75. <br>
  76. <div class="advanced-trigger">
  77. <div class="type-select">
  78. <input id="triggler-trigger-type-advanced" type="radio" name="triggerType" value="advanced" {{checked isAdvancedTrigger}}>
  79. <label for="triggler-trigger-type-advanced"><strong>{{localize "CUB.TRIGGLER.App.TriggerType.Advanced.Label"}}</strong></label>
  80. </div>
  81. <div class="form-group">
  82. <label for="triggler-advanced-name">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.Name.Label"}}</label>
  83. <input id="triggler-advanced-name" name="advancedName" type="text" value="{{advancedName}}" placeholder="{{localize "CUB.TRIGGLER.App.AdvancedTrigger.Name.Placeholder"}}" {{#unless isAdvancedTrigger}}disabled{{/unless}}>
  84. </div>
  85. <h3>{{localize "CUB.WORDS.Actor"}}</h3>
  86. <div class="form-group">
  87. <label for="triggler-advanced-actor-property">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.ActorProperty.Label"}}</label>
  88. <input id="triggler-advanced-actor-property" name="advancedActorProperty" type="text" value="{{advancedActorProperty}}" placeholder="{{localize "CUB.TRIGGLER.App.AdvancedTrigger.ActorProperty.Placeholder"}}" {{#unless isAdvancedTrigger}}disabled{{/unless}}>
  89. <p class="notes">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.Actor.Note"}}</p>
  90. </div>
  91. <div class="form-group">
  92. <label for="triggler-advanced-actor-property2">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.ActorProperty2.Label"}}</label>
  93. <input id="triggler-advanced-actor-property2" name="advancedActorProperty2" type="text" value="{{advancedActorProperty2}}" placeholder="{{localize "CUB.TRIGGLER.App.AdvancedTrigger.ActorProperty2.Placeholder"}}" {{#unless isAdvancedTrigger}}disabled{{/unless}}>
  94. <p class="notes">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.Actor.Note2"}}</p>
  95. </div>
  96. <br>
  97. <h3>{{localize "CUB.WORDS.Token"}}</h3>
  98. <div class="form-group">
  99. <label for="triggler-advanced-token-property">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.TokenProperty.Label"}}</label>
  100. <input id="triggler-advanced-token-property" name="advancedTokenProperty" type="text" value="{{advancedTokenProperty}}" placeholder="{{localize "CUB.TRIGGLER.App.AdvancedTrigger.TokenProperty.Placeholder"}}" {{#unless isAdvancedTrigger}}disabled{{/unless}}>
  101. <p class="notes">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.Token.Note"}}</p>
  102. </div>
  103. <div class="form-group">
  104. <label for="triggler-advanced-token-property2">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.TokenProperty2.Label"}}</label>
  105. <input id="triggler-advanced-token-property2" name="advancedTokenProperty2" type="text" value="{{advancedTokenProperty2}}" placeholder="{{localize "CUB.TRIGGLER.App.AdvancedTrigger.TokenProperty2.Placeholder"}}" {{#unless isAdvancedTrigger}}disabled{{/unless}}>
  106. <p class="notes">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.Token.Note2"}}</p>
  107. </div>
  108. <br>
  109. <h3>{{localize "CUB.TRIGGLER.App.AdvancedTrigger.OperatorValue.Heading"}}</h3>
  110. <p class="notes">{{localize "CUB.TRIGGLER.App.AdvancedTrigger.OperatorValue.Note"}}</p>
  111. <div class="flexrow">
  112. <select name="advancedOperator" class="advanced-trigger-operator" {{#unless isAdvancedTrigger}}disabled{{/unless}}>
  113. {{#select advancedOperator}}
  114. <option value="">--Operator--</option>
  115. {{#each operators as |name key|}}
  116. <option value="{{key}}">{{name}}</option>
  117. {{/each}}
  118. {{/select}}
  119. </select>
  120. <input type="text" name="advancedValue" class="advanced-trigger-value" placeholder="--Value--" value="{{advancedValue}}" {{#unless isAdvancedTrigger}}disabled{{/unless}}/>
  121. </div>
  122. </div>
  123. <hr>
  124. <h3>{{localize "CUB.TRIGGLER.App.Options.Title"}}</h3>
  125. <div class="flexrow triggler">
  126. <div class="form-group options" title="Trigger for player-owned Actors only">
  127. <input type="checkbox" name="pcOnly" {{checked pcOnly}}>
  128. <label>PCs Only</label>
  129. </div>
  130. <div class="form-group options" title="Trigger for non-player-owned Actors only">
  131. <input type="checkbox" name="npcOnly" {{checked npcOnly}}>
  132. <label>NPCs Only</label>
  133. </div>
  134. <div class="form-group options" title="Trigger only if Property1 value is not 0">
  135. <input type="checkbox" name="notZero" {{checked notZero}}>
  136. <label>Property not 0</label>
  137. </div>
  138. </div>
  139. <footer class="flexrow">
  140. <button type="submit" name="save"><i class="fas fa-save"></i> {{localize "CUB.WORDS.Save"}}</button>
  141. <button type="reset" name="reset"><i class="fas fa-undo"></i> {{localize "CUB.WORDS.Reset"}}</button>
  142. </footer>
  143. </form>