-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve visibility of chat card properties
- Loading branch information
Showing
37 changed files
with
614 additions
and
529 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,32 +1,32 @@ | ||
<div class="pc pc_{{config.name}}"> | ||
<label for="pc_{{config.name}}"> | ||
{{config.label}} | ||
</label> | ||
{{#if owner}} | ||
<a class="item-selector" data-options="{{config.name}}" for="system.{{config.name}}"> | ||
<i class="fa-solid fa-pen-to-square fa-sm"></i> | ||
</a> | ||
{{/if}} | ||
<div class="compendium-items flexrow"> | ||
<div class="compendium-item flexrow"> | ||
{{#if config.item}} | ||
<a | ||
class="content-link uuid-link" | ||
data-type="Item" | ||
data-uuid="{{config.item.uuid}}" | ||
> | ||
{{config.item.name}} | ||
</a> | ||
{{else}} | ||
<input | ||
id="pc pc_{{config.name}}" | ||
type="text" | ||
title="{{config.tooltip}}" | ||
value="" | ||
data-dtype="String" | ||
disabled="disabled" | ||
/> | ||
{{/if}} | ||
</div> | ||
<label for="pc_{{config.name}}"> | ||
{{config.label}} | ||
</label> | ||
{{#if owner}} | ||
<a class="item-selector" data-options="{{config.name}}" for="system.{{config.name}}"> | ||
<i class="fa-solid fa-pen-to-square fa-sm"></i> | ||
</a> | ||
{{/if}} | ||
<div class="compendium-items flexrow"> | ||
<div class="compendium-item flexrow"> | ||
{{#if config.item}} | ||
<a | ||
class="content-link uuid-link" | ||
data-type="Item" | ||
data-uuid="{{config.item.uuid}}" | ||
> | ||
{{config.item.name}} | ||
</a> | ||
{{else}} | ||
<input | ||
id="pc pc_{{config.name}}" | ||
type="text" | ||
title="{{config.tooltip}}" | ||
value="" | ||
data-dtype="String" | ||
disabled="disabled" | ||
/> | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> |
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,26 +1,26 @@ | ||
<div class="attacks-grid"> | ||
<label class="attacks-label">{{localize 'SHADOWDARK.sheet.player.melee_attacks'}}</label> | ||
<ol> | ||
{{#each attacks.melee as |attack|}} | ||
<li | ||
class="rollable item-rollable attack-item" | ||
data-action="item-attack" | ||
data-item-id="{{attack.itemId}}" | ||
> | ||
{{{attack.display}}} | ||
</li> | ||
{{/each}} | ||
</ol> | ||
<label class="attacks-label">{{localize 'SHADOWDARK.sheet.player.ranged_attacks'}}</label> | ||
<ol> | ||
{{#each attacks.ranged as |attack|}} | ||
<li | ||
class="rollable item-rollable attack-item" | ||
data-action="item-attack" | ||
data-item-id="{{attack.itemId}}" | ||
> | ||
{{{attack.display}}} | ||
</li> | ||
{{/each}} | ||
</ol> | ||
</div> | ||
<label class="actions-label">{{localize 'SHADOWDARK.sheet.player.melee_attacks'}}</label> | ||
<ol> | ||
{{#each attacks.melee as |attack|}} | ||
<li | ||
class="rollable item-rollable attack-item" | ||
data-action="item-attack" | ||
data-item-id="{{attack.itemId}}" | ||
data-tooltip="Roll Attack" | ||
> | ||
{{{attack.display}}} | ||
</li> | ||
{{/each}} | ||
</ol> | ||
<label class="actions-label">{{localize 'SHADOWDARK.sheet.player.ranged_attacks'}}</label> | ||
<ol> | ||
{{#each attacks.ranged as |attack|}} | ||
<li | ||
class="rollable item-rollable attack-item" | ||
data-action="item-attack" | ||
data-item-id="{{attack.itemId}}" | ||
data-tooltip="Roll Attack" | ||
> | ||
{{{attack.display}}} | ||
</li> | ||
{{/each}} | ||
</ol> |
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,12 @@ | ||
<label class="actions-label">{{characterClass}} {{localize 'SHADOWDARK.sheet.abilities.label'}}</label> | ||
<ol> | ||
{{#each classAbilities as |ability|}} | ||
<li | ||
class="rollable item-rollable ability-item" | ||
data-action="ability-use" | ||
data-item-id="{{ability._id}}" | ||
> | ||
{{{ability.name}}} | ||
</li> | ||
{{/each}} | ||
</ol> |
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,70 +1,74 @@ | ||
<section class="effect-panel" style="{{topStyle}}"> | ||
<div id="effect-panel-drag-handler" /> | ||
{{#each conditionEffects as |effect|}} | ||
{{> effect effect=effect }} | ||
{{/each}} | ||
{{#each conditionEffects as |effect|}} | ||
{{> effect effect=effect }} | ||
{{/each}} | ||
|
||
{{#if (and conditionEffects.length (or temporaryEffects.length passiveEffects.length))}} | ||
<hr /> | ||
<hr /> | ||
{{/if}} | ||
|
||
{{#each temporaryEffects as |effect|}} | ||
{{> effect effect=effect }} | ||
{{/each}} | ||
{{#each temporaryEffects as |effect|}} | ||
{{> effect effect=effect }} | ||
{{/each}} | ||
|
||
{{#if (and temporaryEffects.length passiveEffects.length)}} | ||
<hr /> | ||
<hr /> | ||
{{/if}} | ||
|
||
{{#each passiveEffects as |effect|}} | ||
{{> effect effect=effect }} | ||
{{/each}} | ||
{{> effect effect=effect }} | ||
{{/each}} | ||
</section> | ||
|
||
{{#*inline "effect"}} | ||
<div class="effect-item"> | ||
<div class="effect-info"> | ||
<h1> | ||
{{effect.effectName}} ({{effect.originName}}) | ||
</h1> | ||
<div class="effect-item"> | ||
<div class="effect-info"> | ||
<h1> | ||
{{effect.effectName}} ({{effect.originName}}) | ||
</h1> | ||
|
||
<div class="tags"> | ||
<div class="tags"> | ||
{{#if effect.temporary}} | ||
<h2 class="duration">{{remainingTimeLabel effect}}</h2> | ||
{{else if effect.talentType}} | ||
<h2 class="talent"> | ||
{{#ifEq effect.talentType "level"}} | ||
{{localize "SHADOWDARK.talent.class.level"}} | ||
{{/ifEq}} | ||
{{#ifEq effect.talentType "ancestry"}} | ||
{{localize "SHADOWDARK.talent.class.ancestry"}} | ||
{{/ifEq}} | ||
{{#ifEq effect.talentType "class"}} | ||
{{localize "SHADOWDARK.talent.class.class"}} | ||
{{/ifEq}} | ||
</h2> | ||
{{/if}} | ||
</div> | ||
|
||
<h2> | ||
<em> | ||
{{localize "SHADOWDARK.apps.effect_panel.right_click_to_remove"}} | ||
</em> | ||
</h3> | ||
</div> | ||
|
||
<div | ||
class="icon" | ||
data-effect-id="{{effect.id}}" | ||
style="background-image: url({{effect.icon}});" | ||
> | ||
{{#if effect.temporary}} | ||
<h2 class="duration">{{remainingTimeLabel effect}}</h2> | ||
{{else if effect.talentType}} | ||
<h2 class="talent"> | ||
{{#ifEq effect.talentType "level"}} | ||
{{localize "SHADOWDARK.talent.class.level"}} | ||
{{/ifEq}} | ||
{{#ifEq effect.talentType "ancestry"}} | ||
{{localize "SHADOWDARK.talent.class.ancestry"}} | ||
{{/ifEq}} | ||
{{#ifEq effect.talentType "class"}} | ||
{{localize "SHADOWDARK.talent.class.class"}} | ||
{{/ifEq}} | ||
</h2> | ||
<i class="badge fas fa-xs fa-clock"></i> | ||
<div | ||
class="progress" | ||
style="--progress: {{effect.remainingDuration.progress}}%; | ||
{{getProgressColor effect.remainingDuration.progress}}" | ||
> | ||
</div> | ||
{{else}} | ||
<i class="badge unlimited fas fa-xs fa-infinity"></i> | ||
{{/if}} | ||
</div> | ||
|
||
<h2><em>{{localize "SHADOWDARK.apps.effect_panel.right_click_to_remove"}}</em></h3> | ||
</div> | ||
|
||
<div | ||
class="icon" | ||
data-effect-id="{{effect.id}}" | ||
style="background-image: url({{effect.icon}});" | ||
> | ||
{{#if effect.temporary}} | ||
<i class="badge fas fa-xs fa-clock"></i> | ||
<div | ||
class="progress" | ||
style="--progress: {{effect.remainingDuration.progress}}%; | ||
{{getProgressColor effect.remainingDuration.progress}}" | ||
> | ||
</div> | ||
{{else}} | ||
<i class="badge unlimited fas fa-xs fa-infinity"></i> | ||
{{/if}} | ||
</div> | ||
</div> | ||
{{/inline}} | ||
{{/inline}} |
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,22 +1,22 @@ | ||
<form> | ||
{{#each config}} | ||
<div class="form-group-stacked" data-id="{{id}}"> | ||
<label>{{label}}</label> | ||
<div class="form-fields"> | ||
<label> | ||
{{localize "SHADOWDARK.module_art_config.portraits"}} | ||
<input type="checkbox" name="{{id}}.portraits" {{checked portraits}}> | ||
</label> | ||
<label> | ||
{{localize "SHADOWDARK.module_art_config.tokens"}} | ||
<input type="checkbox" name="{{id}}.tokens" {{checked tokens}}> | ||
</label> | ||
</div> | ||
<label>{{label}}</label> | ||
<div class="form-fields"> | ||
<label> | ||
{{localize "SHADOWDARK.module_art_config.portraits"}} | ||
<input type="checkbox" name="{{id}}.portraits" {{checked portraits}}> | ||
</label> | ||
<label> | ||
{{localize "SHADOWDARK.module_art_config.tokens"}} | ||
<input type="checkbox" name="{{id}}.tokens" {{checked tokens}}> | ||
</label> | ||
</div> | ||
</div> | ||
{{/each}} | ||
<footer class="sheet-footer flexrow"> | ||
<button type="submit"> | ||
<i class="far fa-save"></i> {{localize "SHADOWDARK.settings.module_art.save"}} | ||
</button> | ||
<button type="submit"> | ||
<i class="far fa-save"></i> {{localize "SHADOWDARK.settings.module_art.save"}} | ||
</button> | ||
</footer> | ||
</form> |
Oops, something went wrong.