Parcourir la source

Use icons instead of text for the action groups

master
Fen Dweller il y a 5 ans
Parent
révision
709076fcc0
1 fichiers modifiés avec 9 ajouts et 7 suppressions
  1. +9
    -7
      src/components/Combat.vue

+ 9
- 7
src/components/Combat.vue Voir le fichier

@@ -13,11 +13,11 @@
</div>
<div class="left-actions">
<div class="vert-display">
<h2>Group-moves</h2>
<i class="action-label fas fa-users" v-if="left.validGroupActions(combatants).length > 0"></i>
<ActionButton @described="described" @executed="executedLeft" v-for="action in left.validGroupActions(combatants)" :key="'right' + action.name" :action="action" :user="left" :target="right" :combatants="combatants" />
<h2>Moves</h2>
<i class="action-label fas fa-user-friends" v-if="left.validActions(right).length > 0"></i>
<ActionButton @described="described" @executed="executedLeft" v-for="action in left.validActions(right)" :key="'left' + action.name" :action="action" :user="left" :target="right" :combatants="combatants" />
<h2>Self-moves</h2>
<i class="action-label fas fa-user" v-if="left.validActions(left).length > 0"></i>
<ActionButton @described="described" @executed="executedLeft" v-for="action in left.validActions(left)" :key="'left' + action.name" :action="action" :user="left" :target="right" :combatants="combatants" />
</div>
<div>{{actionDescription}}</div>
@@ -27,11 +27,11 @@
</div>
<div class="right-actions">
<div class="vert-display">
<h2>Group-moves</h2>
<i class="action-label fas fa-users" v-if="right.validGroupActions(combatants).length > 0"></i>
<ActionButton @described="described" @executed="executedRight" v-for="action in right.validGroupActions(combatants)" :key="'right' + action.name" :action="action" :user="right" :target="left" :combatants="combatants" />
<h2>Moves</h2>
<i class="action-label fas fa-user-friends" v-if="right.validActions(left).length > 0"></i>
<ActionButton @described="described" @executed="executedRight" v-for="action in right.validActions(left)" :key="'right' + action.name" :action="action" :user="right" :target="left" :combatants="combatants" />
<h2>Self-moves</h2>
<i class="action-label fas fa-user" v-if="right.validActions(right).length > 0"></i>
<ActionButton @described="described" @executed="executedRight" v-for="action in right.validActions(right)" :key="'right' + action.name" :action="action" :user="right" :target="left" :combatants="combatants" />
</div>
</div>
@@ -258,6 +258,9 @@ a {
.statblock:hover[data-active] {
background: #666;
}
.action-label {
font-size: 200%;
}
</style>

<style>
@@ -376,5 +379,4 @@ div.right-move {
.combatant-picker {
flex: 1 1;
}

</style>

Chargement…
Annuler
Enregistrer