forked from foundryvtt/dnd5e
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[foundryvtt#1401] Add item choice config
- Loading branch information
Showing
8 changed files
with
196 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<form autocomplete="off"> | ||
{{log this}} | ||
<div class="left-column"> | ||
{{> "systems/dnd5e/templates/advancement/parts/advancement-controls.html"}} | ||
<div class="form-group"> | ||
<label>{{localize "DND5E.AdvancementItemChoiceAllowDrops"}}</label> | ||
<div class="form-fields"> | ||
<input type="checkbox" name="data.configuration.allowDrops" {{checked data.configuration.allowDrops}}> | ||
</div> | ||
<p class="hint">{{localize "DND5E.AdvancementItemChoiceAllowDropsHint"}}</p> | ||
</div> | ||
|
||
<div class="drop-target"> | ||
<ol class="items-list"> | ||
<li class="items-header flexrow"><h3 class="item-name">{{localize "DOCUMENT.Items"}}</h3></li> | ||
<ol class="item-list"> | ||
{{#each data.configuration.pool}} | ||
<li class="item flexrow" data-item-uuid="{{this}}"> | ||
<div class="item-name">{{{dnd5e-linkForUuid this}}}</div> | ||
<div class="item-controls flexrow"> | ||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> | ||
</div> | ||
</li> | ||
{{/each}} | ||
</ol> | ||
</ol> | ||
|
||
<p class="hint centered">{{localize "DND5E.AdvancementItemChoiceDropHint"}}</p> | ||
</div> | ||
</div> | ||
|
||
<div class="right-column level-list"> | ||
<p class="hint">{{localize "DND5E.AdvancementItemChoiceLevelsHint"}}</p> | ||
{{#each levels as |level|}} | ||
<div class="form-group"> | ||
<label>{{level}}</label> | ||
<div class="form-fields"> | ||
{{numberInput (lookup ../data.configuration.choices level) placeholder="0" | ||
name=(concat "data.configuration.choices." level) min=1 step=1}} | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters