Second round de corrections et améliorations
This commit is contained in:
37
templates/chat/creature-roll.html
Normal file
37
templates/chat/creature-roll.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<div class="mgt2-chat-roll mgt2-creature-roll">
|
||||
<div class="mgt2-roll-header">
|
||||
<img class="creature-chat-img" src="{{creatureImg}}" title="{{creatureName}}" />
|
||||
<div class="mgt2-roll-header-text">
|
||||
<span class="mgt2-roll-char-name">{{creatureName}}</span>
|
||||
<div class="mgt2-roll-meta">
|
||||
<span class="mgt2-roll-type">{{rollLabel}}</span>
|
||||
{{#if difficulty}}
|
||||
<span class="mgt2-roll-sep">•</span>
|
||||
<span class="mgt2-roll-difficulty">{{difficultyLabel}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if modifiers}}
|
||||
<div class="mgt2-roll-modifiers">
|
||||
{{#each modifiers as |mod|}}
|
||||
<span class="mgt2-roll-mod-tag">{{mod}}</span>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="dice-roll">
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">{{formula}}</div>
|
||||
{{{tooltip}}}
|
||||
<h4 class="dice-total {{#if success}}success{{else if failure}}failure{{/if}}">{{total}}</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if success}}
|
||||
<div class="mgt2-outcome is-success"><i class="fa-solid fa-check"></i> {{ localize 'MGT2.Chat.Roll.Success' }}</div>
|
||||
{{else if failure}}
|
||||
<div class="mgt2-outcome is-failure"><i class="fa-solid fa-xmark"></i> {{ localize 'MGT2.Chat.Roll.Failure' }}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user