starting dices implementation
This commit is contained in:
62
system/templates/dice/chat-roll.html
Normal file
62
system/templates/dice/chat-roll.html
Normal file
@@ -0,0 +1,62 @@
|
||||
<div class="l5r5e dice-roll">
|
||||
{{#if isPublicRoll }}
|
||||
|
||||
<div class="l5r5e dice-formula">{{formula}}</div>
|
||||
|
||||
{{#if l5r5e.stance}}
|
||||
<div class="l5r5e dice-stance">
|
||||
{{l5r5e.skillId}} ({{l5r5e.stance}})
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="l5r5e dice-result">
|
||||
|
||||
{{#if l5r5e.dicesTypes.l5r}}
|
||||
<div class="l5r5e item-display dices-l5r">
|
||||
{{#each l5r5e.dices}}
|
||||
{{#if this.diceTypeL5r}}
|
||||
{{#each this.rolls}}
|
||||
<span class="l5r5e chat-dice">{{{this.result}}}</span>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
{{#l5r5e.summary}}
|
||||
<ul>
|
||||
<li>Successes: {{this.success_total}}</li>
|
||||
|
||||
{{#if opportunity}}
|
||||
<li>Opportunities: {{this.opportunity}}</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if strife}}
|
||||
<li>Strife: {{this.strife}}</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if difficulty}}
|
||||
<li>Difficulty: {{this.difficulty}}</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{/l5r5e.summary}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if l5r5e.dicesTypes.std}}
|
||||
|
||||
<div class="l5r5e dices-std">
|
||||
{{#each results}}
|
||||
{{#each this.rolls}}
|
||||
<span class="l5r5e chat-dice">{{{this.result}}}</span>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{{tooltip}}}
|
||||
<h4 class="l5r5e dice-total dice-total-std">{{total}}</h4>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
20
system/templates/dice/tooltip.html
Normal file
20
system/templates/dice/tooltip.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="dice-tooltip">
|
||||
{{#each parts}}
|
||||
<section class="tooltip-part">
|
||||
<div class="dice">
|
||||
<header class="part-header flexrow">
|
||||
<span class="part-formula">{{this.formula}}</span>
|
||||
{{#if this.flavor}}<span class="part-flavor">{{this.flavor}}</span>{{/if}} <span class="part-total">{{this.total}}</span>
|
||||
</header>
|
||||
<ol class="dice-rolls">
|
||||
{{#each this.rolls}}
|
||||
<li class="roll {{this.classes}}">{{{this.result}}}</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
<ol class="dice-rolls">
|
||||
<li class="roll">{{{addedResults.success}}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
{{/each}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user