diff --git a/Assets/Data/UI/ui_atlas.csv b/Assets/Data/UI/ui_atlas.csv index 66565490..7788a444 100644 --- a/Assets/Data/UI/ui_atlas.csv +++ b/Assets/Data/UI/ui_atlas.csv @@ -9,6 +9,7 @@ theme,UI_TreasureL,/treasure_l/,2048,보물 상세 정보·상자 결과 팝업 theme,UI_TreasureS,/treasure_s/,2048,보물 상세 정보 무대용 유물 240² 30장(PD 2026-11-17 12차 「상세 화면 유물과 배경 톤이 안 맞음」 · Fable 안 A = _l 에서 바깥 검정 띠 얇게 + 검정 → 고동 · 상세 무대에서만 쓰임 · 진열장·결과 팝업 = UI_TreasureL 그대로) theme,UI_Growth,/Samguk/growth/,1024,영웅 성장 화면(정보 · 진화 · 각성 · 외형 · PD 2026-11-20 재설계) 메뉴 아이콘 4 · 각성석 · 비서 · 자물쇠 2 · 메뉴 판 · 장면 창 테 · 등급 도장 — 영웅 상세 · 성장 창에서만 theme,UI_Mission,/Samguk/mission/,1024,임무 화면(PD 2026-11-20 재디자인 · 본영 마당 방 게시판) 줄 아이콘 8(호패 · 탑 · 쌍칼 · 투구 · 과녁 · 충차 · 사슬 · 비급) — 임무 화면에서만 +theme,UI_Workshop,/Samguk/workshop/,1024,공방 화면(채굴 · 제작 · PD 2026-11-25 리소스) 도구 아이콘 3(곡괭이 · 쇠말뚝 · 화약) · 철광석 · 칸 그림 7(흙 · 자갈 · 바위 · 암반 · 철광맥 · 금강석 · 판 칸) — 화면 배경 = frame_bg/bg_ws_*(아래 import 줄) theme,UI_Common,*,4096,모든 화면 공통 크롬(틀·버튼·바·탭·재화·병과·작은 아이콘) — 위 줄에 안 걸린 테마 스프라이트 전부 folder,WorldMap_UI,Assets/Resources/ChapterMap/UI,2048,월드맵 부품(깃발·띠·판·별·커서) — 폴더 전체 option,single_area,,262144,이 넓이(px) 넘는 큰 그림(로비 바탕·키아트·로고·패턴)은 아틀라스에 넣지 않음 — 한 장 = 드로우콜 1 · 아틀라스 공간 낭비 방지 @@ -16,6 +17,7 @@ option,padding,,4,스프라이트 간격(px) import,skill_icon,/skill_icon/,128,스킬 아이콘 원본 256² → 128² 로 임포트(표시 = 틀 126 px 안쪽 판 ≈ 80 px · 149장이 2048 한 장에 들어감) import,bg_lobby,/frame_bg/bg_lobby,2048,로비 배경 원본 1080×1920 그대로 임포트(Samguk 기본 1024 → 576×1024 로 줄어 1080 화면에서 흐림 · PD 2026-11-11 「배경 위에 따로 올린 어색한 느낌」) import,dom_bg,/UI/Domestic/,2048,내정 배경 3장(1080×1920)·두루마리(1007×1418) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-12) +import,ws_bg,/frame_bg/bg_ws_,2048,공방 장면 배경 2장(갱도 막장 · 대장간 1080×1920 · PD 2026-11-25 「보물 · 내정 메뉴와 같이 아트 화풍을 살려」) 원본 그대로 임포트(기본 1024 = 흐림) folder,UI_Loading,Assets/Resources/UI/Loading/pack,2048,로딩 화면 달리기 프레임(조운 14 · 병졸 10·11) · 진행 바 · 먼지(PD 2026-11-13) — Frame 층 한 장 = 드로우콜 1 · 배경(1080×1920)은 폴더 밖(한 장) folder,UI_LoadingSimple,Assets/Resources/UI/Loading/pack_simple,2048,일반 로딩 화면(검은 화면) 유비·관우·장비 말 타고 질주 프레임 30 · 캡슐 바 · 먼지(PD 2026-11-13) — 다운로드 화면 UI_Loading 과 따로(한 화면 = 한 장) folder,UI_Yeonmu,Assets/Resources/UI/Yeonmu/fx,2048,연무장 허브 연출(PD 2026-11-18) 깃발 2 + 바탕 2 · 구름 2 + 그림자 2 · z 2 · 건초 2 · 화살 · 불똥 · 반짝 · 흙먼지 · 번짐 · 꽃잎 3 · 새 2 · 풀꽃 4(복사본 = 한 장에 묶어 연출 층 드로우콜 최소) — 생성 = Tools/yeonmu_fx.py diff --git a/Assets/Resources/UI/FirstFlow/first_flow_config.csv b/Assets/Resources/UI/FirstFlow/first_flow_config.csv index d60fc7e4..b0a67426 100644 --- a/Assets/Resources/UI/FirstFlow/first_flow_config.csv +++ b/Assets/Resources/UI/FirstFlow/first_flow_config.csv @@ -20,9 +20,11 @@ bubble,430|620|250|0,말풍선(말하기) = 왼 x|폭|높이|대화 칸 아래 bubble_small,300|750|250|0,말풍선(가리키기 · 누르기 = 포트레이트를 작게) = 왼 x|폭|높이|아래에서 y bubble_text,38|28|#3D2112|44|40|34|1.15|40,대사 글자 = 크기|최소 크기|색|좌우 여백|위 여백|아래 여백|줄 간격|초당 글자 수(누르면 전부 표시) name_tag,40|0|56|30|26|#FFFFFF,이름표 = 말풍선 왼쪽에서 x|말풍선 위끝에서 y(가운데)|높이|글자|좌우 여백|글자 색 · 그림 = Scenario/name_tag · 바탕색 = speaker.* 4번째 +bubble_art,bt_scroll_panel|2.6|76|38|76|44,대사 판 그림(같은 지시 = 인트로 자막과 같은 전투 하단 두루마리 · 9 분할 배율 · 글자 여백 왼|위|오른|아래 · 빈칸 = 예전 Scenario/bubble 말풍선) +name_tag_art,tre_plaque|1.7|44,이름표 그림(PD 2026-11-25 「튜토리얼 메시지 팝업창도 임시 디자인으로 보여 디자인 개선」 = 보물 · 공방 탭과 같은 붉은 칠 명패 · 9 분할 배율 · 좌우 여백 · 말하는 사람 색으로 물들이지 않음 · 빈칸 = 예전 Scenario/name_tag) portrait,250|170|400|340,포트레이트(말하기) = 가운데 x|가운데 y(대화 칸 아래에서)|그림 크기|둥근 받침 크기 portrait_small,180|140|300|260,포트레이트(가리키기 · 누르기) = 가운데 x|가운데 y|그림 크기|받침 크기 -next_mark,34|-44|34|#B8433A|0.9,다음 표시(▼) = 글자 크기|말풍선 오른쪽에서 x|아래에서 y|색|깜박임 주기(초) +next_mark,50|-64|40|#7A2A1A|0.9,다음 표시(▼) = 글자 크기|말풍선 오른쪽에서 x|아래에서 y|색|깜박임 주기(초) focus_frame,10|8|#F2B33D|1.0|0.55,대상 강조 테 = 대상 둘레 여백|테 굵기|색(금빛)|숨쉬기 주기(초)|가장 흐릴 때(0~1) finger,150|0.22|-0.18|16|0.7,손가락(누르기 줄 · 테마 아이콘 tut_hand) = 크기|대상 가운데에서 x(폭 비율)|y(높이 비율)|까딱임 px|주기(초) speaker.helper,ff_name_helper|UI/Guide/helper_|npc_woman|#8A5A2B|#F6D5CF,도우미 여인 = 이름 키|그림 경로 앞부분(+ 표정 normal · smile · wistful)|납품 전 임시 유닛 그림(Units/<이름>)|이름표 색|받침 색 diff --git a/Assets/Resources/UI/UITheme.asset b/Assets/Resources/UI/UITheme.asset index 4238227d..bd6b85ec 100644 --- a/Assets/Resources/UI/UITheme.asset +++ b/Assets/Resources/UI/UITheme.asset @@ -2358,6 +2358,14 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: d952b02c586324547a20a5ffbf43e5a4, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: bt_hud_enemy_left + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 48a9efbeb58859e4f9136941a66b175c, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: bt_hud_loot + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 011fc0e8f41026e4986dc98e860aac3e, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} - id: bt_jade_box pack: {fileID: 0} samguk: {fileID: 21300000, guid: 60aab6bd1df9a9d42bb9a4b653e86dd8, type: 3} @@ -2458,6 +2466,14 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: c92b51c72fd7f734d94dd019bc56516e, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: bt_sub_ribbon + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: ea2ae561c145d8542bdb089df143a55f, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: bt_sub_scroll + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: c137dce1886d759428c02acb55ac943c, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} - id: bt_tag_panel pack: {fileID: 0} samguk: {fileID: 21300000, guid: 4dab6569f7ee1624fa190984757bcc0c, type: 3} @@ -2466,6 +2482,14 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: 93cc64b14bb0a13418a22584814e4933, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: bt_top_band + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 5487637374c093e4e9ded546665a62b5, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: bt_top_beam + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 2b4327a7d7230b04ab2edb4bbe07963a, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} - id: bt_turn_plaque_ally pack: {fileID: 0} samguk: {fileID: 21300000, guid: cf8f4ce284b1a814c96705f33e05a845, type: 3} @@ -2486,6 +2510,14 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: 8489bf056564f4e4790c3df7a3cb2daf, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: bg_ws_forge + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 1cbcbdcc59fbf3f479880f8dc4ef949b, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: bg_ws_mine + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 31376a5ba8f7eab43a8cc273f5b888e5, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} - id: gacha_bang pack: {fileID: 0} samguk: {fileID: 21300000, guid: bafa8e5c1a8989a4fbbe258d0c756451, type: 3} @@ -2666,6 +2698,10 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: c7d5c5fdb0f26c34db40248bc372ddfb, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: tab_workshop + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 060ed3c13c9c43b4586f410d7b7085b4, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} - id: ic_ms_boss pack: {fileID: 0} samguk: {fileID: 21300000, guid: b5ccdeec2eb63e0408e027ef1d7ef1bc, type: 3} @@ -3862,6 +3898,98 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: 6419344617284b8286db29fcaad3ced2, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: fx_chip + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: ea94c0d1f336c9f44a0e90942ec8533c, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: fx_dirt + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 0b0243000f11f8a4a8308a2977ce6dca, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: fx_dust + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: bb459a4dc83dd91458656693b120e549, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_blk_bedrock + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: adaff3d001a683843a5830e1af97fc41, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_blk_diamond + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: b10c0699e1659eb4e9706252d4a3ea6e, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_blk_gravel + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 1306a8c28916c434a995c6b29ecf97e7, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_blk_iron_vein + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 56ee77ff4b222ca4fa1cf25aa956a1fa, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_blk_rock + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 7f8b4fe4a42d6c04fa01e3b045060504, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_blk_soil + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 7502ecac517dcb84eae56d9cdc457dc5, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_1 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 390b68784a7a48941875268c3d493072, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_2 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 994813f15a7f4474081265efff55cb2d, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_3 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 04d699bd038960c49b17969c4738b199, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_4 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: d92b60b914d3a664c9c78cdcc7f951d6, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_5 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: e36c935e42ed2e34aa11721d7567aac8, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_6 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 550d68331fec14945b6e5e61fdb56209, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_7 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: d24e91bfd889b1549aa1f63c757c9557, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_8 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 0673efc60f237694d8dd7d992923fbf7, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_crack_9 + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 3e668f2adb3f25f4b86bc1c505e67118, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_iron_ore + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: ab3d3ee862e48a347a7bef4fccd99586, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_pick + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 18aafcef168d25447be6a28e40c48613, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_powder + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 76fce653d29d40b42ab043fb75fad4ed, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_stake + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 8c2e77faf22e77a42bbd2c21b1c16aab, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: ws_tab_craft + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 36f37e68df08f374a8d1b403f9a16839, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} titleFont: {fileID: 12800000, guid: c39a7a9926c7dcf4891011de7f09b4b3, type: 3} bodyFont: {fileID: 12800000, guid: 9465d06e87caef04e8ec29e8ab4670ef, type: 3} bodyBoldFont: {fileID: 12800000, guid: 1f8be275dd6c50e4ab53f7529ed55727, type: 3} diff --git a/Assets/Resources/UI/workshop_scene.csv b/Assets/Resources/UI/workshop_scene.csv new file mode 100644 index 00000000..8f6df4d9 --- /dev/null +++ b/Assets/Resources/UI/workshop_scene.csv @@ -0,0 +1,7 @@ +# 공방 장면 표(PD 2026-11-25 「전반적인 UI 가 삼국지 프로젝트에 적합하게 디자인되지 않은 느낌 · 보물 · 내정 메뉴와 같이 아트 화풍을 살려 다시」) — 코드 = OutGame/Workshop/WorkshopScreen(ShowScene · DomesticScene.Backdrop) +# s_kind = <장면>_<종류> · 장면 = mine(채굴 = 갱도 막장) · forge(제작 = 대장간) — 배경 좌표 = 그 배경 그림 px(1080×1920) · 왼쪽 위 0,0 · 아래로 + · 그림을 바꾸면 이 표만 고친다(C45) +# view s_sprite = 배경 테마 아이콘(Assets/UI/Samguk/frame_bg/<이름>.png) · f_w,f_h = 좌표 기준 크기 · f_y = 본문 맨 위에 오는 그림 줄 · f_scale = 화면 폭 대비 배율(크면 가운데 기준 확대) +s_kind,i_n,i_slot,s_sprite,f_x,f_y,f_w,f_h,f_scale,f_amp,f_period,f_waves,f_billow,f_shade,f_phase,f_min,f_max,f_speed,f_gap_min,f_gap_max,f_first,i_count,f_stand,f_ready,f_hit,f_hold,f_rest,s_color,s_note +mine_view,,,bg_ws_mine,,60,1080,1920,1,,,,,,,,,,,,,,,,,,,,갱도 막장(Krea 2 seed 123 · R23 틀 · 위 갱목 들보 + 홍등 2 · 양옆 버팀목 · 아래 광차 · 곡괭이 상자 · 가운데 = 칸 격자가 얹히는 바위 벽) +forge_view,,,bg_ws_forge,,180,1080,1920,1,,,,,,,,,,,,,,,,,,,,대장간(Krea 2 seed 133 · R23 틀 · 위 가운데 화로 · 풀무 · 공구 벽 · 양옆 무기 걸이 · 물통 · 아래 = 목록이 얹히는 빈 돌바닥) +forge_sheet,118,,dom_scroll,145,240,70,222,2,,,,,,,,,,,,,,,,,,,,제작 주문서 종이(PD 2026-11-25 3차) = 내정 개발 양피지 dom_scroll(1007×1418) 9 분할 · f_x = 좌우 테두리 px · f_y = 위(축 + 종이 위끝 240) · f_h = 아래(222) · f_scale = 배율(테두리 ÷ 2) · f_w = 종이 안쪽 여백(화면 px) · i_n = 목록 아래 여백(아래 축 위) diff --git a/Assets/Resources/UI/workshop_scene.csv.meta b/Assets/Resources/UI/workshop_scene.csv.meta new file mode 100644 index 00000000..54c15497 --- /dev/null +++ b/Assets/Resources/UI/workshop_scene.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e27699726e539a24f96ee096e6f376cb +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/OutGame/FirstFlow/FirstFlowGuide.cs b/Assets/Scripts/OutGame/FirstFlow/FirstFlowGuide.cs index 802c308a..4c38f7d6 100644 --- a/Assets/Scripts/OutGame/FirstFlow/FirstFlowGuide.cs +++ b/Assets/Scripts/OutGame/FirstFlow/FirstFlowGuide.cs @@ -38,6 +38,8 @@ namespace TKS.OutGame Image portrait; Image bubble; Image nameTag; + bool nameArt; // 이름표 = 붉은 칠 명패(표 name_tag_art · 말하는 사람 색으로 물들이지 않음) + float namePad = -1f; Text nameText; Text body; Text nextMark; @@ -155,6 +157,17 @@ namespace TKS.OutGame body.resizeTextMaxSize = (int)At(bt, 0, 38f); body.lineSpacing = At(bt, 6, 1.15f); body.raycastTarget = false; + // 대사 판 = 표 bubble_art 그림(전투 하단 두루마리 bt_scroll_panel · PD 2026-11-25 「튜토리얼 메시지 팝업창 디자인 개선」 · 인트로 자막과 같은 판) · 없으면 예전 말풍선 + var ba = L("bubble_art"); // 그림 | 9 분할 배율 | 글자 여백 왼 | 위 | 오른 | 아래 + var bs = ba.Length > 0 && ba[0].Trim().Length > 0 ? UISkin.Icon(ba[0].Trim()) : null; + if (bs != null) + { + bubble.sprite = bs; + bubble.type = bs.border != Vector4.zero ? Image.Type.Sliced : Image.Type.Simple; + bubble.pixelsPerUnitMultiplier = Mathf.Max(0.01f, At(ba, 1, 1f)); + body.rectTransform.offsetMin = new Vector2(At(ba, 2, 44f), At(ba, 5, 34f)); + body.rectTransform.offsetMax = new Vector2(-At(ba, 4, 44f), -At(ba, 3, 40f)); + } charsPerSec = Mathf.Max(1f, At(bt, 7, 40f)); UiLayer.Nest(body.gameObject, UiRate.Frame, false); // 한 글자씩 나오는 동안만 바뀜 — 포트레이트 · 말풍선을 다시 묶지 않게 var nm = L("next_mark"); // 글자 크기 | 말풍선 오른쪽에서 x | 아래에서 y | 색 | 깜박임 주기 @@ -168,6 +181,16 @@ namespace TKS.OutGame nameTag.sprite = Resources.Load("Scenario/name_tag"); nameTag.type = nameTag.sprite != null ? Image.Type.Sliced : Image.Type.Simple; nameTag.raycastTarget = false; + var na = L("name_tag_art"); // 그림 | 9 분할 배율 | 좌우 여백 + var ns = na.Length > 0 && na[0].Trim().Length > 0 ? UISkin.Icon(na[0].Trim()) : null; + if (ns != null) + { + nameTag.sprite = ns; + nameTag.type = ns.border != Vector4.zero ? Image.Type.Sliced : Image.Type.Simple; + nameTag.pixelsPerUnitMultiplier = Mathf.Max(0.01f, At(na, 1, 1f)); + nameArt = true; + namePad = At(na, 2, 40f); + } nameText = UiKit.Title(UiKit.FillLabel(nameTag.transform, "", (int)At(nt, 3, 30f), ScreenTable.Col(nt, 5, Color.white)), true); nameText.horizontalOverflow = HorizontalWrapMode.Overflow; nameText.raycastTarget = false; @@ -222,10 +245,10 @@ namespace TKS.OutGame block.sizeDelta = new Vector2(DesignW, top); nameTag.gameObject.SetActive(req.name.Length > 0); - nameTag.color = req.tagTint; + nameTag.color = nameArt ? Color.white : req.tagTint; nameText.text = req.name; var nt = L("name_tag"); - nameTag.rectTransform.sizeDelta = new Vector2(Mathf.Ceil(nameText.preferredWidth) + 2f * At(nt, 4, 26f), nameTag.rectTransform.sizeDelta.y); + nameTag.rectTransform.sizeDelta = new Vector2(Mathf.Ceil(nameText.preferredWidth) + 2f * (namePad >= 0f ? namePad : At(nt, 4, 26f)), nameTag.rectTransform.sizeDelta.y); body.text = ""; nextMark.gameObject.SetActive(false); diff --git a/Assets/Scripts/OutGame/UI/BattleResultPanel.cs b/Assets/Scripts/OutGame/UI/BattleResultPanel.cs index d73485d2..e87dd922 100644 --- a/Assets/Scripts/OutGame/UI/BattleResultPanel.cs +++ b/Assets/Scripts/OutGame/UI/BattleResultPanel.cs @@ -14,12 +14,15 @@ namespace TKS.OutGame { // 패널 배치(UI px · 패널 왼쪽 위 기준) const float PW = 920f; - const float PH = 1340f; // 전리품 줄(상자 장비 칸 + 꼬리표)만큼 키움(2026-11-23 스테이지 보상 드랍) + const float PH = 1420f; // 글자 1.2 배 · 스테이지 정보 줄(+80 · PD 2026-11-24) + 전리품 줄(+260 · 2026-11-23 스테이지 보상 드랍) — 두 PC 변경 합침 const float Side = 60f; const float RowW = PW - Side * 2f; const float RowH = 64f; const float Tile = 132f; const float BtnY = PH - 40f - 110f; + // 승전보 두루마리 = 본문 판보다 옆 · 위 · 아래로 넓게(축이 본문 · 버튼을 덮지 않게) · 제목 명패 크기 + const float PaperSide = 28f, PaperTop = 70f, PaperBottom = 96f, PlaqueW = 700f, PlaqueH = 150f; + bool paper; readonly OutGameRoot root; readonly GameObject go; @@ -70,20 +73,43 @@ namespace TKS.OutGame RectTransform froot; UiKit.SectionPanel(holder, "Frame", 0f, 0f, PW, PH, false, false, out froot); var pt = (Transform)holder; + // 승전보(PD 2026-11-25 「인게임 결과창도 우리 게임의 컨셉과 화풍에 맞게 통일감 있는 디자인」) = 양피지 두루마리(공방 제작 주문서 · 출정 군령장과 같은 판) · 위아래 축은 본문 밖으로 + var paperImg = UiKit.Fill("Paper", holder, -PaperSide, -PaperSide, -PaperTop, -PaperBottom).gameObject.AddComponent(); + paperImg.raycastTarget = false; + paper = PaperScroll.Apply(paperImg); + if (paper) + { + paperImg.transform.SetAsFirstSibling(); + var fr = holder.Find("Frame"); + if (fr != null) fr.gameObject.SetActive(false); + } + else Object.Destroy(paperImg.gameObject); var rib = UiKit.Rect("Ribbon", pt, new Vector2(0.5f, 1f), new Vector2(0.5f, 0.5f), new Vector2(0f, 10f), new Vector2(1000f, 200f)); ribbon = UiKit.Skin(rib, "ribbon", Color.white); title = UiKit.Title(UiKit.FillLabel(rib, "", 88, UiKit.White, TextAnchor.MiddleCenter, true, 150f), true); title.rectTransform.offsetMin = new Vector2(150f, 34f); - // 별 3 = 받침 원(Circle78 chip_dark) + 별(가운데 크게 · 위로) · 0.15 s 간격 튀김 - starRow = UiKit.At(pt, "StarRow", 0f, 120f, PW, 190f); + var plaque = paper ? UISkin.Icon("tre_plaque") : null; + if (plaque != null) + { + // 제목 = 붉은 칠 명패(서양식 팩 리본 대신 · PD 2026-11-21 「리본 형태 UI 가 어울리지 않음」 · 패배 = 어두운 칠) + rib.sizeDelta = new Vector2(PlaqueW, PlaqueH); + var gl = rib.Find(UISkin.OverlayName); + if (gl != null) gl.gameObject.SetActive(false); + ribbon.sprite = plaque; + ribbon.type = Image.Type.Sliced; + ribbon.pixelsPerUnitMultiplier = plaque.rect.height / PlaqueH; + title.fontSize = 76; + title.rectTransform.offsetMin = new Vector2(90f, 10f); + title.rectTransform.offsetMax = new Vector2(-90f, -10f); + } + // 별 3 = 받침 원 없이 별만 크게(PD 2026-11-24 「별 크기를 키우고 둥근 프레임 제거」) · 가운데 크게 · 위로 · 0.15 s 간격 튀김 + starRow = UiKit.At(pt, "StarRow", 0f, 110f, PW, 220f); UiLayer.Nest(starRow.gameObject, UiRate.Frame, false); // 별 3 튀김 = 한 Frame 층(별마다 캔버스를 만들지 않음 · PD 2026-11-10) for (int i = 0; i < 3; i++) { bool mid = i == 1; - float plate = mid ? 150f : 120f; - var pos = new Vector2((i - 1) * 190f, mid ? 12f : -14f); - UiKit.Skin(UiKit.Rect("Plate" + i, starRow, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), pos, new Vector2(plate, plate)), "circle_frame", UiKit.Col("chip_dark", UiKit.Dark)); - starImg[i] = UiKit.Icon(starRow, "star_on_l", new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), pos + new Vector2(0f, 4f), mid ? 132f : 106f); + var pos = new Vector2((i - 1) * 215f, mid ? 14f : -16f); + starImg[i] = UiKit.Icon(starRow, "star_on_l", new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), pos, mid ? 176f : 140f); if (starImg[i] == null) continue; UiKit.DropShadow(starImg[i], 5f); starImg[i].gameObject.AddComponent().delay = 0.15f * i; @@ -91,6 +117,8 @@ namespace TKS.OutGame body = UiKit.Fill("Body", pt); retry = UiKit.SkinBtn(pt, "Retry", "round08", UiKit.Col("menu_btn", UiKit.Dark), "다시", 34, UiKit.White, Side, BtnY, 260f, 110f, () => root.RetryStage()); retryCost = UiKit.BtnCost(retry, "cur_stamina", "", 36f, 28); // 재도전 = 군량 소모 표시(검수 결함 2) + if (paper) retry.GetComponent().color = UiKit.Col("ws_btn_wood", new Color(0.47f, 0.3f, 0.18f)); // 승전보 위 = 나무색(남색 팩 칠이 혼자 튀지 않게 · QA r3 M10) + stageLine = UiKit.Title(UiKit.Label(pt, "", 34, UiKit.Col("text_soft", UiKit.InkSoft), TextAnchor.MiddleCenter, new Vector2(0.5f, 1f), new Vector2(0.5f, 1f), new Vector2(0f, -334f), new Vector2(RowW, 52f), false)); // 스테이지 정보(PD 2026-11-24 「제목은 승리 · 패배만 · 스테이지 정보는 메뉴 안」) ok = UiKit.SkinBtn(pt, "Ok", UISkin.Has("btn_l_yellow") ? "btn_l_yellow" : "button", UISkin.Has("btn_l_yellow") ? UiKit.White : UiKit.Coin, OkText, 46, UiKit.Col("text_on_yellow", UiKit.Ink), PW - Side - 520f, BtnY, 520f, 110f, null); } else @@ -104,9 +132,51 @@ namespace TKS.OutGame plain.lineSpacing = 1.15f; UiKit.Label(panel.transform, "화면을 탭하면 계속", 34, UiKit.InkSoft, TextAnchor.MiddleCenter, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0f, 36f), new Vector2(800f, 60f), false); } + BuildTip(dim); + ApplyGameFont(dim, 1.12f); // 게임 글꼴 + 조금 크게(PD 2026-11-24 「우리 게임 폰트 · 모바일에서 잘 보이게」) — 본문은 Fill 에서 따로 go.SetActive(false); } + Text stageLine; + GameObject tipRoot; + + /// + /// 게임 팁 = 팝업 밖 아래의 「!」 말풍선(PD 2026-11-24 「팝업 UI 에 표시하지 말고 게임 팁 형태로 하단에 별도의 ! 말풍선」) — 패배 때만. + /// + void BuildTip(RectTransform dim) + { + var tr = UiKit.Rect("Tip", dim, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0f, 150f), new Vector2(PW, 120f)); + tipRoot = tr.gameObject; + var bubble = UiKit.Rect("Bubble", tr, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(46f, 0f), new Vector2(PW - 92f, 104f)); + if (UiKit.Skin(bubble, "round08", UiKit.Col("tip_bubble", new Color(0.13f, 0.14f, 0.22f, 0.94f))) == null) UiKit.Paint(bubble, new Color(0.13f, 0.14f, 0.22f, 0.94f)); + var tail = UiKit.Rect("Tail", bubble, new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0f, 0f), new Vector2(30f, 30f)); + tail.localRotation = Quaternion.Euler(0f, 0f, 45f); + UiKit.Paint(tail, UiKit.Col("tip_bubble", new Color(0.13f, 0.14f, 0.22f, 0.94f)), false); + var bang = UiKit.Rect("Bang", tr, new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(46f, 0f), new Vector2(92f, 92f)); + if (UiKit.Skin(bang, "circle_frame", UiKit.Col("tip_bang", new Color(1f, 0.72f, 0.16f))) == null) UiKit.Paint(bang, new Color(1f, 0.72f, 0.16f)); + UiKit.Title(UiKit.FillLabel(bang, "!", 62, UiKit.White), true); + var head = UiKit.Label(bubble, "게임 팁", 26, UiKit.Col("tip_head", new Color(1f, 0.8f, 0.3f)), TextAnchor.UpperLeft, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(64f, -10f), new Vector2(PW - 200f, 36f), false); + head.horizontalOverflow = HorizontalWrapMode.Overflow; + var body2 = UiKit.Label(bubble, "영웅 레벨업 · 승급 · 편성을 바꿔 다시 도전", 32, UiKit.White, TextAnchor.UpperLeft, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(64f, -48f), new Vector2(PW - 200f, 46f), false); + body2.verticalOverflow = VerticalWrapMode.Truncate; // 한 줄 · 넘치면 줄임(최적 맞춤은 Truncate 여야 높이를 봄) + body2.resizeTextForBestFit = true; + body2.resizeTextMaxSize = 32; + body2.resizeTextMinSize = 22; + tipRoot.SetActive(false); + } + + /// 게임 글꼴(제목 글꼴 = 인게임 HUD 와 같음) 적용 + 글자 크기 배율(PD 2026-11-24). + static void ApplyGameFont(Transform t, float scale) + { + if (t == null) return; + foreach (var x in t.GetComponentsInChildren(true)) + { + UISkin.UseTitle(x); + x.fontSize = Mathf.RoundToInt(x.fontSize * scale); + if (x.resizeTextForBestFit) x.resizeTextMaxSize = Mathf.RoundToInt(x.resizeTextMaxSize * scale); + } + } + public void SetVisible(bool on) { if (go.activeSelf != on) go.SetActive(on); @@ -124,14 +194,21 @@ namespace TKS.OutGame { var s = root.Session; rewardsText = r.win ? RewardText(s, r) : "보상 없음"; - title.text = (r.win ? "승리" : "패배") + " " + r.chapter + "-" + r.stage + (r.boss ? " 보스" : "") + ""; + title.text = r.win ? "승리" : "패배"; // 제목 = 승리 · 패배만(PD 2026-11-24) + if (stageLine != null) + { + string nm = root.Battle != null && root.Battle.Stage != null ? root.Battle.Stage.title : ""; + stageLine.text = r.chapter + "-" + r.stage + (r.boss ? " 보스" : "") + (string.IsNullOrEmpty(nm) ? "" : " " + nm); + stageLine.gameObject.SetActive(true); + } + if (tipRoot != null) tipRoot.SetActive(!r.win); ShowStars(r.win ? r.stars : 0, r.win); SetButtons(true); if (retryCost != null && root.Battle != null && root.Battle.Config != null && root.Battle.StageIndex >= 0 && root.Battle.StageIndex < root.Battle.Config.stages.Length) { int cost = EconomyRules.StageCost(s.Db, s.Save, root.Battle.Config.stages[root.Battle.StageIndex], s.Hard); retryCost.text = cost.ToString(); - retry.GetComponent().color = s.Save.stamina >= cost ? UiKit.Col("menu_btn", UiKit.Dark) : UiKit.Col("disabled", UiKit.Disabled); + retry.GetComponent().color = s.Save.stamina >= cost ? (paper ? UiKit.Col("ws_btn_wood", new Color(0.47f, 0.3f, 0.18f)) : UiKit.Col("menu_btn", UiKit.Dark)) : UiKit.Col("disabled", UiKit.Disabled); // 승전보 위 = 나무색 } if (body == null) { @@ -139,7 +216,7 @@ namespace TKS.OutGame return; } UiKit.Clear(body); - float y = 330f; + float y = 400f; // 스테이지 정보 줄 아래(PD 2026-11-24) if (r.win) { string[] cond = { "스테이지 클리어", "아군 전원 생존", r.starTurns + "턴 이내 클리어 (" + r.turns + "턴)" }; @@ -151,7 +228,7 @@ namespace TKS.OutGame UiKit.CondRow(body, "Cond0", Side, y, RowW, RowH, "x_small", false, "아군이 전멸했습니다", 30); UiKit.CondRow(body, "Cond1", Side, y + RowH + 8f, RowW, RowH, "cur_stamina", false, "군량 " + r.stamina + " 소모 · 별 없음", 30, false); } - y = 566f; + y = 630f; var rewardTitle = UiKit.SubTitle(body, "보상" + MultNote(r), Side, y, RowW); // 지역 · 보스 배율이 붙은 판 = 소제목에 「골드 ×1.5」(stage_drop) rewardTitle.name = "RewardTitle"; y += 64f; @@ -159,13 +236,15 @@ namespace TKS.OutGame { var none = UiKit.Title(UiKit.Label(body, "보상 없음", 40, UiKit.Col("text_soft", UiKit.InkSoft), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Side, -y - 10f), new Vector2(RowW, 70f))); none.horizontalOverflow = HorizontalWrapMode.Overflow; - UiKit.Label(body, "영웅 레벨업 · 승급 · 편성을 바꿔 다시 도전", 30, UiKit.Col("text_soft", UiKit.InkSoft), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Side, -y - 90f), new Vector2(RowW, 50f), false); + ApplyGameFont(body, 1.2f); // 팁 = 팝업 밖 「!」 말풍선(BuildTip) return; } Tiles(s, r, y); float sy = y + Tile + 62f; Spoils(s, r, sy); Notes(s, r, sy + 64f + Tile + 96f); + ApplyGameFont(body, 1.2f); + if (paper) PaperScroll.Tone(body.parent); // 본문 + 스테이지 줄 // 종이 위 색(먹 글자 · 황갈 줄) } /// 보상 타일 행(가운데 정렬 · 칸 아래 이름) — 골드 · 경험 · 보옥(있을 때) · 보물 상자(있을 때) · 장비는 아래 「전리품」 줄. @@ -287,7 +366,7 @@ namespace TKS.OutGame string text = "레벨업 가능 " + ready; var t = UiKit.InfoChip(body, "LevelUp", Side, y, RowW, 56f, "up_green", text, 28); t.color = UiKit.Col("select_line", UiKit.Coin); - float w = Mathf.Min(RowW, Mathf.Ceil(t.preferredWidth) + 110f); + float w = Mathf.Min(RowW, Mathf.Ceil(t.preferredWidth * 1.2f) + 120f); // 뒤에서 글자 1.2 배(ApplyGameFont) — 넘친 글자가 종이 위 흰 글자로 남지 않게 var c = (RectTransform)t.transform.parent; c.anchoredPosition = new Vector2((PW - w) * 0.5f, -y); c.sizeDelta = new Vector2(w, 56f); @@ -298,6 +377,8 @@ namespace TKS.OutGame public void FillMode(ModeResult r) { SetButtons(false); + if (stageLine != null) stageLine.gameObject.SetActive(false); // 연무장 결과 = 스테이지 정보 줄 · 게임 팁 없음 + if (tipRoot != null) tipRoot.SetActive(false); rewardsText = r != null ? string.Join("\n", r.lines.ToArray()) : ""; if (r == null) { @@ -322,6 +403,7 @@ namespace TKS.OutGame float y = 354f; for (int i = 0; i < r.lines.Count && y + RowH <= BtnY - 20f; i++, y += RowH + 8f) UiKit.CondRow(body, "Line" + i, Side, y, RowW, RowH, null, true, r.lines[i], 30); + if (paper) PaperScroll.Tone(body.parent); // 본문 + 스테이지 줄 } /// 「확인」 버튼 글자를 바꾼다(첫 실행 흐름의 서장 패배 = 「다시 도전」 · 다음 결과를 채울 때 「확인」으로 돌아감). @@ -350,7 +432,8 @@ namespace TKS.OutGame starRow.gameObject.SetActive(n >= 0); for (int i = 0; i < 3; i++) if (starImg[i] != null) starImg[i].sprite = UISkin.Icon(i < n ? "star_on_l" : "star_off") ?? starImg[i].sprite; - if (ribbon != null && !UISkin.Apply(ribbon, win ? "ribbon" : "ribbon_gray")) ribbon.color = win ? Color.white : UiKit.Disabled; + if (ribbon != null && paper && ribbon.sprite == UISkin.Icon("tre_plaque")) ribbon.color = win ? Color.white : UiKit.Col("ws_tab_off", new Color(0.34f, 0.3f, 0.32f, 1f)); // 명패 = 승리 붉은 칠 · 패배 어두운 칠 + else if (ribbon != null && !UISkin.Apply(ribbon, win ? "ribbon" : "ribbon_gray")) ribbon.color = win ? Color.white : UiKit.Disabled; } static string ReadyNames(OutGameSession s, StageReward r) diff --git a/Assets/Scripts/OutGame/UI/PaperScroll.cs b/Assets/Scripts/OutGame/UI/PaperScroll.cs new file mode 100644 index 00000000..ad9fbac3 --- /dev/null +++ b/Assets/Scripts/OutGame/UI/PaperScroll.cs @@ -0,0 +1,104 @@ +using UnityEngine; +using UnityEngine.UI; + +namespace TKS.OutGame +{ + /// + /// 양피지 두루마리 판 + 종이 위 색(PD 2026-11-25 「전투 입장 팝업 · 결과창 · 튜토리얼을 우리 게임 컨셉과 화풍에 맞게 · 통일감」 · 공방 제작 주문서와 같은 판). + /// 판 = 내정 개발 양피지 dom_scroll(승인 그림 · 새 그림 0)을 위 · 아래 축 고정 9 분할로 — 값 = 표 UI/workshop_scene 의 forge_sheet 줄(테두리 px · 배율 · 안쪽 여백). + /// 종이 위 색 = 남색 판용으로 그린 본문(흰 글자 · 흰 반투명 줄)을 다 그린 뒤 한 번 바꿈: 흰 · 옅은 글자 → 먹 · 흐린 먹 · 노란 글자 → 짙은 금 · 흰 반투명 줄 받침 → 황갈 받침 · 가는 선 → 흐린 먹 선. + /// 버튼 · 색 칩 · 그림 위 글자(수량 알약 · 뱃지)는 그대로. + /// + public static class PaperScroll + { + static Sprite sheet; + static LobbyScene.Row row; + + static LobbyScene.Row Row() + { + if (row == null) row = DomesticScene.First(LobbyScene.Load("UI/workshop_scene"), "forge_sheet"); + return row; + } + + /// 두루마리 판 스프라이트(없으면 null). + public static Sprite Sheet() + { + if (sheet != null) return sheet; + var r = Row(); + var src = r != null ? UISkin.Icon(r.sprite) : null; + if (src == null) return null; + var rect = src.packed ? src.textureRect : src.rect; + sheet = Sprite.Create(src.texture, rect, new Vector2(0.5f, 0.5f), src.pixelsPerUnit, 0, SpriteMeshType.FullRect, new Vector4(r.x, r.h, r.x, r.y)); + sheet.name = "paper_scroll"; + return sheet; + } + + /// 이미지를 두루마리 판으로(9 분할 · 표 배율) · 판이 없으면 false. + public static bool Apply(Image img) + { + var sp = Sheet(); + if (img == null || sp == null) return false; + var old = img.transform.Find(UISkin.OverlayName); + if (old != null) old.gameObject.SetActive(false); + img.sprite = sp; + img.type = Image.Type.Sliced; + img.pixelsPerUnitMultiplier = Row().scale > 0.01f ? Row().scale : 2f; + img.color = Color.white; + return true; + } + + /// 종이 위쪽 축 + 종이 위 여백(화면 px) = 위 테두리 ÷ 배율. + public static float TopInset { get { var r = Row(); return r != null ? r.y / Mathf.Max(0.01f, r.scale) : 120f; } } + public static float BottomInset { get { var r = Row(); return r != null ? r.h / Mathf.Max(0.01f, r.scale) : 111f; } } + public static float SideInset { get { var r = Row(); return r != null && r.w > 0f ? r.w : 70f; } } + + public static Color Ink { get { return UiKit.Col("dom_ink", new Color(0.35f, 0.23f, 0.13f)); } } + public static Color InkSoft { get { return UiKit.Col("dom_ink_soft", new Color(0.54f, 0.42f, 0.30f)); } } + public static Color Chip { get { return UiKit.Col("dom_chip", new Color(0.90f, 0.80f, 0.60f)); } } + public static Color InkGold { get { return UiKit.Col("ws_ink_gold", new Color(0.62f, 0.4f, 0.06f)); } } + + static float Lum(Color c) { return 0.299f * c.r + 0.587f * c.g + 0.114f * c.b; } + static float Sat(Color c) { float mx = Mathf.Max(c.r, Mathf.Max(c.g, c.b)), mn = Mathf.Min(c.r, Mathf.Min(c.g, c.b)); return mx <= 0.001f ? 0f : (mx - mn) / mx; } + + /// 글자 뒤에 진한 바탕(그림 · 색 칩 · 버튼)이 있으면 true — 그 글자는 그대로. + static bool OnArt(Transform t, Transform root) + { + for (var p = t.parent; p != null && p != root; p = p.parent) + { + if (p.GetComponent