From e2c40c312366d7411aa628f2e82c1555c7263329 Mon Sep 17 00:00:00 2001 From: swrring Date: Sun, 29 Nov 2026 00:05:54 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9B=90=EA=B2=A9=20=EC=BB=B4=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=98=A4=EB=A5=98=202=EA=B1=B4=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0=20=E2=80=94=20=E3=80=8C=EC=84=A0=ED=83=9D=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=9B=20=ED=99=94=EB=A9=B4=20=EB=A7=9E=EC=B6=A4=E3=80=8D=20?= =?UTF-8?q?=EC=A0=95=EC=9D=98=20=EC=98=AC=EB=A6=BC(BattleHUD.DeskCoverScre?= =?UTF-8?q?enY=20=C2=B7=20Unit.BodyArea=20=C2=B7=20battle=5Fhud.csv=20sele?= =?UTF-8?q?ct=5Fframe)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사용 코드(SlingshotInput.FrameAboveDesk)는 44f38089 에 먼저 올라갔는데 정의가 이 PC 작업 폴더에만 미커밋으로 남아 있어, 다른 PC 에서 최신을 받으면 CS1061 2건(SlingshotInput.cs 946 · 950)으로 컴파일이 깨졌다. 정의만 골라 올림 — 같은 파일의 다른 작업(위험 범위 단추 상태 · InBodyCircle · ReviveForScene)은 넣지 않음. 확인 = 이 커밋의 소스만 Unity 컴파일러로 따로 컴파일(TKS.Runtime · TKS.Editor · TKS.Tests.PlayMode) 오류 0 · 직전 원격은 같은 방법으로 오류 2 재현. (PD 2026-11-28 「이 PC에서 작업 후 푸시되지 않은 항목을 체크해서 에러를 해결해야 해」) Co-Authored-By: Claude Fable 5.2 --- Assets/Resources/UI/Battle/battle_hud.csv | 1 + Assets/Scripts/Runtime/BattleHUD.cs | 19 +++++++++++++++++++ Assets/Scripts/Runtime/Unit.cs | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/Assets/Resources/UI/Battle/battle_hud.csv b/Assets/Resources/UI/Battle/battle_hud.csv index e87675c3..bb9b0c7d 100644 --- a/Assets/Resources/UI/Battle/battle_hud.csv +++ b/Assets/Resources/UI/Battle/battle_hud.csv @@ -74,6 +74,7 @@ pause_giveup,210|1030|310|110|btn_l_red|#C8473A|40,포기 버튼 칸|스킨|틴 pause_continue,560|1030|310|110|btn_l_yellow|#FFFFFF|40,계속 버튼(주 버튼) unit_name_outline,0.012,전장 유닛 이름표 외곽선 두께(월드 · 0 = 없음 · 0.018 → 0.012 PD 2026-11-21 5차 「색감 칙칙 · 인게임 아웃라인 두꺼움」) cam_hud,210|-32,카메라 여유(화면 px) 위 = 띠 + 턴 현판 밑에 유닛이 안 깔리게|아래 = 탁자 지금 높이 + 이 값(두루마리 종이 윗변이 판 위끝보다 32 아래 · 그 투명한 틈에 전장이 보이게 · 1안) +select_frame,24,유닛을 고르면 정보판(지휘 탁자 · 판 밖 초상 · 스킬 이름표) 윗선 위로 그 유닛 그림 전체(강조 원)가 보이게 화면을 내림 = 윗선과의 여유(설계 px · PD 2026-11-25 「캐릭터 선택 시 스킬 정보 UI가 너무 영웅을 많이 가리고 있어 · 항상 영웅이 온전히 보일 수 있도록」 · SlingshotInput.FrameAboveDesk) settings_btn,TR|982|8|96|88,설정 버튼 누름 칸(오른쪽 끝 · PD 2026-11-21 2차 「설정 버튼은 우측 가장자리」 · 누름 = 중단 팝업 계속 / 포기) settings_btn_art,|#00000000|bt_pause|72,바탕 스킨(비움 = 아이콘만)|바탕 틴트|아이콘(PD 2026-11-25 「톱니 → || 형태 · 기능 = 중단 팝업 그대로」 = 팩 Icon_Pause · 톱니 lobby_option 은 로비 설정 전용)|아이콘 크기 stage_title,TS|36|0|500|104,스테이지 제목 칸(큰 제목 + 회색 부제 = 아웃게임 제목 띠 「임무 일일 · 주간 · 업적」 방식 · 오른쪽 = 수 칩 앞까지) diff --git a/Assets/Scripts/Runtime/BattleHUD.cs b/Assets/Scripts/Runtime/BattleHUD.cs index 15807613..1d47b783 100644 --- a/Assets/Scripts/Runtime/BattleHUD.cs +++ b/Assets/Scripts/Runtime/BattleHUD.cs @@ -1095,6 +1095,25 @@ namespace TKS return false; } + static readonly Vector3[] coverCorners = new Vector3[4]; + + /// + /// 정보판(지휘 탁자)이 다 올라와 내용이 보일 때 전장을 가리는 윗선(화면 px · 아래에서) — 판 밖으로 튀어나온 초상 · 스킬 이름표 그림 포함 · + /// 아직 다 올라오지 않았으면 -1(SlingshotInput.FrameAboveDesk · PD 2026-11-25 「스킬 정보 UI가 영웅을 가림」). + /// + public float DeskCoverScreenY() + { + if (desk == null || deskBody == null || !deskBody.gameObject.activeInHierarchy) return -1f; + float top = -1f; + foreach (var g in desk.GetComponentsInChildren(false)) + { + if (!g.enabled || g.sprite == null || g.color.a < 0.05f) continue; + g.rectTransform.GetWorldCorners(coverCorners); + for (int i = 0; i < 4; i++) top = Mathf.Max(top, RectTransformUtility.WorldToScreenPoint(uiCam, coverCorners[i]).y); + } + return top; + } + /// /// 지휘 탁자(아래 정보판) 위 터치 = 전장으로 넘기지 않는다(영웅 선택 유지 · PD 2026-11-24 「영웅을 선택한 후 UI 영역은 터치해도 영웅 선택이 해제되지 않도록」) · /// 스킬 정보 칸(패시브 칸)에 액티브가 떠 있을 때 그 칸 누름 = 액티브 발동 대기만 취소(예약 · 지점 선택 = 취소 · 쿨 소모 없음 / 즉시 시전 「한 번 더 터치」 대기 = 풀림 / 쿨 중 잠깐 보인 설명 = 닫음) → 칸 = 다시 패시브 diff --git a/Assets/Scripts/Runtime/Unit.cs b/Assets/Scripts/Runtime/Unit.cs index 2da00123..665d9ae3 100644 --- a/Assets/Scripts/Runtime/Unit.cs +++ b/Assets/Scripts/Runtime/Unit.cs @@ -159,6 +159,24 @@ namespace TKS if (!Sim.Active && Died != null) Died(this); } + /// + /// 그림 전체를 감싸는 칸(가운데 · 가로 · 세로 반지름 · 월드) — 학습 안내 강조 원(TutorialDirector · 둥근 테 = 큰 쪽 반지름 원)과 + /// 터치 판정(BattleManager.UnitAtTouch · 조준 시작)이 같은 칸을 쓴다(PD 2026-11-25 「하이라이트 되는 영웅 주위 원형 공간만큼 터치 조작이 가능하도록」). + /// 그림 = 발(−0.55 R) 부터 키(ArtHeight) + 0.3 · 그림 없는 도형 유닛 = 판정 원 × 1.5. + /// + public void BodyArea(out Vector2 center, out Vector2 half) + { + if (View != null && View.HasArt) + { + float h = ArtHeight + 0.3f; + center = Position + new Vector2(0f, -Radius * 0.55f + ArtHeight * 0.5f); + half = new Vector2(Mathf.Max(Radius * 1.5f, h * 0.42f), h * 0.5f); + return; + } + center = Position; + half = Vector2.one * Radius * 1.5f; + } + public void SetOverwatch(bool on) { Overwatch = on && IsAlive;