更换靶子图片
This commit is contained in:
@@ -108,11 +108,11 @@ watch(
|
|||||||
|
|
||||||
function calcRealX(num) {
|
function calcRealX(num) {
|
||||||
const len = 20 + num;
|
const len = 20 + num;
|
||||||
return `calc(${(len / 40) * 100}% - 10px)`;
|
return `calc(${(len / 40) * 100}% - 8px)`;
|
||||||
}
|
}
|
||||||
function calcRealY(num) {
|
function calcRealY(num) {
|
||||||
const len = num < 0 ? Math.abs(num) + 20 : 20 - num;
|
const len = num < 0 ? Math.abs(num) + 20 : 20 - num;
|
||||||
return `calc(${(len / 40) * 100}% - 10px)`;
|
return `calc(${(len / 40) * 100}% - 8px)`;
|
||||||
}
|
}
|
||||||
const simulShoot = async () => {
|
const simulShoot = async () => {
|
||||||
if (device.value.deviceId) await simulShootAPI(device.value.deviceId);
|
if (device.value.deviceId) await simulShootAPI(device.value.deviceId);
|
||||||
@@ -232,8 +232,8 @@ const simulShoot = async () => {
|
|||||||
}
|
}
|
||||||
.hit {
|
.hit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 20px;
|
width: 16px;
|
||||||
height: 20px;
|
height: 16px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 334 B |
Binary file not shown.
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 328 B |
Reference in New Issue
Block a user