feat: 怪物边框

This commit is contained in:
unanmed 2023-12-01 21:44:37 +08:00
parent 860f5c9fdb
commit 5933a0a146
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,7 @@
@click="select"
@mousemove="enter"
:selected="selected"
:style="style"
>
<div class="info">
<div class="leftbar">
@ -113,6 +114,7 @@ import { has } from '../plugin/utils';
import BoxAnimate from '../components/boxAnimate.vue';
import { isMobile } from '../plugin/use';
import { ToShowEnemy } from '../plugin/ui/book';
import border from '@/data/enemyBorder.json';
const props = defineProps<{
enemy: ToShowEnemy;
@ -128,6 +130,8 @@ const core = window.core;
const w = window.innerWidth * 0.032;
const style = border[props.enemy.enemy.enemy.id as keyof typeof border] ?? {};
/**
* 选择这个怪物时
*/

View File

@ -0,0 +1,8 @@
{
"redSwordsman": {
"box-shadow": "0px 0px 8px white"
},
"E374": {
"box-shadow": "0px 0px 8px gray"
}
}