ThreeKingdomsSlingshot/Assets/Scripts/Editor/TitleCapture.cs

35 lines
1.5 KiB
C#
Raw Normal View History

타이틀 화면 — 장수 모임 등장 · R22 대기 모션 · 꾸미기 연출 · Press Any Key(PD 2026-11-13 확정) - OutGame/UI/TitleScreen.cs: BootFlow.TitleProvider 등록(메모리 세이브 = 테스트·캡처는 건너뜀 → 기존처럼 바로 로비) 장수 6명이 화면 밖에서 뒷줄→앞줄로 모임(착지 흙먼지) → 로고 내려앉음·둥실·반짝이 → Press Any Key 깜박임 누름 = 등장 중이면 건너뜀 · 글자가 뜬 뒤면 검정 페이드 → 로비 · 타이틀 동안 아래 루트 캔버스 끔 층(P41) = 루트 Static(배경 · cover) → Ambient Frame(햇살·빛 번짐·흙먼지·불씨) → Stage Frame(장수·로고·글자 · contain) - 표 Resources/UI/title_screen.csv(자리·등장 박자·대기 유지 초·깜빡임·로고·글자·페이드) · title_ambient.csv(LobbyAmbient) - 그림 Resources/UI/Title/(배경 · 로고 A · 장수 6 × R22 자동 리그 4자세+깜빡임 · pack) · 아틀라스 UI_Title(ui_atlas.csv folder 1줄) - LobbyAmbient.Load: 테마에 없는 id 가 경로면 Resources 폴백(1줄) - 캡처 TitleCaptureDriver + Editor/TitleCapture(-executeMethod TKS.EditorTools.TitleCapture.Capture -titleDir) · 테스트 TitleScreenTests 8 - 검증: 에디터 TitleScreenTests 8/8 · BootFlowTests 4/4 · OutGameTests.Lobby_Tabs_Back_ComingSoon 1/1 · QA r1 B4(화면비) → r2 PASS(B 0) - 의존: BootFlow.cs·LoadingScreen.cs(로딩 화면 세션 · 아직 미커밋) — 그 커밋 뒤 push Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 03:50:04 +00:00
using TKS.OutGame;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
namespace TKS.EditorTools
{
/// <summary>
/// 타이틀 화면 검증 캡처(PD 2026-11-13) — 사본 프로젝트에서:
/// Unity.exe -projectPath &lt;사본&gt; -force-d3d11 -executeMethod TKS.EditorTools.TitleCapture.Capture -titleDir &lt;dir&gt;
/// 메모리 세이브 · Battle 씬 → Play → TitleCaptureDriver 가 찍고 스스로 종료(UI 캡처와 따로 · 1회 ≈ 수십 초).
/// </summary>
public static class TitleCapture
{
public static void Capture()
{
string dir = GetArg("-titleDir");
if (string.IsNullOrEmpty(dir)) dir = System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "Logs", "title_capture");
타이틀 6~11차 — 로고 A4(용호) · Fable 연출(부딪힘 → 박힘·번쩍임 → 장수 쑥) · 하늘 다시 그림 · 타이틀 별도 씬(Splash 회사 CI → CDN 확인 → Title → Battle) (PD 2026-11-16) - 로고 A4 = 로고 A 제목·먹 띠(7차 「기존이 훨씬 좋아」) + 붉은 부제 판 「천지를 까다」 가운데 아래 + 판 끝을 문·짚은 좌청룡·우백호(바둑판·바둑알 삭제) · 부품 Resources/UI/Title/logo(band·title·plate·dragon·tiger·burst) - 연출(10차 · Fable 시안 「용호상박이 현판을 낳는다」): 0.65 s 청룡·백호 가운데 부딪힘 → 판이 펼쳐지며 밀어냄 → 1.05 s 박힘 + 「삼국지」 쾅 + 번쩍임 → 장수 6명 제자리에서 쑥 · TitleScreen 새 움직임 clash · burst · leap:0 · option flash·clash - 배치(8·10차): 유비 왼쪽 위 · 황충·조운 6차 자리 관계 · 제갈량 가운데 아래 · 하늘(9차 욱일기 연상) = 방사 햇살·붉은 해 없는 배경 · rays 줄 삭제 - 별도 씬(11차): Assets/Scenes/Splash.unity(SplashBoot · 회사 CI ci_nerdnavis) → Title.unity(TitleSceneBoot · 이 씬만 Play = 타이틀 시험) → Battle(GameBootstrap = 바로 로비) · 빌드 순서 Splash·Title·Battle · SceneSwitch(씬 사이 검정 페이드) · BootScenesSetup(씬·빌드 순서 만들기) - CDN: CdnDownloader(표 boot_flow.csv cdn 줄 · 목록 파일에 있고 로컬에 없거나 크기 다른 파일만 받음 · 주소 비었거나 목록 없음 = 바로 타이틀) · 지금 CDN 주소 없음 → 확인 건너뜀 · BootFlow.BeginThen - 검증 캡처: Title 씬 · 연출 시계 고정(FixedClock · 30fps 확인 영상) · 캡처 중 입력 무시(IgnoreInput) - 검증: TitleScreenTests + BootFlowTests 16/16(사본 배치 · 새 4 = CDN 3 · Splash → Title → Battle 씬 1) · QA S4 PASS(B 0 · M 3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 08:17:35 +00:00
EditorSceneManager.OpenScene(BootScenesSetup.TitlePath, OpenSceneMode.Single); // 2026-11-16 타이틀 = 별도 씬(누름 → Battle 씬 로비 · 끝에 Splash → Title 흐름 확인)
타이틀 화면 — 장수 모임 등장 · R22 대기 모션 · 꾸미기 연출 · Press Any Key(PD 2026-11-13 확정) - OutGame/UI/TitleScreen.cs: BootFlow.TitleProvider 등록(메모리 세이브 = 테스트·캡처는 건너뜀 → 기존처럼 바로 로비) 장수 6명이 화면 밖에서 뒷줄→앞줄로 모임(착지 흙먼지) → 로고 내려앉음·둥실·반짝이 → Press Any Key 깜박임 누름 = 등장 중이면 건너뜀 · 글자가 뜬 뒤면 검정 페이드 → 로비 · 타이틀 동안 아래 루트 캔버스 끔 층(P41) = 루트 Static(배경 · cover) → Ambient Frame(햇살·빛 번짐·흙먼지·불씨) → Stage Frame(장수·로고·글자 · contain) - 표 Resources/UI/title_screen.csv(자리·등장 박자·대기 유지 초·깜빡임·로고·글자·페이드) · title_ambient.csv(LobbyAmbient) - 그림 Resources/UI/Title/(배경 · 로고 A · 장수 6 × R22 자동 리그 4자세+깜빡임 · pack) · 아틀라스 UI_Title(ui_atlas.csv folder 1줄) - LobbyAmbient.Load: 테마에 없는 id 가 경로면 Resources 폴백(1줄) - 캡처 TitleCaptureDriver + Editor/TitleCapture(-executeMethod TKS.EditorTools.TitleCapture.Capture -titleDir) · 테스트 TitleScreenTests 8 - 검증: 에디터 TitleScreenTests 8/8 · BootFlowTests 4/4 · OutGameTests.Lobby_Tabs_Back_ComingSoon 1/1 · QA r1 B4(화면비) → r2 PASS(B 0) - 의존: BootFlow.cs·LoadingScreen.cs(로딩 화면 세션 · 아직 미커밋) — 그 커밋 뒤 push Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 03:50:04 +00:00
SessionState.SetBool(SaveStore.MemoryFlagKey, true);
SessionState.SetString(TitleCaptureDriver.DirKey, dir);
Debug.Log("[TKS] 타이틀 캡처 시작 → " + dir);
EditorApplication.EnterPlaymode();
}
static string GetArg(string name)
{
var args = System.Environment.GetCommandLineArgs();
for (int i = 0; i < args.Length - 1; i++)
if (args[i] == name) return args[i + 1];
return null;
}
}
}