1인칭 조준점: 리플레이의 선수 조준점 · 사이트 전체 내 조준점 설정 · v1.8.2

- 변환기 Crosshair.cs: BombPlayerState 에 복제된 선수 조준점 프로필(주 · 정조준 · 저격 점 · 이름)을 두 번째 읽기로 읽어 players[].crosshair (바뀐 시각마다 전체 설정). 첫 읽기 필드 목록으로 번호를 찾고 패치로 밀려도 이름이 맞는 자리를 찾는다. --fields 디버그, --self-test 에 자리 찾기 · 기본색 검사
- 사이트 lib/crosshair.ts 그리기 · 발로란트 조준점 코드 읽기, CrosshairPanel: 선수 조준점(없으면 내 조준점) / 모든 선수에 내 조준점, 직접 고치기 · 코드 가져오기 · 선수 조준점 복사
- 1인칭: 정조준 조준점 · 저격 조준경 가운데 점 · 사격/이동 오차로 벌어짐
- 앱 1.8.2 (버전이 바뀌면 리플레이를 다시 변환해 조준점이 생긴다)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-29 20:44:50 +09:00
parent 309974087b
commit 96fb41748b
13 changed files with 794 additions and 40 deletions

View File

@@ -4084,44 +4084,114 @@ button.match:hover {
border-radius: 6px;
padding: 3px 6px;
}
/* 1인칭 조준점: 발로란트 기본 (흰 안쪽 선 4개 · 가운데 틈 · 검은 외곽선) */
.r3d-cross {
/* 1인칭 조준점 (lib/crosshair.ts 가 그린다): 화면 가운데 */
.r3d-stage canvas.r3d-xcanvas {
position: absolute;
left: 50%;
top: 50%;
width: 0;
height: 0;
width: 240px;
height: 240px;
margin: -120px 0 0 -120px;
pointer-events: none;
z-index: 2;
z-index: 3;
cursor: default;
}
.r3d-cross i {
/* 조준점 설정 창 */
.r3d-xpanel {
position: absolute;
background: #fff;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
z-index: 4;
right: 10px;
bottom: 10px;
width: min(320px, calc(100% - 20px));
max-height: calc(100% - 20px);
overflow-y: auto;
padding: 10px 12px;
border-radius: 10px;
background: rgba(8, 14, 20, 0.92);
border: 1px solid var(--line);
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
}
.r3d-cross i:nth-child(1),
.r3d-cross i:nth-child(2) {
width: 2px;
height: 6px;
left: -1px;
.r3d-xhead {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.r3d-cross i:nth-child(1) {
top: -9px;
.r3d-xcheck {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
}
.r3d-cross i:nth-child(2) {
top: 3px;
.r3d-xplayer {
display: flex;
align-items: center;
gap: 10px;
}
.r3d-cross i:nth-child(3),
.r3d-cross i:nth-child(4) {
width: 6px;
height: 2px;
top: -1px;
.r3d-xplayer > div {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.r3d-cross i:nth-child(3) {
left: -9px;
.r3d-stage canvas.r3d-xprev {
width: 72px;
height: 72px;
flex: none;
border-radius: 8px;
background: #3a4651;
cursor: default;
}
.r3d-cross i:nth-child(4) {
left: 3px;
.r3d-xmine {
display: flex;
flex-direction: column;
gap: 6px;
border-top: 1px solid var(--line);
padding-top: 8px;
}
.r3d-xmine > .r3d-xprev {
align-self: center;
}
.r3d-xcode {
display: flex;
gap: 6px;
}
.r3d-xcode input {
flex: 1;
min-width: 0;
font-family: var(--font-mono);
font-size: 12px;
}
.r3d-xerr {
color: #ff9aa5;
}
.r3d-xrow {
display: grid;
grid-template-columns: 56px 1fr auto;
align-items: center;
gap: 6px;
}
.r3d-xrow input[type='range'] {
width: 100%;
accent-color: var(--accent);
}
.r3d-xrow .mono {
min-width: 30px;
text-align: right;
}
.r3d-xset {
border: 1px solid var(--line);
border-radius: 8px;
padding: 4px 8px 6px;
display: flex;
flex-direction: column;
gap: 4px;
}
.r3d-xset legend {
padding: 0 4px;
}
/* 저격총 줌: 둥근 조준경 밖은 검게, 가는 십자선 */
.r3d-scope {