Overhauled spell casting UX

This commit is contained in:
Stefan Zermatten
2022-02-27 22:14:32 +02:00
parent 49fa9cc470
commit e6c7d79d7d
17 changed files with 557 additions and 244 deletions

View File

@@ -3,10 +3,12 @@
v-if="model.icon"
:shape="model.icon.shape"
:color="color"
:class="{disabled}"
/>
<v-icon
v-else
:color="color"
:class="{disabled}"
>
{{ icon }}
</v-icon>
@@ -25,6 +27,7 @@ export default {
type: String,
default: undefined,
},
disabled: Boolean,
},
computed: {
icon(){
@@ -33,3 +36,9 @@ export default {
},
}
</script>
<style lang="css" scoped>
.svg-icon.disabled, .v-icon.disabled {
opacity: 0.2;
}
</style>