New client spells (#8950)

* Added initial spell casting

* added casting

* Added spells style

* Fixed linting issues

* Added escape

* Added casting

* Added task drag style
This commit is contained in:
Keith Holliday
2017-08-15 12:28:30 -06:00
committed by GitHub
parent bd19b83db4
commit 24b9bd6ccc
7 changed files with 377 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template lang="pug">
.avatar(:style="{width, height, paddingTop}", :class="backgroundClass")
.avatar(:style="{width, height, paddingTop}", :class="backgroundClass", @click.prevent='castEnd()')
.character-sprites
template(v-if="!avatarOnly")
// Mount Body
@@ -185,6 +185,10 @@ export default {
return result;
},
castEnd (e) {
if (!this.$store.state.castingSpell) return;
this.$root.$emit('castEnd', this.member, 'user', e);
},
},
};
</script>