diff --git a/Assets/Data/UI/ui_atlas.csv b/Assets/Data/UI/ui_atlas.csv index 10634ec1..6609bd58 100644 --- a/Assets/Data/UI/ui_atlas.csv +++ b/Assets/Data/UI/ui_atlas.csv @@ -23,3 +23,4 @@ folder,UI_Title,Assets/Resources/UI/Title/pack,1024,타이틀 화면 작은 연 import,tre_bg,/frame_bg/bg_tre_,2048,보물 화면 배경 2장(보물고 · 금고 1080×1920) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-13) import,gacha_bg,/frame_bg/bg_gacha_,2048,뽑기 연출 배경 초가집(1080×1920) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-13) folder,UI_Tower,Assets/Resources/UI/Tower/parts,1024,천하제일 탑 화면 작은 부품(PD 2026-11-18 「B안으로 진행해」) 문 빛 · 번짐 · 화살표 — Fx 층 한 장 = 드로우콜 1 · 탑 조각 3장(1038 폭)은 single_area 초과라 단독 +folder,UI_Supply,Assets/Resources/UI/Supply/parts,1024,훈련장(보급전) 메뉴 카드 「/」 글자 판 · 비스듬 선(흰 · 메뉴 색 틴트 · PD 2026-11-18) — 배너 4장(1040×360)은 banners/ 단독 diff --git a/Assets/Resources/ContentModes/content_modes_config.csv b/Assets/Resources/ContentModes/content_modes_config.csv index b9679590..ee57d963 100644 --- a/Assets/Resources/ContentModes/content_modes_config.csv +++ b/Assets/Resources/ContentModes/content_modes_config.csv @@ -10,7 +10,7 @@ supply,stage_equiv,25,1회 보상 = 스테이지 반복 몇 판 분량(골드 · supply,grade_pct,S:100;A:80;B:60;C:40,판정 등급별 보상 비율 supply,sweep_grade,S,이 등급을 받은 단계는 소탕(전투 없이 같은 보상) 가능 supply,daily_all_bonus,silver_chest:1;gem:20,그날 열린 곳을 모두 한 번씩 끝낸 날(평일 3곳 · 일요일 4곳) -supply,open_rule,PD 확정(2026-11-17),군량고 · 연병장 = 매일 / 황건적 소탕 = 월 · 수 · 금 / 병법 훈련 = 화 · 목 · 토 / 일요일 = 모두 — 요일은 supply_dungeons.l_open_weekday +supply,open_rule,PD 확정(2026-11-17),군량고 · 전술 훈련 = 매일 / 황건적 소탕 = 월 · 수 · 금 / 병법 훈련 = 화 · 목 · 토 / 일요일 = 모두 — 요일은 supply_dungeons.l_open_weekday supply,fail_refund,1,실패(전멸 · 제한 턴 초과)하면 입장 횟수를 돌려준다 — 황건적 소탕 · 병법 훈련 supply,granary_count,12,군량고 수 · 후보 자리 24곳 가운데 무작위(들어갈 때마다 다름) supply,granary_spots,24,군량고 후보 자리 수 @@ -150,7 +150,7 @@ raid,adds_unit,tactics_ai,호위(조조의 방패 호위 · 원소의 안량과 raid,yuanshu_cart_pick,in_order,꿀물 수레가 나오는 자리 = 배치 표의 cart_spawn 을 n_slot 순서대로 한 번에 count 개씩(끝까지 쓰면 처음부터) — 무작위를 쓰지 않는다 · 수레는 arrive 턴에 걸쳐 일정한 속도로 원술에게 다가간다 raid,caocao_guard_dmg_taken,0.5,조조 — 호위가 1기라도 남아 있을 때 조조가 받는 피해 배율 · 제안 초안 raid,dongzhuo_burn,turns:2;pct:50,동탁 — 항아리가 가까이에서 터졌을 때의 불길: turns = 이어지는 턴 · pct = 턴마다 폭발 피해의 몇 % 를 다시 주는가 · 제안 초안 -supply,layout,supply_layout,군량고 습격 · 연병장 훈련 · 황건적 소탕의 자리 표 — 단계마다 같다(n_tier 0) · e_side = granary_spot(군량고 후보 자리) · drill_spot(허수아비 자리 · s_tag = supply_drill_zones.s_zone) · ally_slot · enemy · gimmick +supply,layout,supply_layout,군량고 습격 · 전술 훈련 · 황건적 소탕의 자리 표 — 단계마다 같다(n_tier 0) · e_side = granary_spot(군량고 후보 자리) · drill_spot(허수아비 자리 · s_tag = supply_drill_zones.s_zone) · ally_slot · enemy · gimmick supply,granary_guards,6,군량고 습격의 수비병 수(자리 = supply_layout) — 쓰러뜨려도 점수가 없다 · 수치 = 그 단계의 기준 적 병사 · 제안 supply,granary_pick,random_no_repeat,들어갈 때마다 후보 자리 가운데 granary_count 곳을 무작위로 고른다(같은 자리에 둘은 없다) supply,drill_dummy_unit,enemy;no_move;no_counter;no_push;no_matchup;not_counted,허수아비 = 유닛(적 진영 · 움직이지 않음 · 반격 없음 · 밀리지 않음 · 상성 없음 = 모든 병종에게 1.0 · 승패 인원에서 뺌) · 방어 = 기준 적 보병의 방어 · 관통 · 튕김 · 광역 판정은 유닛과 같다 · 상태 이상은 걸리지 않는다 diff --git a/Assets/Resources/ContentModes/existing_tables_patch.csv b/Assets/Resources/ContentModes/existing_tables_patch.csv index e649cfcf..9530e021 100644 --- a/Assets/Resources/ContentModes/existing_tables_patch.csv +++ b/Assets/Resources/ContentModes/existing_tables_patch.csv @@ -2,7 +2,7 @@ dungeons,granary,군량고 · mon;thu;sat · 6000,군량고 습격 · 매일 · 보상 = supply_rewards,change,이름 · 여는 요일 · 보상 방식(단계별 표),반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) dungeons,forge,대장간 · tue;fri;sun,id bandit · 황건적 소탕 · mon;wed;fri;sun · gear;iron;blueprint,change,id 가 바뀐다 → 저장된 진행 기록을 옮겨야 한다,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) dungeons,shrine,사당 · wed;sat;sun,id tactics · 병법 훈련 · tue;thu;sat;sun · skill_book;shard,change,id 가 바뀐다 · 보상 낱말 shards → shard,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) -dungeons,drill,(없음),연병장 훈련 · 매일 · exp,add,새 던전,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) +dungeons,drill,(없음),전술 훈련 · 매일 · exp,add,새 던전,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) dungeons,template_stage · hp_mult · reward_amount(칸),5-10 · 1.2 · 고정 수량,쓰지 않는다 → supply_dungeons · supply_rewards · 단계별 배치 표,remove,한 판짜리 틀 → 10단계,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) dungeons,entries_per_day,2,그대로(supply.entries_per_day),keep,,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) arena,entries_per_day · medal_win · medal_lose · season_days · shop_* · defense_ai,5 · 10 · 3 · 7,그대로,keep,content_modes_config 가 이 값을 읽는다,반영안 — 기능을 구현할 때 코드와 함께 옮긴다(지금 표를 먼저 바꾸면 지금 게임의 일일 던전 · 투기장 · 적장 토벌이 깨진다) diff --git a/Assets/Resources/ContentModes/supply_dungeons.csv b/Assets/Resources/ContentModes/supply_dungeons.csv index b4ac639c..86680dd1 100644 --- a/Assets/Resources/ContentModes/supply_dungeons.csv +++ b/Assets/Resources/ContentModes/supply_dungeons.csv @@ -1,5 +1,5 @@ s_id,s_name_ko,l_reward_kind,l_open_weekday,n_turn_limit,s_rule_ko,s_good_class_ko,s_grade_rule_ko,e_grade_by,l_grade_cut,Memo granary,군량고 습격,gold,mon;tue;wed;thu;fri;sat;sun,5,전장에 무작위로 흩어진 군량고 12채를 5턴 안에 부순 수만큼 골드를 받는다,보병(연쇄) · 기병(관통),부순 군량고 12 / 9 / 6 / 3채,more,12;9;6;3,PD 확정(2026-11-17) -drill,연병장 훈련,exp,mon;tue;wed;thu;fri;sat;sun,5,반격하지 않는 허수아비가 늘 5개(높은 단계는 8개까지) 서 있다 · 부수면 곧바로 다른 자리에서 새로 솟는다 · 5턴 동안 준 피해 합계만큼 경험을 받는다,궁병 · 책사(강 건너 · 고지) · 보병(튕김),목표 피해의 100 / 80 / 60 / 40 %,more,100;80;60;40,PD 지시(2026-11-17) — 동시에 5개 · 수 제한 없음 · 자리는 지형에 따라 +drill,전술 훈련,exp,mon;tue;wed;thu;fri;sat;sun,5,반격하지 않는 허수아비가 늘 5개(높은 단계는 8개까지) 서 있다 · 부수면 곧바로 다른 자리에서 새로 솟는다 · 5턴 동안 준 피해 합계만큼 경험을 받는다,궁병 · 책사(강 건너 · 고지) · 보병(튕김),목표 피해의 100 / 80 / 60 / 40 %,more,100;80;60;40,PD 지시(2026-11-17) — 동시에 5개 · 수 제한 없음 · 자리는 지형에 따라 bandit,황건적 소탕,gear;iron;blueprint,mon;wed;fri;sun,10,황건 삼형제(기병 · 보병 · 궁병)를 모두 쓰러뜨린다 · 한 명이 쓰러질 때마다 남은 형제가 분노해 공격력이 크게 오른다,책사 · 궁병(여럿을 함께 타격) · 기병(관통),클리어 턴 5 / 7 / 9 / 10턴 이내,less,5;7;9;10,PD 지시(2026-11-17) — 구 「대장간 탈환」 tactics,병법 훈련,skill_book;shard,tue;thu;sat;sun,6,"단계마다 정해진 전장 · 적 편성 · 과제 2개가 있다(매일 바뀌지 않는다) · 이기면 ★1, 과제를 채울 때마다 ★ +1",단계의 주제에 따라 다름,승리 = ★1 · 과제 1개마다 ★ +1(최대 ★3),star,,PD 지시(2026-11-17) — 구 「사당의 시험」 · 과제 2개 · 단계별 고정 설계 = supply_tactics_stages diff --git a/Assets/Resources/UI/Supply.meta b/Assets/Resources/UI/Supply.meta new file mode 100644 index 00000000..54a7eda1 --- /dev/null +++ b/Assets/Resources/UI/Supply.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2a1bd78256ee0ba43a4a58e34a80b201 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/banners.meta b/Assets/Resources/UI/Supply/banners.meta new file mode 100644 index 00000000..09ee7185 --- /dev/null +++ b/Assets/Resources/UI/Supply/banners.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f2ed3e8bf02a4d94988394febf8a2a3f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/banners/banner_bandit.png b/Assets/Resources/UI/Supply/banners/banner_bandit.png new file mode 100644 index 00000000..ecea161f Binary files /dev/null and b/Assets/Resources/UI/Supply/banners/banner_bandit.png differ diff --git a/Assets/Resources/UI/Supply/banners/banner_bandit.png.meta b/Assets/Resources/UI/Supply/banners/banner_bandit.png.meta new file mode 100644 index 00000000..10defe36 --- /dev/null +++ b/Assets/Resources/UI/Supply/banners/banner_bandit.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: c12ac5e1af032744080ef3806469e9f9 +TextureImporter: + internalIDToNameTable: + - first: + 213: -2037506170149942830 + second: banner_bandit_0 + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: banner_bandit_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1040 + height: 360 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 2d9cb84fee259b3e0800000000000000 + internalID: -2037506170149942830 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + banner_bandit_0: -2037506170149942830 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/banners/banner_drill.png b/Assets/Resources/UI/Supply/banners/banner_drill.png new file mode 100644 index 00000000..7e089946 Binary files /dev/null and b/Assets/Resources/UI/Supply/banners/banner_drill.png differ diff --git a/Assets/Resources/UI/Supply/banners/banner_drill.png.meta b/Assets/Resources/UI/Supply/banners/banner_drill.png.meta new file mode 100644 index 00000000..10e48d50 --- /dev/null +++ b/Assets/Resources/UI/Supply/banners/banner_drill.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 6198b5e1a260cc646b8b66aff01447a9 +TextureImporter: + internalIDToNameTable: + - first: + 213: -6486626404296348602 + second: banner_drill_0 + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: banner_drill_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1040 + height: 360 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 64c2f3527afdaf5a0800000000000000 + internalID: -6486626404296348602 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + banner_drill_0: -6486626404296348602 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/banners/banner_granary.png b/Assets/Resources/UI/Supply/banners/banner_granary.png new file mode 100644 index 00000000..2cf9395c Binary files /dev/null and b/Assets/Resources/UI/Supply/banners/banner_granary.png differ diff --git a/Assets/Resources/UI/Supply/banners/banner_granary.png.meta b/Assets/Resources/UI/Supply/banners/banner_granary.png.meta new file mode 100644 index 00000000..ce28c6be --- /dev/null +++ b/Assets/Resources/UI/Supply/banners/banner_granary.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: dff73704b5715274db798557933d4c3d +TextureImporter: + internalIDToNameTable: + - first: + 213: 6698336719643043535 + second: banner_granary_0 + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: banner_granary_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1040 + height: 360 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: fc66748d1c545fc50800000000000000 + internalID: 6698336719643043535 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + banner_granary_0: 6698336719643043535 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/banners/banner_tactics.png b/Assets/Resources/UI/Supply/banners/banner_tactics.png new file mode 100644 index 00000000..9391dcb2 Binary files /dev/null and b/Assets/Resources/UI/Supply/banners/banner_tactics.png differ diff --git a/Assets/Resources/UI/Supply/banners/banner_tactics.png.meta b/Assets/Resources/UI/Supply/banners/banner_tactics.png.meta new file mode 100644 index 00000000..e8e492d1 --- /dev/null +++ b/Assets/Resources/UI/Supply/banners/banner_tactics.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 1e3807e474deede4c8cb9912a4c55ff3 +TextureImporter: + internalIDToNameTable: + - first: + 213: -1626545141384051764 + second: banner_tactics_0 + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: banner_tactics_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1040 + height: 360 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: cc38aaccfc95d69e0800000000000000 + internalID: -1626545141384051764 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + banner_tactics_0: -1626545141384051764 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/banners/import.json b/Assets/Resources/UI/Supply/banners/import.json new file mode 100644 index 00000000..57cc6eb0 --- /dev/null +++ b/Assets/Resources/UI/Supply/banners/import.json @@ -0,0 +1,65 @@ +{ + "_doc": "훈련장(보급전) 메뉴 배너(PD 2026-11-18) · UnitArtImporter(UI/Supply 하위 폴더) · 1040×360 그대로(max 2048 · single_area 초과 = 아틀라스 밖 단독)", + "items": [ + { + "file": "banner_granary.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + }, + { + "file": "banner_drill.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + }, + { + "file": "banner_bandit.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + }, + { + "file": "banner_tactics.png", + "pivot": [ + 0.5, + 0.5 + ], + "border": [ + 0, + 0, + 0, + 0 + ], + "ppu": 100, + "max": 2048 + } + ] +} \ No newline at end of file diff --git a/Assets/Resources/UI/Supply/banners/import.json.meta b/Assets/Resources/UI/Supply/banners/import.json.meta new file mode 100644 index 00000000..504925ab --- /dev/null +++ b/Assets/Resources/UI/Supply/banners/import.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 19238deb17238954894d373929f930bc +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/parts.meta b/Assets/Resources/UI/Supply/parts.meta new file mode 100644 index 00000000..7fa9cfbc --- /dev/null +++ b/Assets/Resources/UI/Supply/parts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 91b4d6acb1117ed408baf3006b7e5b6a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/parts/panel_fill.png b/Assets/Resources/UI/Supply/parts/panel_fill.png new file mode 100644 index 00000000..2ee98995 Binary files /dev/null and b/Assets/Resources/UI/Supply/parts/panel_fill.png differ diff --git a/Assets/Resources/UI/Supply/parts/panel_fill.png.meta b/Assets/Resources/UI/Supply/parts/panel_fill.png.meta new file mode 100644 index 00000000..52af18b6 --- /dev/null +++ b/Assets/Resources/UI/Supply/parts/panel_fill.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: b34d6a8b7eaf06f48a38c0ddc1e967c8 +TextureImporter: + internalIDToNameTable: + - first: + 213: -6966600297927421769 + second: panel_fill_0 + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: panel_fill_0 + rect: + serializedVersion: 2 + x: 1 + y: 1 + width: 431 + height: 358 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 7b0d7ed80f9a15f90800000000000000 + internalID: -6966600297927421769 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + panel_fill_0: -6966600297927421769 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/parts/panel_line.png b/Assets/Resources/UI/Supply/parts/panel_line.png new file mode 100644 index 00000000..f55970dc Binary files /dev/null and b/Assets/Resources/UI/Supply/parts/panel_line.png differ diff --git a/Assets/Resources/UI/Supply/parts/panel_line.png.meta b/Assets/Resources/UI/Supply/parts/panel_line.png.meta new file mode 100644 index 00000000..ac280ff4 --- /dev/null +++ b/Assets/Resources/UI/Supply/parts/panel_line.png.meta @@ -0,0 +1,169 @@ +fileFormatVersion: 2 +guid: 5d05533ad2a4b1d47aeac1b503742ffa +TextureImporter: + internalIDToNameTable: + - first: + 213: 9029670553843346293 + second: panel_line_0 + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: panel_line_0 + rect: + serializedVersion: 2 + x: 335 + y: 1 + width: 101 + height: 358 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + customData: + outline: [] + physicsShape: [] + tessellationDetail: -1 + bones: [] + spriteID: 57b23a80785df4d70800000000000000 + internalID: 9029670553843346293 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: + panel_line_0: 9029670553843346293 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/supply_screen.csv b/Assets/Resources/UI/Supply/supply_screen.csv new file mode 100644 index 00000000..1d7c95dc --- /dev/null +++ b/Assets/Resources/UI/Supply/supply_screen.csv @@ -0,0 +1,24 @@ +# 훈련장(보급전) 메뉴 설정 표(PD 2026-11-18 「위 내용으로 게임에 반영 · 매일 열림 = 요일 없음 · 정해진 요일 = 여는 요일만 · 「/」 판 더 왼쪽으로 짧게」 · 코드 = OutGame/Arena/ArenaSupply) — 한 줄 = 키 · 값(| 로 여러 칸) +# 좌표 = 디자인 px(폭 1080 · 화면 폭에 맞춰 배율) · 값 출처 = 아트 시안 C:/ArtRnD/sprite_gen/ui_illust/samguk/content_screens_2/supply/mock/supply_screens.js(supCard · supScreen) · 그림을 새로 받으면 banners/ · parts/ 파일만 바꿔 끼운다 +# 던전 목록 · 이름 · 요일 · 제한 턴 · 보상 = 게임 표 ContentModes/supply_dungeons(이 표는 그림 · 색 · 배치만) +s_key,s_value,s_note +texts,UI/Supply/supply_text,글자 표(UiText) +title_key,supply_title,제목 띠 글자 키 +subtitle_key,supply_subtitle,제목 띠 부제 키({0} = 던전 수) +banner,granary|UI/Supply/banners/banner_granary|#8E5420,던전 id|배너(둥근 모서리 · 테 굽기)|글자 판 색 +banner,drill|UI/Supply/banners/banner_drill|#2C7140, +banner,bandit|UI/Supply/banners/banner_bandit|#9E3226, +banner,tactics|UI/Supply/banners/banner_tactics|#2B4C98, +panel,UI/Supply/parts/panel_fill|UI/Supply/parts/panel_line|0.84|0.74|#FFF3D6|0.45,「/」 글자 판|비스듬 선|판 알파(열림)|판 알파(닫힘 · 잠김)|선 색|선 알파 +card,1040|360|22|20|316|16,카드 폭|높이|카드 사이|왼쪽|첫 카드 위끝|목록 아래 여백 +closed_tint,#8C8C94,닫힌 날 · 잠김 배너 곱하기 색 +strip,240|52|25|18|#14172A|4,위 띠 위끝|칩 높이|글자|칩 사이|칩 테 색|테 굵기 +lock_strip,#962418|0.92|56|28|40,모드 잠김 띠 색|알파|높이|글자|자물쇠 +name,28|20|50,이름 왼쪽|위|글자 +chips,12|42|23|8|#0A0C16|0.55,이름 아래 틈|칩 높이|글자|칩 사이|칩 색|알파 +days,12|40|22|6|#FFF3D6|#3A2418|#FFD23E|4,칩 아래 틈|요일 점 지름|글자|사이|점 색|글자 색|오늘 고리 색|고리 굵기 +rewards,12|76|12|24,위 틈|보상 칸|사이|이름 글자(보상 1개일 때만) +right,24|22,오른쪽 열 오른쪽 여백|아래 여백 +go,236|92|44|40|22|6,입장 버튼 폭|높이|글자|남은 칩 높이|남은 글자|칩 · 버튼 틈 +closed,40|27|20|10|#0A0C16|0.86,닫힘 판 자물쇠|제목 글자|요일 글자|판 · 버튼 틈|판 색|알파 +reward_icons,gold:cur_gold|exp:cur_exp|gear:gear_helmet|iron:cur_iron|blueprint:cur_blueprint|skill_book:cur_skillbook|shard:cur_shard,보상 종류 → 테마 아이콘 id(없으면 칸만) diff --git a/Assets/Resources/UI/Supply/supply_screen.csv.meta b/Assets/Resources/UI/Supply/supply_screen.csv.meta new file mode 100644 index 00000000..6bc7025c --- /dev/null +++ b/Assets/Resources/UI/Supply/supply_screen.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 73479f43dabf0b54599a181c7fc4eb5b +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Supply/supply_text.csv b/Assets/Resources/UI/Supply/supply_text.csv new file mode 100644 index 00000000..3c2965b0 --- /dev/null +++ b/Assets/Resources/UI/Supply/supply_text.csv @@ -0,0 +1,35 @@ +# 훈련장(보급전) 메뉴 글자 표(PD 2026-11-18 · 투기장 league_text 와 같은 방식 · 한글 하드코딩 금지) — 바뀌는 값 = {0} {1} 자리 +# 언어 칸 = ko(아트 시안 supply_screens.js 문구) · en 이하 = 번역 칸(비움) +s_key,ko,en,note +supply_title,보급전,,위 제목 바 +supply_subtitle,훈련장 · 훈련 {0}곳,,위 제목 바 부제({0} = 던전 수 · 2곳은 매일 열려 「요일마다」 를 뺌 · 게임 QA r1 M2) +supply_today,오늘 {0}요일,,위 띠 +supply_done,오늘 완료 {0} / {1},,위 띠(그날 열린 곳 중 끝낸 수) +supply_done_bonus,오늘 완료 {0} / {1} · 보너스 받음,,위 띠(그날 모두 끝내 보너스를 받음) +supply_stamp,주간 도장 {0} / {1},,위 띠 +supply_stamp_got,주간 도장 {0} / {1} · 받음,,위 띠(주간 보상 받음) +supply_entries,하루 {0}회 · 광고 +{1},,위 띠 오른쪽(던전마다) +supply_unlock,{0} 클리어 뒤 열립니다,,모드 잠김 띠 +supply_turns,제한 {0}턴,,카드 칩 +supply_best,최고 {0}단계,,카드 칩(기록이 있는 가장 높은 단계) +supply_best_none,기록 없음,,카드 칩 +supply_left,남은 {0} / {1},,입장 버튼 위 칩 +supply_go,입장,,입장 버튼(→ 단계 고르기) +supply_closed,오늘 닫힘,,닫힌 날 판 제목 +supply_open_days,{0} 열림,,닫힌 날 판 둘째 줄(여는 요일) +supply_closed_btn,닫힘,,닫힌 날 버튼 +supply_locked_btn,잠김,,모드 잠김 버튼 +supply_day_mon,월,,요일 +supply_day_tue,화,, +supply_day_wed,수,, +supply_day_thu,목,, +supply_day_fri,금,, +supply_day_sat,토,, +supply_day_sun,일,, +supply_rw_gold,골드,,보상 이름(보상이 1개인 카드) +supply_rw_exp,경험,, +supply_rw_gear,승급 장비,, +supply_rw_iron,운철,, +supply_rw_blueprint,도면,, +supply_rw_skill_book,스킬서,, +supply_rw_shard,영웅 조각,, diff --git a/Assets/Resources/UI/Supply/supply_text.csv.meta b/Assets/Resources/UI/Supply/supply_text.csv.meta new file mode 100644 index 00000000..b529cb4a --- /dev/null +++ b/Assets/Resources/UI/Supply/supply_text.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: eff040d176d3c324cb8f2ac0593c1f11 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/UI/Yeonmu/yeonmu_hub.csv b/Assets/Resources/UI/Yeonmu/yeonmu_hub.csv index 5bfb9e0c..316620cf 100644 --- a/Assets/Resources/UI/Yeonmu/yeonmu_hub.csv +++ b/Assets/Resources/UI/Yeonmu/yeonmu_hub.csv @@ -16,7 +16,7 @@ subtitle_key,yeonmu_subtitle,제목 띠 부제 키(허브에서만 · 모드 페 open,gate|raid,성문(맹장 토벌전) → 맹장 토벌전 페이지(컨텐츠 모드 ③) · 열 곳 값 = tower · supply · league · raid · scenario · soon(준비 중) · later(추후 업데이트) open,tower|tower,천하제일 탑 → 탑 페이지 open,stable|supply,마구간(황건적 소탕 · 군량고 습격) → 보급전 첫 화면(던전 목록 · 컨텐츠 모드 ① · 장소별로 던전을 거르는 진입점은 아직 없음) -open,yard|supply,훈련장(연병장 훈련 · 병법 훈련) → 보급전 첫 화면(던전 목록) +open,yard|supply,훈련장(전술 훈련 · 병법 훈련) → 보급전 첫 화면(던전 목록) open,ring|league,비무대 → 투기장 페이지(등급 투기장 · 컨텐츠 모드 ④) open,hall|scenario,집현전 → 연의 전기 페이지(컨텐츠 모드 ②) open,tent|later,군막(천하 쟁패 · 동맹 미구현 · 잠김) → 「추후 업데이트」 안내 diff --git a/Assets/Resources/UI/Yeonmu/yeonmu_spots.csv b/Assets/Resources/UI/Yeonmu/yeonmu_spots.csv index 23161dbf..93df2528 100644 --- a/Assets/Resources/UI/Yeonmu/yeonmu_spots.csv +++ b/Assets/Resources/UI/Yeonmu/yeonmu_spots.csv @@ -10,6 +10,6 @@ stable,1290,880,470,300,1205,785,1.6,1180:1030;1395:1015,yeonmu_stable_name,yeon hall,475,1135,370,330,472,1105,1.8,285:1345,yeonmu_hall_name,yeonmu_hall_status,장판파,dot,집현전,연의 전기 ring,1225,1230,510,300,1215,1278,1.8,1140:1210;1273:1205,yeonmu_ring_name,yeonmu_ring_status,5|5,,비무대,투기장 tent,1170,1645,390,420,1170,1585,1.7,1330:1838,yeonmu_tent_name,yeonmu_tent_status_locked,,lock,군막,천하 쟁패 -yard,343,1670,495,480,400,1890,1.5,380:1560;300:1710;395:1836,yeonmu_yard_name,yeonmu_yard_status,,,훈련장,연병장 훈련 · 병법 훈련 +yard,343,1670,495,480,400,1890,1.5,380:1560;300:1710;395:1836,yeonmu_yard_name,yeonmu_yard_status,,,훈련장,전술 훈련 · 병법 훈련 yard_side,660,1700,0,0,,,,665:1620;672:1750,,,,,훈련장 오른쪽 울타리,(누름 없음 · 말 매어 둔 쉬는 병사 · 맨머리 · 무기 없음 · 훈련장 쪽을 봄) tower_side,138,1042,0,0,,,,138:1042,,,,,탑 아래 나무 그늘,(누름 없음 · 서서 꾸벅꾸벅 조는 창병 · 머리 꾸벅 3 프레임 + 콧물 방울) diff --git a/Assets/Resources/UI/Yeonmu/yeonmu_text.csv b/Assets/Resources/UI/Yeonmu/yeonmu_text.csv index 039963de..2f32d9b3 100644 --- a/Assets/Resources/UI/Yeonmu/yeonmu_text.csv +++ b/Assets/Resources/UI/Yeonmu/yeonmu_text.csv @@ -18,5 +18,5 @@ yeonmu_ring_status,남은 {0} / {1},,{0} 남은 도전 {1} 최대 yeonmu_tent_name,천하 쟁패,,군막 이름표 yeonmu_tent_status_locked,동맹에 가입하면 열림,,잠김 상태 줄 yeonmu_yard_name,훈련장,,훈련장 이름표 -yeonmu_yard_status,연병장 훈련 · 병법 훈련,,훈련장 상태 줄 +yeonmu_yard_status,전술 훈련 · 병법 훈련,,훈련장 상태 줄 yeonmu_yard_panel_title,훈련장,,훈련장 포커스 패널 제목 diff --git a/Assets/Scripts/Editor/UnitArtImporter.cs b/Assets/Scripts/Editor/UnitArtImporter.cs index 879ccbaa..8952b092 100644 --- a/Assets/Scripts/Editor/UnitArtImporter.cs +++ b/Assets/Scripts/Editor/UnitArtImporter.cs @@ -26,6 +26,8 @@ namespace TKS.EditorTools public const string UiScenarioRoot = "Assets/Resources/UI/Scenario/"; /// 천하제일 탑 화면(PD 2026-11-18 「B안으로 진행해」) — 같은 규칙(바로 아래 = 하늘 2장 · parts/ = 탑 조각 3(max 2048 = import.json) · 문 빛 · 화살표). public const string UiTowerRoot = "Assets/Resources/UI/Tower/"; + /// 훈련장(보급전) 메뉴(PD 2026-11-18 「위 내용으로 게임에 반영」) — 같은 규칙(banners/ = 배너 4장 · 둥근 모서리 투명 · max 2048 = import.json · parts/ = 「/」 글자 판). + public const string UiSupplyRoot = "Assets/Resources/UI/Supply/"; /// Android 유닛 프레임 긴 변 상한(Fable 검토 2026-11-12 · 원화 PNG 는 그대로 · 빌드 때만 축소). public const int AndroidUnitMaxSize = 512; /// Android 유닛 프레임 압축(ASTC 5×5 시작값 · 출시 전 4×4·6×6 과 육안 비교로 확정). @@ -94,6 +96,11 @@ namespace TKS.EditorTools PreprocessUiScene(path, UiTowerRoot); return; } + if (path.StartsWith(UiSupplyRoot)) + { + PreprocessUiScene(path, UiSupplyRoot); + return; + } if (!path.StartsWith(Root)) return; var ti = (TextureImporter)assetImporter; ti.textureType = TextureImporterType.Sprite; @@ -241,7 +248,7 @@ namespace TKS.EditorTools [MenuItem("TKS/Reimport Unit Art (유닛 아트 재임포트)")] public static void ReimportAll() { - foreach (var root in new[] { Root, BoardRoot, ChapterMapRoot, UiSceneRoot, UiLeagueRoot, UiScenarioRoot, UiTowerRoot }) + foreach (var root in new[] { Root, BoardRoot, ChapterMapRoot, UiSceneRoot, UiLeagueRoot, UiScenarioRoot, UiTowerRoot, UiSupplyRoot }) { string dir = root.TrimEnd('/'); if (!AssetDatabase.IsValidFolder(dir)) diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs b/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs index 828d410d..1683c2a4 100644 --- a/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.League.cs @@ -70,9 +70,15 @@ namespace TKS.OutGame tk = tower.S_("title_key"); sk = tower.S_("subtitle_key"); } + string subText = null; + if (page == 2 && SupplyVisible) + { + tk = supply.S_("title_key"); + subText = supply.Subtitle; // 부제 = 던전 수 자리 + } bool on = tk != null; string t = on ? UiText.T(tk) : headerTitle0; - string sub = on ? UiText.T(sk) : headerSub0; + string sub = subText ?? (on ? UiText.T(sk) : headerSub0); if (on) headerSubText.gameObject.SetActive(true); // 허브 부제 끄기(Refresh) 뒤에 다시 켬 if (headerTitleText.text == t && headerSubText.text == sub) return; headerTitleText.text = t; diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.Supply.cs b/Assets/Scripts/OutGame/Arena/ArenaScreen.Supply.cs index 5cac987b..56eae462 100644 --- a/Assets/Scripts/OutGame/Arena/ArenaScreen.Supply.cs +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.Supply.cs @@ -14,11 +14,53 @@ namespace TKS.OutGame /// 단계 목록을 보는 던전(null = 던전 목록). string supplyPick; + ArenaSupply supply; // 훈련장 메뉴 아트 목록(PD 2026-11-18 · 표 Resources/UI/Supply · 없으면 null = 더미 목록) + RectTransform supplySlot; + + /// 훈련장 메뉴 아트 목록(없으면 null · 테스트). + public ArenaSupply Supply + { + get { return supply; } + } + + /// 지금 훈련장 아트 목록이 보이는가(테스트). + public bool SupplyVisible + { + get { return supply != null && supply.Built && supplySlot != null && supplySlot.gameObject.activeInHierarchy; } + } + + /// Build 에서 제목 띠보다 먼저 — 표만 읽음(그림은 처음 열 때). + void LoadSupplyView() + { + supply = ArenaSupply.Load(this); + if (supply == null) return; + supplySlot = UiKit.Fill("Supply", Rt); + supplySlot.gameObject.SetActive(false); + } + + /// 목록 카드의 입장 = 예전과 같은 단계 고르기. + public void OpenSupplyTiers(string id) + { + supplyPick = id; + Refresh(); + } + void BuildSupply() { ContentTables.Reload(); if (supplyPick != null) BuildSupplyTiers(supplyPick); - else BuildSupplyList(); + else if (!ShowSupplyView()) BuildSupplyList(); + } + + /// 던전 목록 = 아트 목록(표 · 배너가 있으면) · 없으면 false(더미 목록). + bool ShowSupplyView() + { + if (supply == null || supplySlot == null) return false; + supplySlot.gameObject.SetActive(true); + if (supply.Show(supplySlot)) return true; + supplySlot.gameObject.SetActive(false); + supply = null; + return false; } void BuildSupplyList() diff --git a/Assets/Scripts/OutGame/Arena/ArenaScreen.cs b/Assets/Scripts/OutGame/Arena/ArenaScreen.cs index c12a9aa9..9b1fa590 100644 --- a/Assets/Scripts/OutGame/Arena/ArenaScreen.cs +++ b/Assets/Scripts/OutGame/Arena/ArenaScreen.cs @@ -45,6 +45,7 @@ namespace TKS.OutGame LoadLeagueView(); // 투기장 아트 화면(PD 2026-11-18 · 표 Resources/UI/League) — 제목 띠 뒤 · 표만 읽음 LoadScenarioView(); // 연의 전기 아트 화면(PD 2026-11-18 · 표 Resources/UI/Scenario) LoadTowerView(); // 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · 표 Resources/UI/Tower) + LoadSupplyView(); // 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · 표 Resources/UI/Supply) hub = ArenaHub.Load(this); // 표만 읽음(그림·유닛은 처음 열 때) RectTransform headerBand; if (hub != null) @@ -118,6 +119,7 @@ namespace TKS.OutGame if (leagueSlot != null && page != 3) leagueSlot.gameObject.SetActive(false); if (scenarioSlot != null && page != ScenarioPage) scenarioSlot.gameObject.SetActive(false); if (towerSlot != null && page != 1) towerSlot.gameObject.SetActive(false); + if (supplySlot != null && (page != 2 || supplyPick != null)) supplySlot.gameObject.SetActive(false); // 단계 고르기(더미)로 가면 목록 끔 if (headerSub != null) headerSub.gameObject.SetActive(page == 0); if (hubOn && !hub.Show(hubSlot)) { diff --git a/Assets/Scripts/OutGame/Arena/ArenaSupply.cs b/Assets/Scripts/OutGame/Arena/ArenaSupply.cs new file mode 100644 index 00000000..60bf6ab8 --- /dev/null +++ b/Assets/Scripts/OutGame/Arena/ArenaSupply.cs @@ -0,0 +1,441 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using UnityEngine; +using UnityEngine.UI; + +namespace TKS.OutGame +{ + /// + /// 훈련장(보급전) 메뉴 화면(PD 2026-11-18 「위 내용으로 게임에 반영 · 매일 열림 = 요일 없음 · 정해진 요일 = 여는 요일만 · 「/」 판 더 왼쪽으로 짧게」 · 아트 시안 content_screens_2/supply/final/mock/mock_s_*.png · Fable QA r2 PASS) — + /// 위 띠(오늘 요일 · 오늘 완료 · 주간 도장 · 하루 횟수 · 광고) + 배너 카드 목록(위아래 스크롤): 배너(배경 + 게임 유닛) · 메뉴 색 「/」 글자 판(이름 · 제한 턴 · 최고 단계 · 여는 요일 · 보상) · 오른쪽 = 남은 + 입장 / 닫힌 날 = 「오늘 닫힘 · 여는 요일」 + 닫힘 / 모드 잠김 = 붉은 띠 + 잠김. + /// 입장 = 예전과 같은 단계 고르기(ArenaScreen.OpenSupplyTiers) · 던전 · 이름 · 요일 · 제한 턴 · 보상 = 게임 표 supply_dungeons(SupplyData) · 이 화면 표 = 그림 · 색 · 배치(Resources/UI/Supply/supply_screen · C45) · 글자 = supply_text(UiText). + /// 층(P41): 화면(Event) → Strip(위 띠 · Event) · 목록(UiKit.ScrollGrid = 보는 칸 RectMask2D + 내용 Frame · 레이캐스터 · 카드 = 배너 · 판 · 글자 · 버튼). + /// + public class ArenaSupply + { + public const string Table = "UI/Supply/supply_screen"; + + readonly ArenaScreen screen; + readonly Dictionary> kv = new Dictionary>(); + readonly Dictionary banners = new Dictionary(); + readonly Dictionary texts = new Dictionary(); + readonly Dictionary dayDots = new Dictionary(); + readonly HashSet closed = new HashSet(); + + public RectTransform View { get; private set; } + public RectTransform Strip { get; private set; } + public RectTransform List { get; private set; } + public ScrollRect Scroll { get; private set; } + public bool Built { get; private set; } + public bool Locked { get; private set; } + + /// 카드 수 · 카드마다 요일 점 수 · 오늘 닫힌 카드(테스트). + public int CardCount { get; private set; } + + public int DayDotsOf(string id) + { + int n; + return dayDots.TryGetValue(id, out n) ? n : -1; + } + + public bool IsClosed(string id) + { + return closed.Contains(id); + } + + /// 제목 띠 부제(던전 수 넣음). + public string Subtitle + { + get { return UiText.F(S_("subtitle_key"), new[] { SupplyData.AllDungeons().Count.ToString(CultureInfo.InvariantCulture) }); } + } + + ArenaSupply(ArenaScreen s) + { + screen = s; + } + + OutGameSession S + { + get { return screen.S; } + } + + // ---------- 표 ---------- + + public static ArenaSupply Load(ArenaScreen s) + { + var rows = UiText.Rows(Table); + if (rows == null) return null; + var sp = new ArenaSupply(s); + foreach (var r in rows) + { + string k, v; + if (!r.TryGetValue("s_key", out k) || k.Length == 0) continue; + r.TryGetValue("s_value", out v); + List l; + if (!sp.kv.TryGetValue(k, out l)) sp.kv[k] = l = new List(); + l.Add(v ?? ""); + } + foreach (var b in sp.All("banner")) + if (b.Length >= 2 && b[0].Trim().Length > 0) sp.banners[b[0].Trim()] = b; + UiText.Use(sp.S_("texts")); + if (sp.banners.Count == 0 || !UiText.Has(sp.S_("title_key"))) return null; + return sp; + } + + public string S_(string key, string def = "") + { + List l; + return kv.TryGetValue(key, out l) && l.Count > 0 && l[0].Length > 0 ? l[0] : def; + } + + string[] L(string key) + { + return S_(key).Split('|'); + } + + List All(string key) + { + var list = new List(); + List l; + if (kv.TryGetValue(key, out l)) + foreach (var v in l) + list.Add(v.Split('|')); + return list; + } + + static float F(string v, float def = 0f) + { + float f; + return v != null && float.TryParse(v.Trim(), NumberStyles.Float, CultureInfo.InvariantCulture, out f) ? f : def; + } + + static float At(string[] a, int i, float def = 0f) + { + return a != null && i < a.Length && a[i].Trim().Length > 0 ? F(a[i], def) : def; + } + + static string Str(string[] a, int i) + { + return a != null && i < a.Length ? a[i].Trim() : ""; + } + + static Color Col(string[] a, int i, Color def) + { + Color c; + return a != null && i < a.Length && ColorUtility.TryParseHtmlString(a[i].Trim(), out c) ? c : def; + } + + static Color Alpha(Color c, float a) + { + c.a = a; + return c; + } + + static string N(int v) + { + return v.ToString(CultureInfo.InvariantCulture); + } + + /// 정보 글자(테스트 · 없으면 null). + public string TextOf(string name) + { + Text t; + return texts.TryGetValue(name, out t) && t != null ? t.text : null; + } + + // ---------- 만들기 ---------- + + /// slot(화면 전체 · 제목 띠 뒤)에 위 띠 · 카드 목록을 다시 채운다 · 배너가 하나도 없으면 false(호출 쪽 = 예전 더미 목록). + public bool Show(RectTransform slot) + { + if (!Built) + { + bool any = false; + foreach (var b in banners.Values) + if (Resources.Load(Str(b, 1)) != null) any = true; + if (!any) + { + Debug.LogWarning("[TKS] 훈련장 배너 없음: " + Table); + return false; + } + View = slot; + Built = true; + } + Rebuild(); + return true; + } + + float Z; + + void Rebuild() + { + UiKit.Clear(View); + texts.Clear(); + dayDots.Clear(); + closed.Clear(); + var r = View.rect; + Z = Mathf.Min(r.width / 1080f, r.height / 1920f); + if (Z <= 0f) Z = 1f; + var db = S.Db; + var d = S.Save; + var now = S.Now; + Locked = !SupplyRules.Unlocked(d); + + // 위 띠(Event) + Strip = UiLayer.Group("Strip", View, UiRate.Event); + var st = L("strip"); + float stTop = OutGameRoot.TopBarH + OutGameRoot.HeaderH + (At(st, 0, 240f) - 224f) * Z; + float stH = At(st, 1, 52f) * Z; + var cd = L("card"); + float cw = At(cd, 0, 1040f) * Z, ch = At(cd, 1, 360f) * Z, gap = At(cd, 2, 22f) * Z; + float x0 = (r.width - cw) * 0.5f; + if (Locked) LockStrip(x0, stTop, cw); + else InfoStrip(db, d, now, x0, stTop, cw, stH); + + // 카드 목록(UiKit.ScrollGrid = 내용 Frame + 레이캐스터 · RectMask2D) + float listTop = OutGameRoot.TopBarH + OutGameRoot.HeaderH + (At(cd, 4, 316f) - 224f - 6f) * Z; + ScrollRect sc; + List = UiKit.ScrollGrid("List", View, 0f, 0f, listTop, OutGameRoot.TabBarH, new Vector2(cw, ch), new Vector2(0f, gap), 1, out sc); + Scroll = sc; + var grid = List.GetComponent(); + if (grid != null) grid.padding = new RectOffset(0, 0, 6, Mathf.RoundToInt(At(cd, 5, 16f) * Z)); + CardCount = 0; + foreach (var dg in SupplyData.AllDungeons()) + { + string[] b; + if (!banners.TryGetValue(dg.id, out b)) continue; + Card(dg, b, cw, ch, db, d, now); + CardCount++; + } + } + + Text Lab(Transform p, string name, string s, float size, Color c, TextAnchor a, float x, float y, float w, float h, bool stroke) + { + var t = UiKit.Label(p, s, Mathf.RoundToInt(size), c, a, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(x, -y), new Vector2(w, h)); + UiKit.Title(t, stroke); + t.horizontalOverflow = HorizontalWrapMode.Overflow; + t.raycastTarget = false; + t.name = name; + texts[name] = t; + return t; + } + + /// 칩(글자 폭 맞춤) · 반환 = 칩 폭. + float Chip(Transform p, string name, string s, float x, float y, float h, float fs, Color bg, Color border, float bw) + { + var c = UiKit.Skin(UiKit.At(p, name, x, y, 10f, h), "chip", bg); + if (bw > 0f) UiKit.Border(c, border, bw); + var t = UiKit.Title(UiKit.FillLabel(c.transform, s, Mathf.RoundToInt(fs), Color.white), true); + t.horizontalOverflow = HorizontalWrapMode.Overflow; + t.name = name; + texts[name] = t; + float w = Mathf.Ceil(t.preferredWidth) + 36f * Z; + c.rectTransform.sizeDelta = new Vector2(w, h); + return w; + } + + void InfoStrip(OutGameData db, SaveData d, DateTime now, float x0, float y, float w, float h) + { + var st = L("strip"); + float fs = At(st, 2, 25f) * Z, g = At(st, 3, 18f) * Z, bw = At(st, 5, 4f) * Z; + var bc = Col(st, 4, UiKit.Dark); + var chipC = UiKit.Col("chip_dark", UiKit.Dark); + var s = d.supply; + int open = 0, done = 0; + foreach (var dg in SupplyData.AllDungeons()) + if (SupplyRules.OpenToday(dg, now)) + { + open++; + if (s.doneDay == EconomyRules.DayKey(now) && s.doneIds.Contains(dg.id)) done++; + } + int stampNeed = ContentTables.Int(SupplyData.Mode, "weekly_stamp_need"); + int stampDays = s.stampWeek == ArenaRules.WeekKey(now) ? s.stampDays.Count : 0; + bool bonus = s.doneBonus && s.doneDay == EconomyRules.DayKey(now); + float x = x0 + bw; // 칩 테(바깥으로 그려짐)만큼 안쪽 · 칩 사이 = 테 둘 + 틈(게임 QA r1 M1) + x += Chip(Strip, "Today", UiText.F("supply_today", new[] { UiText.T("supply_day_" + SupplyRules.Weekday(now)) }), x, y, h, fs, chipC, bc, bw) + g; + x += Chip(Strip, "Done", UiText.F(bonus ? "supply_done_bonus" : "supply_done", new[] { N(done), N(open) }), x, y, h, fs, chipC, bc, bw) + g; + Chip(Strip, "Stamp", UiText.F(s.stampClaimed ? "supply_stamp_got" : "supply_stamp", new[] { N(stampDays), N(stampNeed) }), x, y, h, fs, chipC, bc, bw); + // 오른쪽 끝 = 하루 횟수 · 광고(오른쪽 맞춤) + string es = UiText.F("supply_entries", new[] { N(ContentTables.Int(SupplyData.Mode, "entries_per_day")), N(ContentTables.Int(SupplyData.Mode, "ad_entries_per_day")) }); + float ew = Chip(Strip, "Entries", es, 0f, y, h, fs * 0.88f, chipC, bc, bw); + var er = texts["Entries"].transform.parent as RectTransform; + if (er != null) er.anchoredPosition = new Vector2(x0 + w - ew - bw, -y); + } + + void LockStrip(float x0, float y, float w) + { + var ls = L("lock_strip"); + float h = At(ls, 2, 56f) * Z; + var band = UiKit.Skin(UiKit.At(Strip, "Locked", x0, y, w, h), "chip", Alpha(Col(ls, 0, UiKit.Red), At(ls, 1, 0.92f))); + UiKit.Border(band, UiKit.Col("line", UiKit.Line), 4f * Z); + var t = Lab(band.transform, "LockText", UiText.F("supply_unlock", new[] { ContentTables.Str(SupplyData.Mode, "unlock_stage") }), At(ls, 3, 28f) * Z, Color.white, TextAnchor.MiddleCenter, 0f, 0f, w, h, true); + float lsz = At(ls, 4, 40f) * Z; + var ic = UiKit.Icon(band.transform, "lock", new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(w * 0.5f - t.preferredWidth * 0.5f - lsz * 0.7f, 0f), lsz); + UiKit.DropShadow(ic, 2f); + } + + static readonly string[] Week = { "mon", "tue", "wed", "thu", "fri", "sat", "sun" }; + + void Card(SupplyData.Dungeon dg, string[] b, float cw, float ch, OutGameData db, SaveData d, DateTime now) + { + string id = dg.id; + bool isOpen = SupplyRules.OpenToday(dg, now); + if (!isOpen) closed.Add(id); + bool active = isOpen && !Locked; + var cell = new GameObject("Card_" + id, typeof(RectTransform)).GetComponent(); + cell.SetParent(List, false); + // 배너(둥근 모서리 · 테 굽기) · 닫힘 = 곱하기 색 + var bi = UiKit.Fill("Banner", cell).gameObject.AddComponent(); + bi.sprite = Resources.Load(Str(b, 1)); + bi.raycastTarget = true; // 카드 위 끌기 = 목록 스크롤(ScrollRect 가 받음) + if (!active) bi.color = Col(L("closed_tint"), 0, new Color(0.55f, 0.55f, 0.58f)); + // 「/」 글자 판 + 비스듬 선(흰 그림 틴트) + var pn = L("panel"); + var cardCol = Col(b, 2, UiKit.Dark); + var pf = Resources.Load(Str(pn, 0)); + if (pf != null) + { + var pi = UiKit.At(cell, "Panel", 0f, 0f, pf.rect.width * ch / pf.rect.height, ch).gameObject.AddComponent(); + pi.sprite = pf; + pi.color = Alpha(cardCol, active ? At(pn, 2, 0.84f) : At(pn, 3, 0.74f)); + pi.raycastTarget = false; + } + var pl = Resources.Load(Str(pn, 1)); + if (pl != null) + { + var li = UiKit.At(cell, "Slant", 0f, 0f, pl.rect.width * ch / pl.rect.height, ch).gameObject.AddComponent(); + li.sprite = pl; + li.color = Alpha(Col(pn, 4, Color.white), At(pn, 5, 0.45f)); + li.raycastTarget = false; + } + // 이름 · 칩(제한 턴 · 최고 단계) · 여는 요일 · 보상 + var nm = L("name"); + float x = At(nm, 0, 28f) * Z, y = At(nm, 1, 20f) * Z; + float nfs = At(nm, 2, 50f) * Z; + Lab(cell, "Name_" + id, dg.nameKo, nfs, Color.white, TextAnchor.MiddleLeft, x, y, cw * 0.4f, nfs * 1.15f, true); + y += nfs * 1.15f; + var cp = L("chips"); + y += At(cp, 0, 12f) * Z; + float chh = At(cp, 1, 42f) * Z, cfs = At(cp, 2, 23f) * Z; + var chc = Alpha(Col(cp, 4, Color.black), At(cp, 5, 0.55f)); + float cx = x; + cx += Chip(cell, "Turns_" + id, UiText.F("supply_turns", new[] { N(dg.turnLimit) }), cx, y, chh, cfs, chc, Color.clear, 0f) + At(cp, 3, 8f) * Z; + int best = 0; + foreach (var t in SupplyData.AllTiers()) + if (d.supply.Best(id, t.tier).Length > 0) best = Mathf.Max(best, t.tier); + Chip(cell, "Best_" + id, best > 0 ? UiText.F("supply_best", new[] { N(best) }) : UiText.T("supply_best_none"), cx, y, chh, cfs, chc, Color.clear, 0f); + y += chh; + // 요일: 매일 열림 = 없음 · 정해진 요일 = 여는 요일만(PD 2026-11-18) + int dots = 0; + if (dg.weekdays.Count < Week.Length) + { + var dy = L("days"); + y += At(dy, 0, 12f) * Z; + float dd = At(dy, 1, 40f) * Z, dg_ = At(dy, 3, 6f) * Z, rw = At(dy, 7, 4f) * Z; + string today = SupplyRules.Weekday(now); + float dx = x; + foreach (var w in Week) + { + if (!dg.weekdays.Contains(w)) continue; + if (w == today) + { + var ring = UiKit.At(cell, "DayRing_" + w, dx - rw, y - rw, dd + 2f * rw, dd + 2f * rw).gameObject.AddComponent(); + ring.sprite = UiKit.Circle; + ring.color = Col(dy, 6, UiKit.Coin); + ring.raycastTarget = false; + } + var dot = UiKit.At(cell, "Day_" + w, dx, y, dd, dd).gameObject.AddComponent(); + dot.sprite = UiKit.Circle; + dot.color = Col(dy, 4, Color.white); + dot.raycastTarget = false; + var dt = UiKit.Title(UiKit.FillLabel(dot.transform, UiText.T("supply_day_" + w), Mathf.RoundToInt(At(dy, 2, 22f) * Z), Col(dy, 5, UiKit.Ink))); + dt.raycastTarget = false; + dx += dd + dg_; + dots++; + } + y += dd; + } + dayDots[id] = dots; + var rw2 = L("rewards"); + y += At(rw2, 0, 12f) * Z; + float rs = At(rw2, 1, 76f) * Z, rg = At(rw2, 2, 12f) * Z; + var icons = new Dictionary(); + foreach (var kvp in L("reward_icons")) + { + var p = kvp.Split(':'); + if (p.Length == 2) icons[p[0].Trim()] = p[1].Trim(); + } + float rx = x; + foreach (var k in dg.rewardKinds) + { + string ic; + icons.TryGetValue(k, out ic); + UiKit.RewardTile(cell, "Rw_" + id + "_" + k, rx, y, rs, "gear_white_", ic ?? "", "", false); + rx += rs + rg; + } + if (dg.rewardKinds.Count == 1) // 보상 1개 = 이름 글자(QA r1 M6) + Lab(cell, "RwName_" + id, UiText.T("supply_rw_" + dg.rewardKinds[0]), At(rw2, 3, 24f) * Z, Color.white, TextAnchor.MiddleLeft, rx, y, cw * 0.3f, rs, true); + + // 오른쪽 열: 남은 + 입장 / 닫힘 / 잠김 + var rc = L("right"); + var go = L("go"); + float bw = At(go, 0, 236f) * Z, bh = At(go, 1, 92f) * Z; + float bx = cw - At(rc, 0, 24f) * Z - bw, by = ch - At(rc, 1, 22f) * Z - bh; + if (active) + { + int left = SupplyRules.Left(db, d, id, now), limit = SupplyRules.Limit(db, d, id, now); + float lh = At(go, 3, 40f) * Z; + float lw = Chip(cell, "Left_" + id, UiText.F("supply_left", new[] { N(left), N(limit) }), 0f, by - At(go, 5, 6f) * Z - lh, lh, At(go, 4, 22f) * Z, UiKit.Col("chip_dark", UiKit.Dark), UiKit.Col("line", UiKit.Line), 3f * Z); + var lr = texts["Left_" + id].transform.parent as RectTransform; + if (lr != null) lr.anchoredPosition = new Vector2(bx + (bw - lw) * 0.5f, lr.anchoredPosition.y); + var btn = UiKit.SkinBtn(cell, "Go_" + id, "btn_l_red", UISkin.Col("red", UiKit.Red), "", 10, Color.white, bx, by, bw, bh, () => screen.OpenSupplyTiers(id)); + var bl = btn.GetComponentInChildren(); + if (bl != null) bl.gameObject.SetActive(false); + Lab(btn.transform, "GoText_" + id, UiText.T("supply_go"), At(go, 2, 44f) * Z, Color.white, TextAnchor.MiddleCenter, 0f, -2f * Z, bw, bh, true); + } + else + { + var gb = UiKit.SkinBtn(cell, "Go_" + id, "btn_gray", UiKit.White, "", 10, Color.white, bx, by, bw, bh, null); + gb.interactable = false; + var bl = gb.GetComponentInChildren(); + if (bl != null) bl.gameObject.SetActive(false); + var gt = Lab(gb.transform, "GoText_" + id, UiText.T(Locked ? "supply_locked_btn" : "supply_closed_btn"), At(go, 2, 44f) * Z * 0.9f, UiKit.Col("text_soft", UiKit.InkSoft), TextAnchor.MiddleCenter, 0f, -2f * Z, bw, bh, true); + if (Locked) + { + float isz = At(L("closed"), 0, 40f) * Z; + UiKit.Icon(gb.transform, "lock", new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(bw * 0.5f - gt.preferredWidth * 0.5f - isz * 0.6f, -bh * 0.5f), isz); + } + else ClosedPlate(cell, dg, bx + bw, by); + } + } + + /// 닫힌 날 판 = 오른쪽 열(닫힘 버튼 위 · QA r1 B2) · 자물쇠 + 「오늘 닫힘」 + 여는 요일. + void ClosedPlate(RectTransform cell, SupplyData.Dungeon dg, float right, float btnTop) + { + var cl = L("closed"); + float isz = At(cl, 0, 40f) * Z, tfs = At(cl, 1, 27f) * Z, sfs = At(cl, 2, 20f) * Z; + var days = new List(); + foreach (var w in Week) + if (dg.weekdays.Contains(w)) days.Add(UiText.T("supply_day_" + w)); + string sub = UiText.F("supply_open_days", new[] { string.Join(" · ", days.ToArray()) }); + float pad = 16f * Z, ph = Mathf.Max(isz, tfs * 1.2f + sfs * 1.3f) + 16f * Z; + // 판을 먼저(글자 뒤) → 글자 → 글자 폭으로 판 크기 · 자리 맞춤 + var plate = UiKit.Skin(UiKit.At(cell, "ClosedPlate_" + dg.id, 0f, 0f, 10f, ph), "chip", Alpha(Col(cl, 4, Color.black), At(cl, 5, 0.86f))); + UiKit.Border(plate, UiKit.Col("line", UiKit.Line), 4f * Z); + var ic = UiKit.Icon(plate.transform, "lock", new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(pad + isz * 0.5f, 0f), isz); + UiKit.DropShadow(ic, 2f); + var tt = Lab(cell, "Closed_" + dg.id, UiText.T("supply_closed"), tfs, Color.white, TextAnchor.UpperLeft, 0f, 0f, 400f * Z, tfs * 1.2f, true); + var probe = Lab(cell, "ClosedSub_" + dg.id, sub, sfs, UiKit.Col("text_soft", new Color(0.81f, 0.84f, 0.92f)), TextAnchor.UpperLeft, 0f, 0f, 400f * Z, sfs * 1.3f, false); + float tw = Mathf.Max(probe.preferredWidth, tt.preferredWidth); + float pw = pad * 2f + isz + 10f * Z + tw; + float px = right - pw, py = btnTop - At(cl, 3, 10f) * Z - ph; + plate.rectTransform.sizeDelta = new Vector2(pw, ph); + plate.rectTransform.anchoredPosition = new Vector2(px, -py); + float txl = px + pad + isz + 10f * Z; + float ty = py + (ph - tfs * 1.2f - sfs * 1.3f) * 0.5f; + tt.rectTransform.anchoredPosition = new Vector2(txl, -ty); + probe.rectTransform.anchoredPosition = new Vector2(txl, -(ty + tfs * 1.2f)); + } + } +} diff --git a/Assets/Scripts/OutGame/Arena/ArenaSupply.cs.meta b/Assets/Scripts/OutGame/Arena/ArenaSupply.cs.meta new file mode 100644 index 00000000..d52d5353 --- /dev/null +++ b/Assets/Scripts/OutGame/Arena/ArenaSupply.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 4a9a3b5287640074c91916077cad9fde \ No newline at end of file diff --git a/Assets/Scripts/OutGame/UICaptureDriver.cs b/Assets/Scripts/OutGame/UICaptureDriver.cs index 32013aac..a6a1c742 100644 --- a/Assets/Scripts/OutGame/UICaptureDriver.cs +++ b/Assets/Scripts/OutGame/UICaptureDriver.cs @@ -228,6 +228,7 @@ namespace TKS.OutGame yield return LeagueShots(cam, root); // 투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료」 · -uiOnly arena_league,arena_league_tall) yield return ScenarioShots(cam, root); // 연의 전기 아트 화면(PD 2026-11-18 「연의 전기 통과」 · -uiOnly scn_*) yield return TowerShots(cam, root); // 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · -uiOnly arena_tower*) + yield return SupplyShots(cam, root); // 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · -uiOnly supply_list,supply_list_bottom,supply_locked) root.StaminaModal(); yield return Shot(cam, "popup_stamina", W, H); root.CloseModal(); @@ -547,6 +548,53 @@ namespace TKS.OutGame yield return new WaitForSecondsRealtime(0.3f); } + /// + /// 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · 시안 mock_s_top · bottom · locked) — 해금 스테이지(supply.unlock_stage)를 잠깐 깬 것으로 바꿔 찍고 되돌림(메모리 세이브): + /// supply_list = 위 · supply_list_bottom = 맨 아래로 스크롤 · supply_locked = 해금 전. 오늘 요일 = 실제 날짜(닫힌 카드는 그날 따라 다름). 로그 = 카드 수 · 닫힌 카드 · 요일 점 수. + /// + IEnumerator SupplyShots(Camera cam, OutGameRoot root) + { + if (only != null && Match("supply_list") == null && Match("supply_list_bottom") == null && Match("supply_locked") == null) yield break; + var d = root.Session.Save; + int lc, ls; + StageState st = null; + int clears0 = 0; + bool created = false; + if (ArenaRules.ParseStageKey(ContentTables.Str(SupplyData.Mode, "unlock_stage"), out lc, out ls)) + { + created = d.Stage(lc, ls, false) == null; + st = d.Stage(lc, ls, true); + clears0 = st.clears; + } + root.Show(root.Arena); + foreach (var key in new[] { "supply_list", "supply_list_bottom", "supply_locked" }) + { + if (only != null && Match(key) == null) continue; + if (st != null) st.clears = key == "supply_locked" ? 0 : Mathf.Max(1, clears0); + root.Arena.SetPage(0); + root.Arena.SetPage(2); + var sp = root.Arena.Supply; + if (key == "supply_list_bottom" && sp != null && sp.Scroll != null) + { + Canvas.ForceUpdateCanvases(); + sp.Scroll.verticalNormalizedPosition = 0f; + } + yield return Shot(cam, key, W, H); + if (sp != null) + { + var info = new List(); + foreach (var dg in SupplyData.AllDungeons()) info.Add(dg.id + ":" + sp.DayDotsOf(dg.id) + (sp.IsClosed(dg.id) ? "(닫힘)" : "")); + Log(key + " visible=" + root.Arena.SupplyVisible + " cards=" + sp.CardCount + " locked=" + sp.Locked + " days=" + string.Join(",", info.ToArray())); + } + } + if (st != null) + { + st.clears = clears0; + if (created) d.stages.Remove(st); + } + root.Arena.SetPage(0); + } + /// /// 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · 시안 mock_t_b2 · b37) — 깬 층을 잠깐 바꿔 찍고 되돌림(메모리 세이브): /// arena_tower = 지금 진행 그대로 · arena_tower_10 = 9층까지 깸(보스 층 도전) · arena_tower_37 = 36층까지 · arena_tower_tall = 37층 긴 화면(1080×2340). diff --git a/Assets/Scripts/Runtime/ContentModes/SupplyBattle.cs b/Assets/Scripts/Runtime/ContentModes/SupplyBattle.cs index 6d96a0ff..0ec52e2f 100644 --- a/Assets/Scripts/Runtime/ContentModes/SupplyBattle.cs +++ b/Assets/Scripts/Runtime/ContentModes/SupplyBattle.cs @@ -423,10 +423,10 @@ namespace TKS } } - // ---------- 연병장 훈련 ---------- + // ---------- 전술 훈련 ---------- /// - /// 연병장 훈련 — 허수아비(적 진영 · 움직이지 않음 · 반격 0 · 밀리지 않음 · 승패 인원 제외)가 늘 supply.drill_active_by_tier 개 · + /// 전술 훈련 — 허수아비(적 진영 · 움직이지 않음 · 반격 0 · 밀리지 않음 · 승패 인원 제외)가 늘 supply.drill_active_by_tier 개 · /// 부수면 drill_respawn_sec 뒤 다른 자리(drill_spawn_exclude · drill_hard_max · drill_zone_streak_max)에서 솟는다 · 준 피해 합(남은 체력을 넘는 피해 제외 · /// 황금 = × f_score_mult) ÷ 목표 피해(짚 체력 × 동시 수 × drill_s_target_per_active) = 판정 값(%). /// @@ -454,7 +454,7 @@ namespace TKS if (why != null) return why; foreach (var r in layout) if (r.side == "drill_spot") spots.Add(r); - if (spots.Count == 0) return "연병장 자리 없음"; + if (spots.Count == 0) return "전술 훈련 자리 없음"; foreach (var z in ContentTables.Rows(SupplyData.DrillZones)) if (z.B("b_hard")) hardZones.Add(z.S("s_zone")); active = Mathf.RoundToInt(ContentTables.Step(SupplyData.Mode, "drill_active_by_tier", Tier.tier, ContentTables.Num(SupplyData.Mode, "drill_active"))); diff --git a/Assets/Tests/PlayMode/ArenaSupplyTests.cs b/Assets/Tests/PlayMode/ArenaSupplyTests.cs new file mode 100644 index 00000000..22d8daf4 --- /dev/null +++ b/Assets/Tests/PlayMode/ArenaSupplyTests.cs @@ -0,0 +1,108 @@ +using System.Collections; +using NUnit.Framework; +using TKS.OutGame; +using UnityEngine; +using UnityEngine.SceneManagement; +using UnityEngine.TestTools; +using UnityEngine.UI; + +namespace TKS.Tests +{ + /// + /// 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · ArenaSupply) — 게임 표(supply_dungeons) = 카드: + /// 카드 수 = 던전 수 · 이름 = 표 이름(「전술 훈련」 포함 · 「연병장 훈련」 없음) · 요일 점 = 매일 열림 0 / 정해진 요일 = 여는 요일 수 · 닫힌 카드 = 오늘 안 여는 던전 · + /// 입장 = 단계 고르기(목록 꺼짐) → 뒤로 = 목록 · 해금 전 = 잠김 띠 · 캔버스 층(P41: 위 띠 Event · 목록 내용 Frame + 레이캐스터). 기대값은 표·규칙에서 읽는다(C45). + /// + public class ArenaSupplyTests + { + [TearDown] + public void TearDown() + { + SaveStore.UseMemory(false); + } + + [UnityTest] + public IEnumerator Supply_Cards_Days_Closed_Enter_Locked_Layers() + { + WorldProgress.Reset(); + SaveStore.UseMemory(true); + SceneManager.LoadScene("Battle"); + yield return null; + yield return null; + var og = OutGameRoot.Instance; + Assert.IsNotNull(og); + var s = og.Session; + var d = s.Save; + int lc, ls; + Assert.IsTrue(ArenaRules.ParseStageKey(ContentTables.Str(SupplyData.Mode, "unlock_stage"), out lc, out ls), "해금 스테이지 키"); + d.Stage(lc, ls, true).clears = 1; + og.ShowLobby(); + og.Show(og.Arena); + og.Arena.SetPage(2); + yield return null; + yield return null; + var sp = og.Arena.Supply; + Assert.IsNotNull(sp, "훈련장 표(Resources/UI/Supply/supply_screen) 없음"); + Assert.IsTrue(og.Arena.SupplyVisible, "보급전 쪽 = 아트 목록"); + Assert.IsFalse(sp.Locked); + + // ① 카드 = 던전 · 이름 · 요일 점 · 닫힘 + var all = SupplyData.AllDungeons(); + Assert.AreEqual(all.Count, sp.CardCount, "카드 수 = 던전 수"); + foreach (var dg in all) + { + Assert.AreEqual(dg.nameKo, sp.TextOf("Name_" + dg.id), dg.id + " 이름"); + Assert.IsFalse(dg.nameKo.Contains("연병장 훈련"), "옛 이름 남음"); + int want = dg.weekdays.Count >= 7 ? 0 : dg.weekdays.Count; + Assert.AreEqual(want, sp.DayDotsOf(dg.id), dg.id + " 요일 점(매일 = 0 · 정해진 요일 = 여는 요일만)"); + Assert.AreEqual(!SupplyRules.OpenToday(dg, s.Now), sp.IsClosed(dg.id), dg.id + " 닫힘"); + var t = sp.TextOf("GoText_" + dg.id); + Assert.IsNotNull(t, dg.id + " 버튼 글자"); + Assert.IsFalse(t.Contains("{"), dg.id + " 값 자리 남음: " + t); + } + Assert.IsNotNull(all.Find(x => x.nameKo == "전술 훈련"), "「전술 훈련」 이름(PD 2026-11-18)"); + foreach (var n in new[] { "Today", "Done", "Stamp", "Entries" }) + { + Assert.IsNotNull(sp.TextOf(n), n + " 없음"); + Assert.IsFalse(sp.TextOf(n).Contains("{"), n + " 값 자리 남음"); + } + + // ② 제목 띠 = 표 제목 · 부제(던전 수) + bool title = false, sub = false; + foreach (var t in og.Arena.Rt.GetComponentsInChildren(true)) + { + if (t.text == UiText.T(sp.S_("title_key"))) title = true; + if (t.text == sp.Subtitle) sub = true; + } + Assert.IsTrue(title && sub, "제목 띠"); + + // ③ 층(P41) + var sc = sp.Strip.GetComponent(); + Assert.IsNotNull(sc); + Assert.AreEqual(UiRate.Event, sc.rate, "위 띠 = Event"); + var lc2 = sp.List.GetComponent(); + Assert.IsNotNull(lc2); + Assert.AreEqual(UiRate.Frame, lc2.rate, "목록 내용 = Frame"); + Assert.IsNotNull(sp.List.GetComponent(), "목록 = 레이캐스터(입장 버튼)"); + + // ④ 입장 = 단계 고르기(목록 꺼짐) → 뒤로 = 목록 + SupplyData.Dungeon open = all.Find(x => SupplyRules.OpenToday(x, s.Now)); + Assert.IsNotNull(open, "오늘 여는 던전"); + og.Arena.OpenSupplyTiers(open.id); + yield return null; + Assert.IsFalse(og.Arena.SupplyVisible, "단계 고르기 = 목록 꺼짐"); + Assert.IsTrue(og.Arena.OnBack()); + yield return null; + Assert.IsTrue(og.Arena.SupplyVisible, "뒤로 = 목록"); + + // ⑤ 해금 전 = 잠김 띠 · 모든 버튼 잠김 + d.Stage(lc, ls, true).clears = 0; + og.Arena.SetPage(0); + og.Arena.SetPage(2); + yield return null; + Assert.IsTrue(sp.Locked, "해금 전"); + Assert.AreEqual(UiText.F("supply_unlock", new[] { ContentTables.Str(SupplyData.Mode, "unlock_stage") }), sp.TextOf("LockText"), "잠김 띠"); + foreach (var dg in all) Assert.AreEqual(UiText.T("supply_locked_btn"), sp.TextOf("GoText_" + dg.id), dg.id + " 잠김"); + } + } +} diff --git a/Assets/Tests/PlayMode/ArenaSupplyTests.cs.meta b/Assets/Tests/PlayMode/ArenaSupplyTests.cs.meta new file mode 100644 index 00000000..e122d694 --- /dev/null +++ b/Assets/Tests/PlayMode/ArenaSupplyTests.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 676a8f3e97fdbd741b4e897b396cb357 \ No newline at end of file diff --git a/Assets/UI/Atlases/UI_Supply.spriteatlasv2 b/Assets/UI/Atlases/UI_Supply.spriteatlasv2 new file mode 100644 index 00000000..0dc14135 --- /dev/null +++ b/Assets/UI/Atlases/UI_Supply.spriteatlasv2 @@ -0,0 +1,16 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!612988286 &1 +SpriteAtlasAsset: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + serializedVersion: 2 + m_MasterAtlas: {fileID: 0} + m_ImporterData: + packables: + - {fileID: 102900000, guid: 91b4d6acb1117ed408baf3006b7e5b6a, type: 3} + m_IsVariant: 0 + m_ScriptablePacker: {fileID: 0} diff --git a/Assets/UI/Atlases/UI_Supply.spriteatlasv2.meta b/Assets/UI/Atlases/UI_Supply.spriteatlasv2.meta new file mode 100644 index 00000000..fd69f38b --- /dev/null +++ b/Assets/UI/Atlases/UI_Supply.spriteatlasv2.meta @@ -0,0 +1,43 @@ +fileFormatVersion: 2 +guid: 4cbe9c4a2336e4146aa3d649e869f659 +SpriteAtlasImporter: + externalObjects: {} + textureSettings: + serializedVersion: 2 + anisoLevel: 0 + compressionQuality: 0 + maxTextureSize: 0 + textureCompression: 0 + filterMode: 2 + generateMipMaps: 1 + readable: 0 + crunchedCompression: 0 + sRGB: 1 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 1024 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + packingSettings: + serializedVersion: 2 + padding: 4 + blockOffset: 1 + allowAlphaSplitting: 0 + enableRotation: 0 + enableTightPacking: 0 + enableAlphaDilation: 1 + secondaryTextureSettings: {} + variantMultiplier: 1 + bindAsDefault: 1 + userData: b1b851e51690d8be38ea4d46e3ba59e8 + assetBundleName: + assetBundleVariant: diff --git a/CLAUDE.md b/CLAUDE.md index 078ed932..f74df16d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -55,6 +55,7 @@ Unity.exe -projectPath -executeMethod TKS.EditorTools.ProjectSetup.AutoPl - **투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료 (실제 게임에서 볼 수 있도록 반영해줘)」 · 아트 시안 `content_screens_2/arena/final/mock_arena.png`)** — 연무장 투기장 쪽(page 3) = `OutGame/Arena/ArenaLeague`(허브와 같은 방식 · 화면 맞춤 = `ArenaHubView` · 표·그림이 없거나 잠김이면 예전 더미 `BuildLeague`). 표 = `Resources/UI/League/`: `league_screen.csv`(키·값 · 계급 판 · 이름표 · 목패 · 띠지 · 얼굴 · 유닛 배율 0.2 · 예시 값) · `arena_spots.csv`(납품 그대로) · `league_text.csv`(UiText 키 · `{icon}` = 아이콘 자리) · 배경 `bg_arena_ring_tall_1080x2340`(긴 판 하나 · 16:9 = 위 1920) · 부품 `parts/`(목패 · 띠지 3 · NPC 2 · 9 분할 `parts/import.json` → `UnitArtImporter` UI/League 분기 · 아틀라스 `UI_League`). 값 = 게임 데이터(계급 · 점수 · 다음 등급 · 남은 도전 · 새로고침 무료 · 메달 · 출전 편성 5명·전투력 · 상대 3) · 데이터 없는 칸 = 표 `example_*`(기기 세이브 순위 · 수비 기록 · 정산 시각 모름). 누름 = 목패 → 도전(`LeagueGo` · 도전을 다 썼으면 입장 구매 창) · 무대 → 편성 화면 · 기록관·상인 → 준비 중(화면 없음) · 순위 칩 → 순위 표(서버 모드). 층 = Content(Static) → Art(배경 · NPC · 판 바탕 · Static) · Scene(유닛 대기 숨 · Frame) · Info(값 · 이름표 · 목패 · Event + 레이캐스터). 제목 띠 = 투기장 쪽에서만 「투기장 · 유저 대전 …」. 캡처 = `-uiOnly arena_league,arena_league_tall`(1080×1920 · 1080×2340) · 테스트 = `ArenaLeagueTests`. - **연의 전기 아트 화면(PD 2026-11-18 「연의 전기 통과 (게임에서 볼 수 있도록 반영해)」 · 아트 시안 `content_screens_2/scn/final/mock_scn_*.png`)** — 연무장 연의 전기 쪽(page 5) = `OutGame/Arena/ArenaScenario`(표·그림이 없으면 예전 더미 `BuildScenario`). 표 = `Resources/UI/Scenario/`: `scn_screen.csv`(키·값 · 쪽지 글자 · 상태 표시 · 탭 · 펼침 연출 단계 시간 · 상세 배치 · 보상 아이콘) · `scn_tabs.json`·`scn_spots.csv`·`roll_meta.csv`(납품 그대로) · `scn_text.csv`(UiText · `scn_cond_*` = 조건 종류 칩 · 시안 4개 외는 임시 이름) · 탭 배경 `bg_scn__1080x1920` · 부품 `parts/`(두루마리 8 · 상세 두루마리 9 분할 200/192 · 고름 빛 `part_glow` = 팩 FocusGlow 사본 · `import.json` · `max` 칸 = 큰 부품 임포트 크기 · 아틀라스 `UI_Scenario`). 탭 하나 = 한 화면(5권 이하 · 가운데 정렬) · 상태 = 세이브(완료 = 연의 승리 · 서장 = 본편 n_spec_chapter-n_acts 클리어 · 새 편 = 열린 미완료 첫 편 = 허브 상태 줄과 같음 · 잠김 = 해금 스테이지). 두루마리 누름 = 펼침 연출 6단계(`ScenarioOpenFx` · 누르면 건너뜀) → 상세(위 덮개 루트 TopRoot · 연의/열전 · 승리 · 도전 · 편성 · 첫 승리 보상 · 전장 보기 = 준비 중 · 출전 = `ScenarioGo`) · 뒤로 = 상세 닫기. 화면 맞춤 = `ScenarioFit`(폭 맞춤 · 위 정렬 · 긴 화면 = 배경 아래 바닥 띠를 늘림 · 탭 줄 = 아래 내비 위). 층 = Content(Static) → Art(Static) · Rolls(Event + 레이캐스터) · Chrome(Event) · Floor(Static) · Tabs(Event + 레이캐스터) · 상세 Overlay → Anim(Frame) · Detail(Event). 캡처 = `-uiOnly scn_list,scn_list_b,scn_list_p2,scn_open_anim,scn_detail,scn_list_tall,scn_detail_tall`(캡처용 진행 = 9장 장판파가 새 편 · 찍은 뒤 되돌림) · 테스트 = `ArenaScenarioTests`. - **천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · 아트 시안 `content_screens_2/tower/final/mock/mock_t_b2·b37.png` · 레시피 R32)** — 연무장 탑 쪽(page 1) = `OutGame/Arena/ArenaTower`(+ `ArenaScreen.Tower` · 표·그림이 없으면 예전 더미 `BuildTower`). 표 = `Resources/UI/Tower/`: `tower_screen.csv`(키·값 · 탑 가운데 · 도전 층 자리 비율 `focus` · 받침 한계 · 하늘 시차 · 현판 글자 색·크기 · 보스 현판(10층마다) · 문 빛 · 화살표 · 정보 판 배치) · `tower_marks.csv`(납품 그대로 · 조각별 층 현판·문 px) · `tower_text.csv`(UiText) · 하늘 `sky_low`(1080×1920 · 받침 행 1760) · `sky_band`(1080×930 · 위로 반복 · 번갈아 뒤집음) · 부품 `parts/`(탑 조각 3 = `tower_top` 1038×1001(100·99·98층) · `tower_floor` 1038×286(3~97층 = 95번) · `tower_base` 1038×858(2·1층) = 아틀라스 밖 단독 · 문 빛 · 번짐 · 화살표 = 아틀라스 `UI_Tower` · `import.json` max 2048). 그림 = 아트 작업 폴더 `export_game.py`(쌓은 판을 한 번에 줄여 정수 행에서 자름 = 반복 층 이음 0). 화면 = 하늘 · 탑(보이는 조각만 그림 · 끌어서 위아래 · 놓으면 미끄러짐 · 꼭대기 · 받침 한계) · 현판 글자(깬 층 금 · 도전 층 · 못 깬 층 회갈 + 어둡게 · 보스 붉은 바탕) · 도전 층 = 문 빛 숨 + 번짐(덧셈 = `GachaCutscene.AddMat`) + 금 화살표 흔들림 · 아래 정보 판(층 · 편성 출처 · 적 얼굴(무장 먼저 · 병종 묶음 · 그림 없으면 병종 아이콘) · 배율 · 첫 클리어 보상 · 최고 층(서버 모드 = 누르면 순위 표) · 입장권 + 광고 · 도전 = `StartMode`). 층 = 화면 → Back(하늘 · 탑 · 현판 = Frame) · Fx(문 빛 · 화살표 = Frame) · Input(끌기 = Event + 레이캐스터) · Chrome(재화 바 뒤 띠 = Static) · Panel(정보 판 = Event + 레이캐스터). 제목 띠 = 탑 쪽에서만 「천하제일 탑 · 100층 · 10층마다 보스」. 캡처 = `-uiOnly arena_tower,arena_tower_10,arena_tower_37,arena_tower_tall`(깬 층을 잠깐 바꿔 찍고 되돌림) · 테스트 = `ArenaTowerTests`. +- **훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 「위 내용으로 게임에 반영 · 매일 열림 = 요일 없음 · 정해진 요일 = 여는 요일만 · 「/」 판 더 왼쪽으로 짧게 · 버튼과 유닛 안 겹치게」 · 시안 `content_screens_2/supply/final/mock/mock_s_*.png` · 레시피 R33)** — 연무장 보급전 쪽(page 2) 던전 목록 = `OutGame/Arena/ArenaSupply`(+ `ArenaScreen.Supply` 의 `LoadSupplyView` · `ShowSupplyView` · `OpenSupplyTiers` · 표·배너가 없으면 예전 더미 목록 `BuildSupplyList` · 입장 뒤 단계 고르기 = 예전 `BuildSupplyTiers` 그대로). 던전 · 이름 · 요일 · 제한 턴 · 보상 = 게임 표 `ContentModes/supply_dungeons`(「연병장 훈련」 → 「전술 훈련」 · PD 2026-11-18) · 화면 표 = `Resources/UI/Supply/`: `supply_screen.csv`(키·값 · 던전 id → 배너 · 글자 판 색 · 판 알파 · 위 띠 · 카드 · 칩 · 요일 점 · 보상 아이콘 · 입장 · 닫힘 판 배치) · `supply_text.csv`(UiText) · 배너 `banners/banner_.png`(1040×360 · 둥근 모서리 · 테 굽기 · 단독 텍스처) · 「/」 판 `parts/panel_fill · panel_line`(흰 · 틴트 · 아틀라스 `UI_Supply`) · 그림 = 아트 폴더 `export_game.py`. 카드 = 배너(닫힌 날 · 해금 전 = 곱하기 색) · 판(이름 · 제한 턴 · 최고 단계 = 세이브 최고 기록 단계 · 요일 점 = 매일 열림이면 없음 · 정해진 요일이면 여는 요일만 · 오늘 = 금 고리 · 보상 칸(1개면 이름 글자)) · 오른쪽 열 = 남은 칩 + 입장(`btn_l_red` + 붉은 틴트) / 닫힌 날 = 「오늘 닫힘 · 여는 요일」 판 + 닫힘 / 해금 전 = 위 붉은 띠 + 잠김. 위 띠(고정) = 오늘 요일 · 오늘 완료 · 주간 도장 · 하루 횟수 · 광고. 층 = 화면 → Strip(Event) · 목록 `UiKit.ScrollGrid`(보는 칸 RectMask2D + 내용 Frame · 레이캐스터). 캡처 = `-uiOnly supply_list,supply_list_bottom,supply_locked`(해금 스테이지를 잠깐 바꿔 찍고 되돌림 · 오늘 요일 = 실제 날짜) · 테스트 = `ArenaSupplyTests`. - **영웅 72명(PD #1108 · 2026-11-10)** — heroes 87행(영웅 72 + 병사 15) · skills 144 · skill_effects 288 · 옛 키 체계(51+4종 · 견제·관통 배율 등)는 #1112 에서 폐기. - **지형 기믹 레이어(PD #1097 · 2026-11-06 세션 D)** — SOT = `Assets/Data/Gimmicks/{gimmicks,stage_gimmicks,tutorial_tips}.csv`(기획 `tables/` 사본 · utf-8-sig) → 메뉴 `TKS/Import Gimmicks (기믹 임포트)`(`Editor/GimmickImporter` · 오류 시 자산 불변 · `ai_weights.csv` 도 함께) → `Resources/Gimmicks/GimmickDb`·`StageGimmickTable` · `Resources/AI/AiWeights`. 전투 시작 = `GimmickLayer.Build(stage)`(장-번호 배치 · 배경 위 · 유닛 아래 · 장애물 = 콜라이더 + `GimmickBody` · 지대 = 모양 스윕 · 강 = 늪처럼 통과하는 지대(강 안 ×p3 · 다리 구간 = 효과 없음 · 강가·다리에서 밀려 강물에 들면 빠짐 · PD 2026-11-06 개정) · 겹친 유닛은 빈 자리로). 전투 코드는 질의만: `Combat.FreeTravel`(장애물 = 벽 · 숨은 함정 정지) · `FirstUnitOnArrow`(pass/block/destroy) · `Combat.Damage`(군기 공 · 고지 근접 피격 · 안개 원거리 피격 ×p1 · 책사 광역이 그 반경 안개를 걷음) · `SkillMods.Range`(고지 사거리) · `BattleManager` 턴 시작 `TurnStart`(군기·중독·불·행동 불가). 충돌 반응·폭발·굴림·미끄러짐·지대 = `Gimmicks/ActionResolver.Gimmicks.cs`(partial). 배치 도구 = `TKS/Gimmick Painter (기믹 배치)`. 테스트 = `Tests/PlayMode/GimmickTests` · 캡처 = `-executeMethod TKS.EditorTools.GimmickImporter.Capture -gimmickDir `(사본 · `-gimmickStages 1-3,…` 시작 화면 · `-gimmickPlayView 1` 전투 배율 1장 더 · `-gimmickCatalog 1` 16종 견본 평상시·상태 변화). - **지형 기믹 그림(PD 2026-11-10 #1113 「기획된 지형을 화풍에 맞게」)** — 그리는 법 SOT = 표 `Assets/Resources/Gimmicks/gimmick_art.csv`(기믹 id 1줄 · 전투마다 다시 읽음 · 머리 주석이 칸 설명) → `Runtime/Gimmicks/GimmickArt`. **아이콘을 모양 크기로 늘리지 않는다**: 지대 = 모양 거리장 + 월드 좌표 반복 타일(`Resources/Gimmicks/Tiles/` · Read/Write 임포트) + 테두리·그늘·절벽/앞면·외곽선을 전투 시작 때 한 장으로 굽고(캐시 · `GimmickArt.BeginBuild/EndBuild` 로 정리) · 물체 = `Resources/Gimmicks/Art/` 스프라이트를 비율 유지로 세움(object · scatter(`;` 로 여러 그림) · strip 말뚝 줄 · gate 성벽 바닥 + 성루 · banner 원 + 진영색 깃발) · 상태(부서짐 → `sprite_alt` · 불 꺼짐 → `out_tint` + 숯 · 성문 → `base_alt` 돌무더기) · 그림이 있으면 이름 글자 끔. 표에 줄이 없으면 예전 방식(늘린 아이콘/색 도형). 임포트 = `Editor/GimmickArtImporter`. **2차(Fable 1안 시제 · PD 2026-11-10 「인게임 화풍 = 카피바라 Go 류」)**: `patch` = 그림(Art)으로 바닥 지대 — `sprite_round`(원) · `sprite_oval`+`oval_max`(가로세로비 이하) · `sprite_long`(그보다 긴 것) = **통째 그림을 모양 크기로 늘림**(자연 웅덩이 · 낮은 언덕 · 굽이진 강) · 셋 다 없으면 `sprite`+`border`(9-slice · `ppu` · `ext_b`) · scatter `edge`/`edge_sprite`(가장자리 소품) · `obj_layer ground`(물결 = 다리 아래) · `jitter`/`flip`/`obj_a` · strip `sprite` 3개 = 왼끝;가운데(반복);오른끝(녹각 목책) + `shadow` · 안개 = 구름 덩어리 흩뿌림 + 책사 광역 반경 덩어리만 사라짐(`GimmickView.ClearPuffs`). 견본 캡처 = `-gimmickCatalog proto`(크기 변형 · 상태 · 전투 배율 + 유닛). **3차(남은 9종 · 2026-11-11 · 16종 전부 그림 방식 · 굽기(zone) 줄 0)**: strip `sprite_v` = 세로 구간 마디(위끝;가운데;아래끝 · 폭 = 모양 폭 · 세로만 늘려 이음 없이 · 8-6 세로 성벽) · patch `sprite_alt` 「둥근·타원;긴」 = 고른 통째 그림에 맞는 상태 그림(불 꺼짐 · `out_tint` #FFFFFF) · 성문 = object(성루 + 문 한 장 · 부서짐 = `sprite_alt`) · 군기 원 = patch 돌 원(점령 진영 색을 곱함) · 함정 = object(덮개 · 드러나면 말뚝 구덩이). 시안·원본 = 조직 작업 폴더 `C:\ArtRnD\samguk_terrain\`(`styles.json`·`game_rows.json` → `to_game.py` 가 표·타일·그림을 씀) · 기록 = 조직 레포 `공유/대화로그/삼국지슬링샷/2026-11-10_지형그림_화풍반영.md`.