|
|
|
@@ -15,17 +15,19 @@ |
|
|
|
<div id="log"> |
|
|
|
</div> |
|
|
|
<div class="left-actions"> |
|
|
|
<h2>Your moves</h2> |
|
|
|
<div class="vert-display"> |
|
|
|
<h2>Moves</h2> |
|
|
|
<ActionButton @executed="executedLeft" v-for="action in left.validActions(right)" :key="'left' + action.name" :action="action" :user="left" :target="right" /> |
|
|
|
<h2>Self-moves</h2> |
|
|
|
<ActionButton @executed="executedLeft" v-for="action in left.validActions(left)" :key="'left' + action.name" :action="action" :user="left" :target="right" /> |
|
|
|
</div> |
|
|
|
<div>{{actionDescription}}</div> |
|
|
|
</div> |
|
|
|
<div class="right-actions"> |
|
|
|
<h2>Enemy moves</h2> |
|
|
|
<div class="vert-display"> |
|
|
|
<h2>Moves</h2> |
|
|
|
<ActionButton @executed="executedRight" v-for="action in right.validActions(left)" :key="'right' + action.name" :action="action" :user="right" :target="left" /> |
|
|
|
<h2>Self-moves</h2> |
|
|
|
<ActionButton @executed="executedRight" v-for="action in right.validActions(right)" :key="'right' + action.name" :action="action" :user="right" :target="left" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@@ -129,11 +131,11 @@ export default class Combat extends Vue { |
|
|
|
} |
|
|
|
|
|
|
|
.left-actions { |
|
|
|
grid-area: 4 / 1 / 5 / 2; |
|
|
|
grid-area: 4 / 1 / 6 / 2; |
|
|
|
} |
|
|
|
|
|
|
|
.right-actions { |
|
|
|
grid-area: 4 / 3 / 5 / 4; |
|
|
|
grid-area: 4 / 3 / 6 / 4; |
|
|
|
} |
|
|
|
|
|
|
|
h3 { |
|
|
|
@@ -159,6 +161,8 @@ a { |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
flex-wrap: wrap; |
|
|
|
justify-content: start; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
|