mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-19 08:56:08 +08:00
feat: 怪物边框
This commit is contained in:
parent
860f5c9fdb
commit
5933a0a146
@ -4,6 +4,7 @@
|
|||||||
@click="select"
|
@click="select"
|
||||||
@mousemove="enter"
|
@mousemove="enter"
|
||||||
:selected="selected"
|
:selected="selected"
|
||||||
|
:style="style"
|
||||||
>
|
>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="leftbar">
|
<div class="leftbar">
|
||||||
@ -113,6 +114,7 @@ import { has } from '../plugin/utils';
|
|||||||
import BoxAnimate from '../components/boxAnimate.vue';
|
import BoxAnimate from '../components/boxAnimate.vue';
|
||||||
import { isMobile } from '../plugin/use';
|
import { isMobile } from '../plugin/use';
|
||||||
import { ToShowEnemy } from '../plugin/ui/book';
|
import { ToShowEnemy } from '../plugin/ui/book';
|
||||||
|
import border from '@/data/enemyBorder.json';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
enemy: ToShowEnemy;
|
enemy: ToShowEnemy;
|
||||||
@ -128,6 +130,8 @@ const core = window.core;
|
|||||||
|
|
||||||
const w = window.innerWidth * 0.032;
|
const w = window.innerWidth * 0.032;
|
||||||
|
|
||||||
|
const style = border[props.enemy.enemy.enemy.id as keyof typeof border] ?? {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择这个怪物时
|
* 选择这个怪物时
|
||||||
*/
|
*/
|
||||||
|
8
src/data/enemyBorder.json
Normal file
8
src/data/enemyBorder.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"redSwordsman": {
|
||||||
|
"box-shadow": "0px 0px 8px white"
|
||||||
|
},
|
||||||
|
"E374": {
|
||||||
|
"box-shadow": "0px 0px 8px gray"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user