forked from GitHub-Mirrors/foundry-sw5e
Add files via upload
This commit is contained in:
parent
a59213e72e
commit
36e5bee2f4
7 changed files with 212 additions and 0 deletions
26
templates/apps/ability-use.html
Normal file
26
templates/apps/ability-use.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<form id="ability-use-form">
|
||||
<p>{{ localize "SW5E.AbilityUseHint" }} <strong>{{item.name}}</strong> {{ localize "SW5E.Ability" }}.</p>
|
||||
|
||||
<p type="note">
|
||||
{{#if recharges}}
|
||||
{{ localize "SW5E.AbilityUseRechargeHint" }} <strong>{{#if isCharged}}{{ localize "SW5E.AbilityUseCharged" }}{{else}}{{ localize "SW5E.AbilityUseDepleted" }}{{/if}}</strong>.</p>
|
||||
{{else}}
|
||||
{{ localize "SW5E.AbilityUseWarnStart" }} <strong>{{uses.value}} {{ localize "SW5E.of" }} {{uses.max}}</strong> {{ localize "SW5E.AbilityUseWarnEnd" }} {{perLabel}}.
|
||||
{{/if}}
|
||||
{{#unless canUse}}
|
||||
{{ localize "SW5E.AbilityUseCantUse" }}
|
||||
{{/unless}}
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="checkbox">{{ localize "SW5E.AbilityUseConsume" }} <input type="checkbox" name="consume" {{checked consume}}/></label>
|
||||
|
||||
{{#if hasPlaceableTemplate}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox">{{ localize "SW5E.PlaceTemplate" }}
|
||||
<input type="checkbox" name="placeTemplate" checked/>
|
||||
</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</form>
|
44
templates/apps/actor-flags.html
Normal file
44
templates/apps/actor-flags.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<p class="notes">{{localize 'SW5E.FlagsInstructions'}}</p>
|
||||
|
||||
{{#each flags as |fs section|}}
|
||||
<h3 class="form-header">{{localize section}}</h3>
|
||||
{{#each fs as |flag key|}}
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize flag.name}}</label>
|
||||
|
||||
{{#if flag.isCheckbox}}
|
||||
<input type="checkbox" name="{{key}}" data-dtype="Boolean" {{checked flag.value}}/>
|
||||
|
||||
{{else if flag.isSelect}}
|
||||
<select name="{{key}}" data-dtype="{{flag.type}}">
|
||||
{{#select flag.value}}
|
||||
{{#each flag.choices as |v k|}}
|
||||
<option value="{{k}}">{{localize v}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
{{else}}
|
||||
<input type="text" name="{{key}}" value="{{flag.value}}" placeholder="{{flag.placeholder}}" data-dtype="{{flag.type}}"/>
|
||||
{{/if}}
|
||||
|
||||
<p class="notes">{{flag.hint}}</p>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
|
||||
<h3 class="form-header">{{localize "SW5E.Bonuses"}}</h3>
|
||||
<p class="notes">{{localize "SW5E.BonusesHint"}}</p>
|
||||
{{#each bonuses as |b|}}
|
||||
<div class="form-group">
|
||||
<label>{{localize b.label}}</label>
|
||||
<input type="text" name="{{b.name}}" value="{{b.value}}"/>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
<button type="submit" name="submit">
|
||||
<i class="far fa-save"></i> {{localize 'SW5E.FlagsSave'}}
|
||||
</button>
|
||||
</form>
|
34
templates/apps/cast-cast.html
Normal file
34
templates/apps/cast-cast.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<form id="cast-config-form">
|
||||
<p>{{ localize "SW5E.SpellCastHint" }} <strong>{{item.name}}</strong> {{ localize "SW5E.cast" }}.</p>
|
||||
|
||||
{{#unless canCast}}
|
||||
<p class="notification error">{{ localize "SW5E.SpellCastNoSlots" }}</p>
|
||||
{{/unless}}
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.SpellCastUpcast" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="level">
|
||||
{{#select item.data.level}}
|
||||
{{#each castLevels as |l|}}
|
||||
<option value="{{l.level}}" {{#unless l.canCast}}disabled{{/unless}}>{{l.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{#if canUpcast}}
|
||||
<label class="checkbox">{{ localize "SW5E.SpellCastConsume" }} <input type="checkbox" name="consume" {{checked canCast}}/></label>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasPlaceableTemplate}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox">{{ localize "SW5E.PlaceTemplate" }}
|
||||
<input type="checkbox" name="placeTemplate" checked/>
|
||||
</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</form>
|
28
templates/apps/polymorph-prompt.html
Normal file
28
templates/apps/polymorph-prompt.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<div class="dialog-content">
|
||||
{{#each content.i18n}}
|
||||
<div>
|
||||
<label class="checkbox" for="{{@key}}">
|
||||
<input type="checkbox" id="{{@key}}" name="{{@key}}" {{checked (lookup ../content.options @key)}}>
|
||||
{{this}}
|
||||
</label>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#unless content.isToken}}
|
||||
<hr>
|
||||
<div>
|
||||
<label class="checkbox" for="transformTokens">
|
||||
<input type="checkbox" id="transformTokens" name="transformTokens"
|
||||
{{checked content.options.transformTokens}}>
|
||||
{{localize 'SW5E.PolymorphTokens'}}
|
||||
</label>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
<div class="dialog-buttons">
|
||||
{{#each buttons as |button id|}}
|
||||
<button class="dialog-button" data-button="{{id}}">
|
||||
{{{button.icon}}}
|
||||
{{{button.label}}}
|
||||
</button>
|
||||
{{/each}}
|
||||
</div>
|
34
templates/apps/power-cast.html
Normal file
34
templates/apps/power-cast.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<form id="power-config-form">
|
||||
<p>{{ localize "SW5E.PowerCastHint" }} <strong>{{item.name}}</strong> {{ localize "SW5E.power" }}.</p>
|
||||
|
||||
{{#unless canCast}}
|
||||
<p class="notification error">{{ localize "SW5E.PowerCastNoSlots" }}</p>
|
||||
{{/unless}}
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.PowerCastUpcast" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="level">
|
||||
{{#select item.data.level}}
|
||||
{{#each powerLevels as |l|}}
|
||||
<option value="{{l.level}}" {{#unless l.canCast}}disabled{{/unless}}>{{l.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{#if canUpcast}}
|
||||
<label class="checkbox">{{ localize "SW5E.PowerCastConsume" }} <input type="checkbox" name="consume" {{checked canCast}}/></label>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasPlaceableTemplate}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox">{{ localize "SW5E.PlaceTemplate" }}
|
||||
<input type="checkbox" name="placeTemplate" checked/>
|
||||
</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</form>
|
29
templates/apps/short-rest.html
Normal file
29
templates/apps/short-rest.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<form id="short-rest-hd" class="dialog-content" onsubmit="event.preventDefault();">
|
||||
<p>{{ localize "SW5E.ShortRestHint" }}</p>
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ShortRestSelect" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="hd">
|
||||
{{#select denomination}}
|
||||
{{#each availableHD as |num denom|}}
|
||||
<option value="{{denom}}">{{denom}} ({{num}} {{ localize "SW5E.available" }})</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<button id="roll-hd" {{#unless canRoll}}disabled{{/unless}}>
|
||||
<i class="fas fa-dice-d20"></i> {{ localize "Roll" }}
|
||||
</button>
|
||||
</div>
|
||||
{{#unless canRoll}}
|
||||
<p class="notes">{{ localize "SW5E.ShortRestNoHD" }}</p>
|
||||
{{/unless}}
|
||||
</div>
|
||||
<div class="dialog-buttons">
|
||||
{{#each buttons as |button id|}}
|
||||
<button class="dialog-button" data-button="{{id}}">
|
||||
{{{button.icon}}}
|
||||
{{{button.label}}}
|
||||
</button>
|
||||
{{/each}}
|
||||
</div>
|
||||
</form>
|
17
templates/apps/trait-selector.html
Normal file
17
templates/apps/trait-selector.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<form autocomplete="off" onsubmit="event.preventDefault();">
|
||||
<ol class="trait-list">
|
||||
{{#each choices as |choice key|}}
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="{{key}}" data-dtype="Boolean" {{checked choice.chosen}}>
|
||||
{{choice.label}}
|
||||
</label>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.TraitSelectorSpecial" }}</label>
|
||||
<input type="text" name="custom" value="{{custom}}" data-dtype="String"/>
|
||||
</div>
|
||||
<button type="submit" name="submit" value="1"><i class="far fa-save"></i> {{ localize "SW5E.Save"}}</button>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue