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.
Merge pull request foundryvtt#3907 from foundryvtt/activity/effects
[foundryvtt#1964] Add applied effects data to activities & sheet
- Loading branch information
Showing
8 changed files
with
123 additions
and
10 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<section class="tab activity-{{ tab.id }} {{ tab.cssClass }}" data-tab="{{ tab.id }}" data-group="{{ tab.group }}"> | ||
TODO: Active effects to apply & effects from specific activity types | ||
{{> "systems/dnd5e/templates/activity/parts/activity-effects.hbs" }} | ||
</section> |
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,20 @@ | ||
<fieldset> | ||
<legend>{{ localize "DND5E.ACTIVITY.FIELDS.effects.label" }}</legend> | ||
<multi-select name="appliedEffects"> | ||
{{ selectOptions allEffects }} | ||
</multi-select> | ||
<ul class="unlist"> | ||
{{#each activity.effects}} | ||
<li data-index="{{ @index }}" data-effect-id="{{ id }}" class="flexrow"> | ||
<img class="gold-icon" src="{{ effect.img }}" alt="{{ effect.name }}"> | ||
<span class="name">{{{ dnd5e-linkForUuid effect.uuid }}}</span> | ||
<button type="button" class="unbutton" data-action="deleteEffect"> | ||
{{ localize "DND5E.EFFECT.Action.Delete" }} | ||
</button> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
<button type="button" class="unbutton" data-action="addEffect"> | ||
{{ localize "DND5E.EFFECT.Action.Create" }} | ||
</button> | ||
</fieldset> |
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