forked from GitHub-Mirrors/foundry-sw5e
Add files via upload
This commit is contained in:
parent
3abfb6b88f
commit
30ff0a63ff
5 changed files with 142 additions and 0 deletions
22
templates/chat/consumable-card.html
Normal file
22
templates/chat/consumable-card.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="sw5e chat-card consumable-card" data-actor-id="{{actor._id}}" data-item-id="{{item._id}}" {{#if tokenId}}data-token-id="{{tokenId}}"{{/if}}>
|
||||
<header class="card-header flexrow">
|
||||
<img src="{{item.img}}" title="{{item.name}}" width="36" height="36"/>
|
||||
<h3>{{item.name}}</h3>
|
||||
</header>
|
||||
|
||||
<div class="card-content">{{{data.description.value}}}</div>
|
||||
|
||||
<div class="card-buttons">
|
||||
{{#if data.hasCharges}}
|
||||
<button data-action="consume">{{ localize "SW5E.Use" }} {{data.consumableType.str}}</button>
|
||||
{{else}}
|
||||
<button disabled>{{ localize "SW5E.NoCharges" }}</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<footer class="card-footer">
|
||||
{{#each data.properties}}
|
||||
<span>{{this}}</span>
|
||||
{{/each}}
|
||||
</footer>
|
||||
</div>
|
49
templates/chat/item-card.html
Normal file
49
templates/chat/item-card.html
Normal file
|
@ -0,0 +1,49 @@
|
|||
<div class="sw5e chat-card item-card" data-actor-id="{{actor._id}}" data-item-id="{{item._id}}"
|
||||
{{#if tokenId}}data-token-id="{{tokenId}}"{{/if}} {{#if isPower}}data-power-level="{{item.data.level}}"{{/if}}>
|
||||
<header class="card-header flexrow">
|
||||
<img src="{{item.img}}" title="{{item.name}}" width="36" height="36"/>
|
||||
<h3 class="item-name">{{item.name}}</h3>
|
||||
</header>
|
||||
|
||||
<div class="card-content">
|
||||
{{{data.description.value}}}
|
||||
{{#if data.materials.value}}
|
||||
<p><strong>{{ localize "SW5E.RequiredMaterials" }}.</strong> {{data.materials.value}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="card-buttons">
|
||||
{{#if hasAttack}}<button data-action="attack">{{ localize "SW5E.Attack" }}</button>{{/if}}
|
||||
|
||||
{{#if hasDamage}}
|
||||
<button data-action="damage">
|
||||
{{#if isHealing}}{{ localize "SW5E.Healing" }}
|
||||
{{else}}{{localize "SW5E.Damage" }}{{/if}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if isVersatile}}
|
||||
<button data-action="versatile">{{ localize "SW5E.Versatile" }}</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasSave}}
|
||||
<button data-action="save" data-ability="{{data.save.ability}}" disabled>
|
||||
{{ localize "SW5E.Save" }} {{labels.save}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if data.formula}}
|
||||
<button data-action="formula">{{ localize "SW5E.OtherFormula"}}</button>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasAreaTarget}}
|
||||
<button data-action="placeTemplate">{{ localize "SW5E.PlaceTemplate" }}</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<footer class="card-footer">
|
||||
{{#each data.properties}}
|
||||
<span>{{this}}</span>
|
||||
{{/each}}
|
||||
</footer>
|
||||
</div>
|
20
templates/chat/roll-dialog.html
Normal file
20
templates/chat/roll-dialog.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<form>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.Formula" }}</label>
|
||||
<input type="text" name="formula" value="{{formula}}" disabled/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.RollSituationalBonus" }}</label>
|
||||
<input type="text" name="bonus" value="" placeholder="{{ localize 'SW5E.RollExample' }}"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.RollMode" }}</label>
|
||||
<select name="rollMode">
|
||||
{{#select rollMode}}
|
||||
{{#each rollModes as |label mode|}}
|
||||
<option value="{{mode}}">{{localize label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
18
templates/chat/tool-card.html
Normal file
18
templates/chat/tool-card.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div class="sw5e chat-card item-card" data-actor-id="{{actor._id}}" data-item-id="{{item._id}}" {{#if tokenId}}data-token-id="{{tokenId}}"{{/if}}>
|
||||
<header class="card-header flexrow">
|
||||
<img src="{{item.img}}" title="{{item.name}}" width="36" height="36"/>
|
||||
<h3>{{item.name}}</h3>
|
||||
</header>
|
||||
|
||||
<div class="card-content">{{{data.description.value}}}</div>
|
||||
|
||||
<div class="card-buttons">
|
||||
<button data-action="toolCheck" data-ability="{{data.ability.value}}">{{ localize "SW5E.Use" }} {{item.name}}</button>
|
||||
</div>
|
||||
|
||||
<footer class="card-footer">
|
||||
{{#each data.properties}}
|
||||
<span>{{this}}</span>
|
||||
{{/each}}
|
||||
</footer>
|
||||
</div>
|
33
templates/chat/tool-roll-dialog.html
Normal file
33
templates/chat/tool-roll-dialog.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<form>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.Formula" }}</label>
|
||||
<input type="text" name="formula" value="{{formula}}" disabled/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.AbilityModifier" }}</label>
|
||||
<select name="ability">
|
||||
{{#select data.item.ability}}
|
||||
{{#each config.abilities as |ability a|}}
|
||||
<option value="{{a}}">{{ability}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.RollSituationalBonus" }}</label>
|
||||
<input type="text" name="bonus" value="" placeholder="{{ localize 'SW5E.RollExample' }}"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.RollMode" }}</label>
|
||||
<select name="rollMode">
|
||||
{{#select rollMode}}
|
||||
{{#each rollModes as |label mode|}}
|
||||
<option value="{{mode}}">{{localize label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue