mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-15 19:34:32 +08:00
feat: 怪物边框
This commit is contained in:
1 parent
860f5c9fdb
commit
5933a0a146
2 files changed
+12
No files matched your search
@@ -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] ?? {};
|
||||
|
||||
/**
|
||||
* 选择这个怪物时
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"redSwordsman": {
|
||||
"box-shadow": "0px 0px 8px white"
|
||||
},
|
||||
"E374": {
|
||||
"box-shadow": "0px 0px 8px gray"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user