Interrupt UI progress
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<div class="d-flex flex-column justify-center align-center">
|
||||
<v-btn-toggle
|
||||
:value="value"
|
||||
color="accent"
|
||||
@change="emitInput"
|
||||
>
|
||||
<v-btn :value="-1">
|
||||
Disadvantage
|
||||
</v-btn>
|
||||
<v-btn :value="1">
|
||||
Advantage
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
<div style="position: relative;">
|
||||
<v-scale-transition
|
||||
origin="center center"
|
||||
>
|
||||
<vertical-hex
|
||||
v-if="value"
|
||||
id="extra-hex"
|
||||
style="position:absolute; transition: margin-left 0.3s ease;"
|
||||
:style="{marginLeft: value == 1 ? '24px' : '-24px'}"
|
||||
disable-hover
|
||||
/>
|
||||
</v-scale-transition>
|
||||
<vertical-hex
|
||||
id="roll-hex"
|
||||
@click="$emit('continue')"
|
||||
>
|
||||
<div>
|
||||
Roll
|
||||
</div>
|
||||
</vertical-hex>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="js">
|
||||
import VerticalHex from '/imports/client/ui/components/VerticalHex.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
VerticalHex
|
||||
},
|
||||
props: {
|
||||
value: {
|
||||
type: Number,
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
emitInput(e) {
|
||||
e = e || 0;
|
||||
console.log(e);
|
||||
this.$emit('input', e)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
32
app/imports/client/ui/creature/actions/input/RollInput.vue
Normal file
32
app/imports/client/ui/creature/actions/input/RollInput.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div
|
||||
class="d-flex flex-column justify-center align-center"
|
||||
@click="rollDice"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script lang="js">
|
||||
import VerticalHex from '/imports/client/ui/components/VerticalHex.vue';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
value: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
dice: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
rollDice() {
|
||||
|
||||
},
|
||||
emitInput(e) {
|
||||
e = e || 0;
|
||||
this.$emit('input', e)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user