修改靶点颜色和字体

This commit is contained in:
kron
2025-11-26 17:49:09 +08:00
parent da7816bb88
commit c697a7edd0
3 changed files with 25 additions and 18 deletions

View File

@@ -129,7 +129,7 @@ async function onReceiveMessage(messages = []) {
setTimeout(() => {
if (props.scores[0]) {
circleColor.value =
msg.userId === props.scores[0].playerId ? "#ff4444" : "blue";
msg.userId === props.scores[0].playerId ? "#ff4444" : "#1840FF";
}
angle.value = msg.target.angle;
}, 200);
@@ -223,13 +223,7 @@ onBeforeUnmount(() => {
:style="{
left: calcRealX(bow.x),
top: calcRealY(bow.y),
backgroundColor:
index === scores.length - 1 &&
!blueScores.length &&
latestOne &&
mode !== 'team'
? 'green'
: '#ff4444',
backgroundColor: mode === 'solo' ? '#00bf04' : '#FF0000',
}"
><text>{{ index + 1 }}</text></view
>
@@ -243,7 +237,7 @@ onBeforeUnmount(() => {
:style="{
left: calcRealX(bow.x),
top: calcRealY(bow.y),
backgroundColor: 'blue',
backgroundColor: '#1840FF',
}"
>
<text>{{ index + 1 }}</text>
@@ -320,21 +314,22 @@ onBeforeUnmount(() => {
border: 1px solid #fff;
z-index: 1;
color: #fff;
font-size: 2.1vw;
box-sizing: border-box;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
align-items: center;
/* transform: translate(-50%, -50%); */
}
.hit > text {
transform: scaleX(0.7);
font-size: 16rpx;
font-family: "DINCondensed", "PingFang SC", "Helvetica Neue", Arial,
sans-serif;
line-height: 10px;
display: block;
font-weight: bold;
width: 100%;
text-align: center;
line-height: 22rpx;
margin-top: 2px;
}
.header {
width: 100%;

View File

@@ -295,20 +295,23 @@ onMounted(async () => {
text-align: center;
line-height: 10px;
box-sizing: border-box;
background-color: #ff4444;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
background-color: #00bf04;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
transition: all 0.1s linear;
position: relative;
}
.point > text {
display: block;
font-size: 12rpx;
font-size: 16rpx;
line-height: 10px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scaleX(0.7);
font-family: "DINCondensed", "PingFang SC", "Helvetica Neue", Arial,
sans-serif;
transform: translate(-50%, -50%);
margin-top: 1px;
}
.edit-buttons {