천하제일 탑 아트 화면(B안) — 하늘 + 100층 탑(꼭대기 · 반복 층 95 · 받침 · 끌어서 위아래 · 보이는 조각만) · 층 현판 글자(깬 층 금 · 못 깬 층 회갈 · 10층마다 붉은 보스 현판) · 도전 층 문 빛 + 금 화살표 · 아래 정보 판(층 · 적 편성 얼굴 · 배율 · 첫 클리어 보상 · 최고 층 · 입장권 + 광고 · 도전) · 표 Resources/UI/Tower · 아틀라스 UI_Tower · 테스트 ArenaTowerTests · 캡처 arena_tower* (PD 2026-11-18 「B안으로 진행해」 · 「커밋·푸시해」)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-11-18 21:47:48 +09:00
parent a60de28025
commit d6bd7e2014
40 changed files with 2761 additions and 2 deletions

View File

@ -22,3 +22,4 @@ folder,UI_Scenario,Assets/Resources/UI/Scenario/parts,2048,연의 전기 화면
folder,UI_Title,Assets/Resources/UI/Title/pack,1024,타이틀 화면 작은 연출(불씨 3 · 반짝이 · 흙먼지 · PD 2026-11-13) — Frame 층 한 장 = 드로우콜 1 · 햇살(1024²)은 single_area 초과라 단독
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 초과라 단독

1 kind name match value note
22 folder UI_Title Assets/Resources/UI/Title/pack 1024 타이틀 화면 작은 연출(불씨 3 · 반짝이 · 흙먼지 · PD 2026-11-13) — Frame 층 한 장 = 드로우콜 1 · 햇살(1024²)은 single_area 초과라 단독
23 import tre_bg /frame_bg/bg_tre_ 2048 보물 화면 배경 2장(보물고 · 금고 1080×1920) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-13)
24 import gacha_bg /frame_bg/bg_gacha_ 2048 뽑기 연출 배경 초가집(1080×1920) 원본 그대로 임포트(기본 1024 = 흐림 · 로비 bg_lobby 와 같은 이유 · PD 2026-11-13)
25 folder UI_Tower Assets/Resources/UI/Tower/parts 1024 천하제일 탑 화면 작은 부품(PD 2026-11-18 「B안으로 진행해」) 문 빛 · 번짐 · 화살표 — Fx 층 한 장 = 드로우콜 1 · 탑 조각 3장(1038 폭)은 single_area 초과라 단독

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fb206429c93fa634f9c4bb9fdb2bf1b8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4887015bdc034744d8b98d66d7d6d5c7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 5b4ddc9e22e823e4aa1915450d64832c
TextureImporter:
internalIDToNameTable:
- first:
213: -765150924802650856
second: arrow_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: arrow_0
rect:
serializedVersion: 2
x: 9
y: 6
width: 78
height: 100
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 81d839fa943a165f0800000000000000
internalID: -765150924802650856
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
arrow_0: -765150924802650856
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 93b3dfd5ecd827b419041e794745eacb
TextureImporter:
internalIDToNameTable:
- first:
213: -6819187306362437901
second: door_glow_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: door_glow_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 84
height: 114
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 3fef96346416d51a0800000000000000
internalID: -6819187306362437901
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
door_glow_0: -6819187306362437901
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 77b47789111f18545a788cb47135461a
TextureImporter:
internalIDToNameTable:
- first:
213: -36049200051068670
second: door_halo_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: door_halo_0
rect:
serializedVersion: 2
x: 6
y: 0
width: 245
height: 178
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 201e48c817def7ff0800000000000000
internalID: -36049200051068670
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
door_halo_0: -36049200051068670
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,92 @@
{
"_doc": "천하제일 탑 부품 임포트(PD 2026-11-18 「B안으로 진행해」) · UnitArtImporter(UI/Tower 하위 폴더)가 읽음 · 탑 조각 3장 = 1038 px 폭 그대로(max 2048 · single_area 초과 = 아틀라스 밖 단독) · 작은 부품 = 아틀라스 UI_Tower",
"items": [
{
"file": "tower_top.png",
"pivot": [
0.5,
0.5
],
"border": [
0,
0,
0,
0
],
"ppu": 100,
"max": 2048
},
{
"file": "tower_floor.png",
"pivot": [
0.5,
0.5
],
"border": [
0,
0,
0,
0
],
"ppu": 100,
"max": 2048
},
{
"file": "tower_base.png",
"pivot": [
0.5,
0.5
],
"border": [
0,
0,
0,
0
],
"ppu": 100,
"max": 2048
},
{
"file": "door_glow.png",
"pivot": [
0.5,
0.5
],
"border": [
0,
0,
0,
0
],
"ppu": 100
},
{
"file": "door_halo.png",
"pivot": [
0.5,
0.5
],
"border": [
0,
0,
0,
0
],
"ppu": 100
},
{
"file": "arrow.png",
"pivot": [
0.5,
0.5
],
"border": [
0,
0,
0,
0
],
"ppu": 100
}
]
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8162780a326f14146b15c5a9adf79b32
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 8fe05055d61400049a0d8bb4ddce3e60
TextureImporter:
internalIDToNameTable:
- first:
213: -2314719218712912926
second: tower_base_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: tower_base_0
rect:
serializedVersion: 2
x: 79
y: 6
width: 880
height: 852
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 2ebd8dd622770efd0800000000000000
internalID: -2314719218712912926
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
tower_base_0: -2314719218712912926
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 72a872bd0a0b02943bd1028c5fdc618b
TextureImporter:
internalIDToNameTable:
- first:
213: 7030416954511714633
second: tower_floor_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: tower_floor_0
rect:
serializedVersion: 2
x: 204
y: 0
width: 630
height: 286
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 949ed8ca8fe019160800000000000000
internalID: 7030416954511714633
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
tower_floor_0: 7030416954511714633
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 213928f6e4e51d34cafa30c0750164fd
TextureImporter:
internalIDToNameTable:
- first:
213: -4319797456347780479
second: tower_top_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: tower_top_0
rect:
serializedVersion: 2
x: 204
y: 0
width: 630
height: 1001
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 18a21c8c91ffc04c0800000000000000
internalID: -4319797456347780479
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
tower_top_0: -4319797456347780479
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 KiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 7f581c91d24bbfc4da2f2b4d20b55296
TextureImporter:
internalIDToNameTable:
- first:
213: 3843035563283399105
second: sky_band_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: sky_band_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 1080
height: 930
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 1c143b8cb74355530800000000000000
internalID: 3843035563283399105
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
sky_band_0: 3843035563283399105
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: a436ba4d40d3d7643a93d48e476acce6
TextureImporter:
internalIDToNameTable:
- first:
213: -3094614997571843327
second: sky_low_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: sky_low_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 1080
height: 1920
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 10b42214e08bd05d0800000000000000
internalID: -3094614997571843327
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
sky_low_0: -3094614997571843327
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
# 천하제일 탑 층 자리(아트 납품 · content_screens_2/tower/export_game.py) — 조각 png 의 px(왼쪽 위 0,0 · 아래로 +) · s_piece = top(꼭대기 · 위→아래 n_floor 100·99·98) · floor(반복 층 · 3~97층 · n_floor -1) · base(받침 · 2·1층)
# plaque = 현판 금테 바깥 사각(층 글자 자리) · door = 문 안 어두운 아치(도전 층 문 빛 자리 · 반복 층 문 아래끝은 조각 높이를 넘어 다음 조각 위까지)
s_piece,n_idx,n_floor,n_px0,n_py0,n_px1,n_py1,n_dx0,n_dy0,n_dx1,n_dy1
top,0,100,450,296,588,342,482,352,556,449
top,1,99,446,551,592,601,481,611,557,715
top,2,98,442,824,597,874,478,879,561,993
floor,0,-1,442,109,597,159,478,164,561,278
base,0,2,434,114,604,166,473,170,565,286
base,1,1,426,427,612,485,463,490,575,614
1 # 천하제일 탑 층 자리(아트 납품 · content_screens_2/tower/export_game.py) — 조각 png 의 px(왼쪽 위 0,0 · 아래로 +) · s_piece = top(꼭대기 · 위→아래 n_floor 100·99·98) · floor(반복 층 · 3~97층 · n_floor -1) · base(받침 · 2·1층)
2 # plaque = 현판 금테 바깥 사각(층 글자 자리) · door = 문 안 어두운 아치(도전 층 문 빛 자리 · 반복 층 문 아래끝은 조각 높이를 넘어 다음 조각 위까지)
3 s_piece,n_idx,n_floor,n_px0,n_py0,n_px1,n_py1,n_dx0,n_dy0,n_dx1,n_dy1
4 top,0,100,450,296,588,342,482,352,556,449
5 top,1,99,446,551,592,601,481,611,557,715
6 top,2,98,442,824,597,874,478,879,561,993
7 floor,0,-1,442,109,597,159,478,164,561,278
8 base,0,2,434,114,604,166,473,170,565,286
9 base,1,1,426,427,612,485,463,490,575,614

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 565a9096a1874c74b8fe27eb17dd1813
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,39 @@
# 천하제일 탑 화면 설정 표(PD 2026-11-18 「B안으로 진행해」 · 코드 = OutGame/Arena/ArenaTower) — 한 줄 = 키 · 값(| 로 여러 칸)
# 좌표 = 디자인 px(폭 1080 · 화면 폭에 맞춰 배율) · 값 출처 = 아트 시안 C:/ArtRnD/sprite_gen/ui_illust/samguk/content_screens_2/tower/mock/tower_screens.js(towerB · towerView · towerInfo) + screens.html CSS · 그림·자리를 새로 받으면 이 폴더 파일만 바꿔 끼운다
# 탑 = 조각 3장(parts/tower_top · tower_floor × 95 · tower_base)을 위에서부터 쌓음 · 층 자리 = tower_marks.csv(납품 그대로) · 탑 가운데 x = tower_x · 탑 그림 1 px = 디자인 1 px(시안 B 배율 0.6 으로 내보냄)
s_key,s_value,s_note
texts,UI/Tower/tower_text,글자 표(UiText)
title_key,tower_title,제목 띠 글자 키
subtitle_key,tower_subtitle,제목 띠 부제 키
marks,UI/Tower/tower_marks,층 자리 표(납품)
parts,UI/Tower/parts,부품 폴더
piece_top,tower_top,꼭대기 조각(100·99·98층)
piece_floor,tower_floor,반복 층(3~97층 = 95번)
piece_base,tower_base,받침 조각(2·1층)
floors,100|95,층 수|반복 층 수(꼭대기 3 + 반복 + 받침 2 = 층 수)
sky_low,UI/Tower/sky_low,땅 하늘(성벽 · 마당 · 1080×1920)
sky_band,UI/Tower/sky_band,위 하늘 띠(1080×930 · 위로 반복 · 번갈아 좌우 뒤집음)
sky,1760|0.5,땅 그림의 받침 아래끝 행|하늘 시차(탑이 1 움직일 때 하늘이 움직이는 비율 · 시안 0.32 → 0.5 = 10층에서 땅 성벽이 판 옆 틈에 보여서 · 게임 QA r1 M5)
tower_x,540,탑 가운데 x
focus,0.5245|200,도전 층 문 가운데 = 제목 띠 아래 ~ 정보 판 위 사이의 비율 자리|받침 아래끝이 정보 판 위끝보다 위로 올라가지 않는 한계(아래로 이만큼 · 274 = 시안 B 는 1층 문이 판에 30 px 가려 200 · 게임 캡처 2026-11-18)
scroll,0.135|2400,끌기 놓은 뒤 미끄러짐 감쇠(초)|최대 미끄러짐 속도(px/초)
plaque,0.98|2.6|7|6|10,현판 글자 크기 = 안쪽 높이 × |안쪽 폭 ÷ (둘 중 작은 값)|안쪽 좌우 여백|위 여백|아래 여백(아래 고리) · 여백 = 내보낸 조각 px(시안 12·10·16 × 0.6 · 게임 QA r1 M6 = 글자가 시안의 2/3)
plaque_col,#FFD23E|#A8998A|#D9B3A6|#2A120A|0.2,깬 층 · 도전 층 글자|못 깬 층 글자|못 깬 보스 층 글자|글자 테|테 굵기 = 글자 크기 ×
plaque_lock,#140A06|0.32,못 깬 층 현판 어둡게(색|알파)
plaque_boss,#B23626|0.92|10,보스 층(10층마다) 현판 바탕(색|알파|몇 층마다)
glow,door_glow|door_halo|2.2|1.6|0.55|1.1|0.9|0.2|0.85,문 빛|번짐|큰 번짐 폭·높이(문 ×)|큰 번짐 가운데 높이(문 위끝 + 문 높이 ×)|작은 번짐 폭·높이(문 ×)|작은 번짐 위끝(문 높이 ×)|번짐 알파
glow_pulse,1.6|0.82|1.0,문 빛 숨(초 · 알파 낮음 · 높음)
arrow,arrow|0.56|42|0.72|6|1.2,화살표 그림|크기 = 문 폭 ×|최소|문 끝에서 떨어짐(크기 ×)|흔들림 px|흔들림 초
panel,20|16|1040|508|#1D2140|0.97|18|26,정보 판 왼쪽|하단 탭 위 틈|폭|높이|바탕색|알파|위 여백|좌우 여백
right,330|6,오른쪽 열 폭|위 여백
title_font,76|#FFD23E,층 글자 크기|색
boss_tag,32|20|#E0483C|12,보스 층 칩 높이|글자|색|층 글자와 틈
line_font,23|#CFD5EA|2,편성 이름 줄 글자|색|위 틈
sec_font,27|#FFD23E|10|12,소제목 글자|색|위 틈|아래 틈
enemy,88|20|5|20|#CFD5EA|24|#C8402F|#5A4A6A|1.72|-0.36|-0.06,적 얼굴 지름|칸 사이|최대 칸 수|이름 글자|색|×수 글자|보스 바탕|병사 바탕|그림 폭 배율|그림 x|그림 y(얼굴 원 지름 ×)
mult,42|23|10|8,배율 칩 높이|글자|칩 사이|위 틈
reward,76|20,보상 칸 크기|칸 사이
reward_icons,cur_gem|cur_blueprint|chest_gold,보옥|도면|10층 상자(테마 아이콘)
best,44|22,최고 층 칩 높이|글자
ticket,58|24|38|112|21|16|8,입장권 칩 높이|글자|아이콘|광고 버튼 폭|광고 글자|광고 횟수 글자|칩·버튼 틈
go,104|44|24|30|14,도전 버튼 높이|글자|입장권 줄 글자|아이콘|위 틈
1 # 천하제일 탑 화면 설정 표(PD 2026-11-18 「B안으로 진행해」 · 코드 = OutGame/Arena/ArenaTower) — 한 줄 = 키 · 값(| 로 여러 칸)
2 # 좌표 = 디자인 px(폭 1080 · 화면 폭에 맞춰 배율) · 값 출처 = 아트 시안 C:/ArtRnD/sprite_gen/ui_illust/samguk/content_screens_2/tower/mock/tower_screens.js(towerB · towerView · towerInfo) + screens.html CSS · 그림·자리를 새로 받으면 이 폴더 파일만 바꿔 끼운다
3 # 탑 = 조각 3장(parts/tower_top · tower_floor × 95 · tower_base)을 위에서부터 쌓음 · 층 자리 = tower_marks.csv(납품 그대로) · 탑 가운데 x = tower_x · 탑 그림 1 px = 디자인 1 px(시안 B 배율 0.6 으로 내보냄)
4 s_key,s_value,s_note
5 texts,UI/Tower/tower_text,글자 표(UiText)
6 title_key,tower_title,제목 띠 글자 키
7 subtitle_key,tower_subtitle,제목 띠 부제 키
8 marks,UI/Tower/tower_marks,층 자리 표(납품)
9 parts,UI/Tower/parts,부품 폴더
10 piece_top,tower_top,꼭대기 조각(100·99·98층)
11 piece_floor,tower_floor,반복 층(3~97층 = 95번)
12 piece_base,tower_base,받침 조각(2·1층)
13 floors,100|95,층 수|반복 층 수(꼭대기 3 + 반복 + 받침 2 = 층 수)
14 sky_low,UI/Tower/sky_low,땅 하늘(성벽 · 마당 · 1080×1920)
15 sky_band,UI/Tower/sky_band,위 하늘 띠(1080×930 · 위로 반복 · 번갈아 좌우 뒤집음)
16 sky,1760|0.5,땅 그림의 받침 아래끝 행|하늘 시차(탑이 1 움직일 때 하늘이 움직이는 비율 · 시안 0.32 → 0.5 = 10층에서 땅 성벽이 판 옆 틈에 보여서 · 게임 QA r1 M5)
17 tower_x,540,탑 가운데 x
18 focus,0.5245|200,도전 층 문 가운데 = 제목 띠 아래 ~ 정보 판 위 사이의 비율 자리|받침 아래끝이 정보 판 위끝보다 위로 올라가지 않는 한계(아래로 이만큼 · 274 = 시안 B 는 1층 문이 판에 30 px 가려 200 · 게임 캡처 2026-11-18)
19 scroll,0.135|2400,끌기 놓은 뒤 미끄러짐 감쇠(초)|최대 미끄러짐 속도(px/초)
20 plaque,0.98|2.6|7|6|10,현판 글자 크기 = 안쪽 높이 × |안쪽 폭 ÷ (둘 중 작은 값)|안쪽 좌우 여백|위 여백|아래 여백(아래 고리) · 여백 = 내보낸 조각 px(시안 12·10·16 × 0.6 · 게임 QA r1 M6 = 글자가 시안의 2/3)
21 plaque_col,#FFD23E|#A8998A|#D9B3A6|#2A120A|0.2,깬 층 · 도전 층 글자|못 깬 층 글자|못 깬 보스 층 글자|글자 테|테 굵기 = 글자 크기 ×
22 plaque_lock,#140A06|0.32,못 깬 층 현판 어둡게(색|알파)
23 plaque_boss,#B23626|0.92|10,보스 층(10층마다) 현판 바탕(색|알파|몇 층마다)
24 glow,door_glow|door_halo|2.2|1.6|0.55|1.1|0.9|0.2|0.85,문 빛|번짐|큰 번짐 폭·높이(문 ×)|큰 번짐 가운데 높이(문 위끝 + 문 높이 ×)|작은 번짐 폭·높이(문 ×)|작은 번짐 위끝(문 높이 ×)|번짐 알파
25 glow_pulse,1.6|0.82|1.0,문 빛 숨(초 · 알파 낮음 · 높음)
26 arrow,arrow|0.56|42|0.72|6|1.2,화살표 그림|크기 = 문 폭 ×|최소|문 끝에서 떨어짐(크기 ×)|흔들림 px|흔들림 초
27 panel,20|16|1040|508|#1D2140|0.97|18|26,정보 판 왼쪽|하단 탭 위 틈|폭|높이|바탕색|알파|위 여백|좌우 여백
28 right,330|6,오른쪽 열 폭|위 여백
29 title_font,76|#FFD23E,층 글자 크기|색
30 boss_tag,32|20|#E0483C|12,보스 층 칩 높이|글자|색|층 글자와 틈
31 line_font,23|#CFD5EA|2,편성 이름 줄 글자|색|위 틈
32 sec_font,27|#FFD23E|10|12,소제목 글자|색|위 틈|아래 틈
33 enemy,88|20|5|20|#CFD5EA|24|#C8402F|#5A4A6A|1.72|-0.36|-0.06,적 얼굴 지름|칸 사이|최대 칸 수|이름 글자|색|×수 글자|보스 바탕|병사 바탕|그림 폭 배율|그림 x|그림 y(얼굴 원 지름 ×)
34 mult,42|23|10|8,배율 칩 높이|글자|칩 사이|위 틈
35 reward,76|20,보상 칸 크기|칸 사이
36 reward_icons,cur_gem|cur_blueprint|chest_gold,보옥|도면|10층 상자(테마 아이콘)
37 best,44|22,최고 층 칩 높이|글자
38 ticket,58|24|38|112|21|16|8,입장권 칩 높이|글자|아이콘|광고 버튼 폭|광고 글자|광고 횟수 글자|칩·버튼 틈
39 go,104|44|24|30|14,도전 버튼 높이|글자|입장권 줄 글자|아이콘|위 틈

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2a59afd65fa086f41a10d59852f82b07
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,28 @@
# 천하제일 탑 화면 글자 표(PD 2026-11-18 「B안으로 진행해」 · 투기장 league_text 와 같은 방식 · 한글 하드코딩 금지) — 바뀌는 값 = {0} {1} 자리
# 언어 칸 = ko(아트 시안 tower_screens.js 문구) · en 이하 = 번역 칸(비움)
s_key,ko,en,note
tower_title,천하제일 탑,,위 제목 바
tower_subtitle,100층 · 10층마다 보스,,위 제목 바 부제
tower_floor,{0}층,,현판 · 정보 판 층 글자
tower_boss_tag,보스 층,,정보 판 층 글자 옆 칩
tower_template,{0} 「{1}」 편성,,적 편성 출처(스테이지 번호 · 부제)
tower_enemies,적 편성,,소제목
tower_hp,적 체력 ×{0},,배율 칩
tower_atk,공격 ×{0},,배율 칩
tower_reward,첫 클리어 보상,,소제목
tower_best,최고 {0}층 / {1}층,,오른쪽 열 칩
tower_best_rank,최고 {0}층 / {1}층 · 순위 표,,오른쪽 열 칩(서버 모드 · 누르면 순위 표)
tower_ticket,입장권 {0},,입장권 칩 숫자
tower_ticket_max,/ {0},,입장권 칩 하루 채움
tower_ad,광고 +{0},,광고 버튼
tower_ad_count,{0} / 1,,광고 버튼 오늘 쓴 횟수
tower_ad_toast,입장권 +{0} (광고 SDK 미연동 · 시험 지급),,광고 누름 알림
tower_go,도전,,도전 버튼
tower_go_cost,입장권 1장,,도전 버튼 아래 줄
tower_no_stage,템플릿 스테이지 없음,,도전 불가 이유(표 오류)
tower_cls_infantry,보병,,적 칸 이름(병사)
tower_cls_spear,창병,,
tower_cls_cavalry,기병,,
tower_cls_archer,궁병,,
tower_cls_strategist,책사,,
tower_general,적장,,이름 없는 무장
1 # 천하제일 탑 화면 글자 표(PD 2026-11-18 「B안으로 진행해」 · 투기장 league_text 와 같은 방식 · 한글 하드코딩 금지) — 바뀌는 값 = {0} {1} 자리
2 # 언어 칸 = ko(아트 시안 tower_screens.js 문구) · en 이하 = 번역 칸(비움)
3 s_key,ko,en,note
4 tower_title,천하제일 탑,,위 제목 바
5 tower_subtitle,100층 · 10층마다 보스,,위 제목 바 부제
6 tower_floor,{0}층,,현판 · 정보 판 층 글자
7 tower_boss_tag,보스 층,,정보 판 층 글자 옆 칩
8 tower_template,{0} 「{1}」 편성,,적 편성 출처(스테이지 번호 · 부제)
9 tower_enemies,적 편성,,소제목
10 tower_hp,적 체력 ×{0},,배율 칩
11 tower_atk,공격 ×{0},,배율 칩
12 tower_reward,첫 클리어 보상,,소제목
13 tower_best,최고 {0}층 / {1}층,,오른쪽 열 칩
14 tower_best_rank,최고 {0}층 / {1}층 · 순위 표,,오른쪽 열 칩(서버 모드 · 누르면 순위 표)
15 tower_ticket,입장권 {0},,입장권 칩 숫자
16 tower_ticket_max,/ {0},,입장권 칩 하루 채움
17 tower_ad,광고 +{0},,광고 버튼
18 tower_ad_count,{0} / 1,,광고 버튼 오늘 쓴 횟수
19 tower_ad_toast,입장권 +{0} (광고 SDK 미연동 · 시험 지급),,광고 누름 알림
20 tower_go,도전,,도전 버튼
21 tower_go_cost,입장권 1장,,도전 버튼 아래 줄
22 tower_no_stage,템플릿 스테이지 없음,,도전 불가 이유(표 오류)
23 tower_cls_infantry,보병,,적 칸 이름(병사)
24 tower_cls_spear,창병,,
25 tower_cls_cavalry,기병,,
26 tower_cls_archer,궁병,,
27 tower_cls_strategist,책사,,
28 tower_general,적장,,이름 없는 무장

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0a3e8a9b2ae73b7489e506fc957a4e09
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -24,6 +24,8 @@ namespace TKS.EditorTools
public const string UiLeagueRoot = "Assets/Resources/UI/League/";
/// <summary>연의 전기 화면(PD 2026-11-18 「연의 전기 통과」) — 같은 규칙(바로 아래 = 탭 배경 · parts/ = 두루마리 · 상세 두루마리 9 분할 = import.json).</summary>
public const string UiScenarioRoot = "Assets/Resources/UI/Scenario/";
/// <summary>천하제일 탑 화면(PD 2026-11-18 「B안으로 진행해」) — 같은 규칙(바로 아래 = 하늘 2장 · parts/ = 탑 조각 3(max 2048 = import.json) · 문 빛 · 화살표).</summary>
public const string UiTowerRoot = "Assets/Resources/UI/Tower/";
/// <summary>Android 유닛 프레임 긴 변 상한(Fable 검토 2026-11-12 · 원화 PNG 는 그대로 · 빌드 때만 축소).</summary>
public const int AndroidUnitMaxSize = 512;
/// <summary>Android 유닛 프레임 압축(ASTC 5×5 시작값 · 출시 전 4×4·6×6 과 육안 비교로 확정).</summary>
@ -87,6 +89,11 @@ namespace TKS.EditorTools
PreprocessUiScene(path, UiScenarioRoot);
return;
}
if (path.StartsWith(UiTowerRoot))
{
PreprocessUiScene(path, UiTowerRoot);
return;
}
if (!path.StartsWith(Root)) return;
var ti = (TextureImporter)assetImporter;
ti.textureType = TextureImporterType.Sprite;
@ -234,7 +241,7 @@ namespace TKS.EditorTools
[MenuItem("TKS/Reimport Unit Art (유닛 아트 재임포트)")]
public static void ReimportAll()
{
foreach (var root in new[] { Root, BoardRoot, ChapterMapRoot, UiSceneRoot, UiLeagueRoot, UiScenarioRoot })
foreach (var root in new[] { Root, BoardRoot, ChapterMapRoot, UiSceneRoot, UiLeagueRoot, UiScenarioRoot, UiTowerRoot })
{
string dir = root.TrimEnd('/');
if (!AssetDatabase.IsValidFolder(dir))

View File

@ -65,6 +65,11 @@ namespace TKS.OutGame
tk = scenario.S_("title_key");
sk = scenario.S_("subtitle_key");
}
else if (page == 1 && TowerVisible)
{
tk = tower.S_("title_key");
sk = tower.S_("subtitle_key");
}
bool on = tk != null;
string t = on ? UiText.T(tk) : headerTitle0;
string sub = on ? UiText.T(sk) : headerSub0;

View File

@ -0,0 +1,46 @@
using UnityEngine;
namespace TKS.OutGame
{
/// <summary>
/// 천하제일 탑 화면(컨텐츠 · 연무장 page 1) — 표 Resources/UI/Tower 가 있으면 확정 아트 화면(ArenaTower · PD 2026-11-18 「B안으로 진행해」 · 시안 mock_t_b*.png) ·
/// 표·그림이 없으면 예전 더미 UI(ArenaScreen.BuildTower).
/// </summary>
public partial class ArenaScreen
{
ArenaTower tower; // 확정 아트 화면(표 Resources/UI/Tower · 없으면 null = 더미 UI)
RectTransform towerSlot;
/// <summary>천하제일 탑 아트 화면(없으면 null · 테스트).</summary>
public ArenaTower Tower
{
get { return tower; }
}
/// <summary>지금 탑 아트 화면이 보이는가(테스트).</summary>
public bool TowerVisible
{
get { return tower != null && tower.Built && towerSlot != null && towerSlot.gameObject.activeInHierarchy; }
}
/// <summary>Build 에서 제목 띠보다 먼저(화면 전체 · 제목 띠 · 본문 뒤) — 표만 읽음(그림은 처음 열 때).</summary>
void LoadTowerView()
{
tower = ArenaTower.Load(this);
if (tower == null) return;
towerSlot = UiKit.Fill("Tower", Rt);
towerSlot.gameObject.SetActive(false);
}
/// <summary>탑 쪽 = 아트 화면을 켜고 도전 층에 맞춰 정보 판을 다시 채움 · 표 없음 · 그림 없음 = false(호출 쪽 = 더미 UI).</summary>
bool ShowTowerView()
{
if (tower == null || towerSlot == null) return false;
towerSlot.gameObject.SetActive(true);
if (tower.Show(towerSlot)) return true;
towerSlot.gameObject.SetActive(false); // 그림 없음 = 더미 UI(다시 시도하지 않음)
tower = null;
return false;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 173a0aebb6de57f4a816b0db7b0516bc

View File

@ -44,6 +44,7 @@ namespace TKS.OutGame
if (UISkin.On) UiKit.Paint(UiKit.Fill("ListBg", Rt), UiKit.Col("list_bg", UiKit.Bg), false); // 목록형 바탕(Fable §5-3)
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)
hub = ArenaHub.Load(this); // 표만 읽음(그림·유닛은 처음 열 때)
RectTransform headerBand;
if (hub != null)
@ -116,6 +117,7 @@ namespace TKS.OutGame
if (hubSlot != null) hubSlot.gameObject.SetActive(hubOn);
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 (headerSub != null) headerSub.gameObject.SetActive(page == 0);
if (hubOn && !hub.Show(hubSlot))
{
@ -131,7 +133,9 @@ namespace TKS.OutGame
BuildCards();
ScenarioEntryButton(); // 연의 전기 입구(더미 · 2026-11-18)
break;
case 1: BuildTower(); break;
case 1: // 천하제일 탑 — 아트 화면(PD 2026-11-18 「B안으로 진행해」) · 표·그림이 없으면 더미 UI
if (!ShowTowerView()) BuildTower();
break;
case 2: BuildSupply(); break; // 보급전(컨텐츠 모드 ① · 옛 일일 던전 자리 · 2026-11-17)
case 3: // 등급 투기장(컨텐츠 모드 ④ · 교대 조작 · 2026-11-18) — 아트 화면(PD 2026-11-18 「투기장 UI 완료」) · 표·그림이 없거나 잠김 = 더미 UI
if (!ShowLeagueView()) BuildLeague();

View File

@ -0,0 +1,913 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace TKS.OutGame
{
/// <summary>
/// 천하제일 탑 화면(PD 2026-11-18 「B안으로 진행해」 · 아트 시안 content_screens_2/tower/final/mock/mock_t_b*.png · Fable QA r1 · r2 PASS) —
/// 하늘(땅 그림 + 위로 반복 띠 · 시차) 위에 100층 탑(꼭대기 조각 + 반복 층 95 + 받침 조각)을 쌓고, 층마다 현판 글자(깬 층 금색 · 못 깬 층 회갈색 + 어둡게 · 10층마다 붉은 보스 현판) ·
/// 도전할 층 = 문 빛 + 번짐(덧셈) + 금 화살표 · 아래 정보 판(층 · 적 편성 얼굴 · 배율 · 첫 클리어 보상 · 최고 층 · 입장권 + 광고 · 도전).
/// 끌어서 위아래 층 구경(보이는 조각만 그림) · 처음 = 도전할 층이 화면 위쪽 가운데.
/// 기능 = 예전 더미 화면(ArenaScreen.BuildTower)과 같음: 입장권 · 광고 · 도전(StartMode) · 순위 표(서버 모드 · 최고 층 칩).
/// 표(Resources/UI/Tower · C45): 설정 tower_screen(키 · 값) · 층 자리 tower_marks(납품 그대로) · 글자 tower_text(UiText) · 부품 parts/(탑 조각 3 = 단독 · 작은 부품 = 아틀라스 UI_Tower) · 하늘 2장.
/// 층(P41): 화면(Event) → Back(하늘 · 탑 · 현판 글자 = 끌 때만 바뀜 · Frame) · Fx(문 빛 숨 · 화살표 흔들림 · Frame) · Input(끌기 받는 칸 · Event + 레이캐스터) · Chrome(재화 바 뒤 띠 · Static) · Panel(정보 판 · Event + 레이캐스터).
/// </summary>
public class ArenaTower
{
public const string Table = "UI/Tower/tower_screen";
/// <summary>층 자리(조각 png px · 왼쪽 위 0,0 · 아래로 +).</summary>
public struct Mark
{
public int floor;
public Rect plaque;
public Rect door;
}
readonly ArenaScreen screen;
readonly Dictionary<string, string> kv = new Dictionary<string, string>();
readonly List<Mark> topMarks = new List<Mark>();
readonly List<Mark> baseMarks = new List<Mark>();
readonly Dictionary<string, Text> texts = new Dictionary<string, Text>();
Mark floorMark;
Sprite spTop, spFloor, spBase, spSkyLow, spSkyBand, spGlow, spHalo, spArrow;
float topH, floorH, baseH, towerW, totalH;
int floors, tiles;
public RectTransform View { get; private set; }
public RectTransform Back { get; private set; }
public RectTransform Fx { get; private set; }
public RectTransform InputLayer { get; private set; }
public RectTransform Chrome { get; private set; }
public RectTransform Panel { get; private set; }
public bool Built { get; private set; }
/// <summary>지금 화면 맨 위 = 탑 좌표 y(디자인 px · 탑 꼭대기 조각 위끝 = 0).</summary>
public float Cam { get; private set; }
/// <summary>도전할 층(빛 · 화살표) · 정보 판 층.</summary>
public int Current { get; private set; }
/// <summary>보이는 탑 조각 · 현판 글자 수(테스트).</summary>
public int VisiblePieces { get; private set; }
public int VisiblePlaques { get; private set; }
/// <summary>정보 판 적 칸 수(테스트).</summary>
public int EnemyCards { get; private set; }
ArenaTower(ArenaScreen s)
{
screen = s;
}
OutGameSession S
{
get { return screen.S; }
}
// ---------- 표 ----------
/// <summary>설정 표 · 층 자리 표 · 글자 표를 읽는다(그림은 처음 열 때) · 표가 없으면 null(호출 쪽 = 예전 더미 화면).</summary>
public static ArenaTower Load(ArenaScreen s)
{
var rows = UiText.Rows(Table);
if (rows == null) return null;
var tw = new ArenaTower(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);
tw.kv[k] = v ?? "";
}
UiText.Use(tw.S_("texts"));
if (!tw.LoadMarks() || !UiText.Has(tw.S_("title_key"))) return null;
return tw;
}
public string S_(string key, string def = "")
{
string v;
return kv.TryGetValue(key, out v) && v.Length > 0 ? v : def;
}
string[] L(string key)
{
return S_(key).Split('|');
}
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 string N(float v, string fmt = "0.00")
{
return v.ToString(fmt, CultureInfo.InvariantCulture);
}
bool LoadMarks()
{
var rows = UiText.Rows(S_("marks"));
if (rows == null) return false;
bool hasFloor = false;
var tops = new SortedDictionary<int, Mark>();
var bases = new SortedDictionary<int, Mark>();
foreach (var r in rows)
{
string piece;
if (!r.TryGetValue("s_piece", out piece) || piece.Length == 0) continue;
Func<string, float> g = c =>
{
string v;
return r.TryGetValue(c, out v) ? F(v) : 0f;
};
var m = new Mark
{
floor = (int)g("n_floor"),
plaque = Rect.MinMaxRect(g("n_px0"), g("n_py0"), g("n_px1"), g("n_py1")),
door = Rect.MinMaxRect(g("n_dx0"), g("n_dy0"), g("n_dx1"), g("n_dy1")),
};
int idx = (int)g("n_idx");
if (piece == "top") tops[idx] = m;
else if (piece == "base") bases[idx] = m;
else if (piece == "floor")
{
floorMark = m;
hasFloor = true;
}
}
topMarks.AddRange(tops.Values);
baseMarks.AddRange(bases.Values);
var fl = L("floors");
floors = (int)At(fl, 0, 100f);
tiles = floors - topMarks.Count - baseMarks.Count;
return hasFloor && topMarks.Count > 0 && baseMarks.Count > 0 && tiles > 0;
}
// ---------- 층 좌표 ----------
/// <summary>층 n 의 조각 위끝(탑 좌표) · 현판 · 문(조각 px).</summary>
public Mark MarkOf(int n, out float y0)
{
int nt = topMarks.Count, nb = baseMarks.Count;
if (n > floors - nt)
{
y0 = 0f;
return topMarks[Mathf.Clamp(floors - n, 0, nt - 1)];
}
if (n > nb)
{
y0 = topH + (floors - nt - n) * floorH;
return floorMark;
}
y0 = topH + tiles * floorH;
return baseMarks[Mathf.Clamp(nb - n, 0, nb - 1)];
}
/// <summary>층 n 의 문 가운데(탑 좌표 y).</summary>
public float DoorMid(int n)
{
float y0;
var m = MarkOf(n, out y0);
return y0 + m.door.center.y;
}
// ---------- 만들기 ----------
/// <summary>slot(화면 전체 · 제목 띠 뒤)에 처음 한 번 층을 만들고 도전 층에 맞춘 뒤 정보 판을 다시 채운다 · 그림이 없으면 false(호출 쪽 = 예전 더미 화면).</summary>
public bool Show(RectTransform slot)
{
if (!Built && !Build(slot)) return false;
Current = ArenaRules.TowerNext(S.Db, S.Save);
FocusCurrent();
BuildPanel();
return true;
}
Sprite Part(string name)
{
return name.Length > 0 ? Resources.Load<Sprite>(S_("parts") + "/" + name) : null;
}
bool Build(RectTransform slot)
{
spTop = Part(S_("piece_top"));
spFloor = Part(S_("piece_floor"));
spBase = Part(S_("piece_base"));
spSkyLow = Resources.Load<Sprite>(S_("sky_low"));
spSkyBand = Resources.Load<Sprite>(S_("sky_band"));
if (spTop == null || spFloor == null || spBase == null || spSkyLow == null || spSkyBand == null)
{
Debug.LogWarning("[TKS] 천하제일 탑 그림 없음: " + S_("parts") + " · " + S_("sky_low"));
return false;
}
var gl = L("glow");
spGlow = Part(Str(gl, 0));
spHalo = Part(Str(gl, 1));
spArrow = Part(Str(L("arrow"), 0));
topH = spTop.rect.height;
floorH = spFloor.rect.height;
baseH = spBase.rect.height;
towerW = spFloor.rect.width;
totalH = topH + tiles * floorH + baseH;
View = slot;
Back = UiLayer.Group("Back", View, UiRate.Frame); // 끌 때만 바뀜(스크롤 내용 = Frame)
Fx = UiLayer.Group("Fx", View, UiRate.Frame); // 문 빛 숨 · 화살표 흔들림(매 프레임)
InputLayer = UiLayer.Group("Input", View, UiRate.Event, true);
Chrome = UiLayer.Group("Chrome", View, UiRate.Static);
Panel = UiLayer.Group("Panel", View, UiRate.Event, true);
skyRoot = UiKit.Fill("Sky", Back);
pieceRoot = UiKit.Fill("Pieces", Back);
overRoot = UiKit.Fill("Plates", Back);
textRoot = UiKit.Fill("Floors", Back);
BuildFx();
var hit = UiKit.Fill("Drag", InputLayer);
var hi = hit.gameObject.AddComponent<Image>();
hi.color = new Color(0f, 0f, 0f, 0f);
hi.canvasRenderer.cullTransparentMesh = true; // 안 그리고 누름만 받음
drag = hit.gameObject.AddComponent<TowerDrag>();
drag.owner = this;
UiKit.Paint(UiKit.TopBand("TopBand", Chrome, 0f, OutGameRoot.TopBarH), UiKit.Col("band_top", UiKit.Bg), false); // 재화 바 뒤 띠(시안 .top)
Built = true;
return true;
}
RectTransform skyRoot, pieceRoot, overRoot, textRoot;
readonly List<Image> skyPool = new List<Image>();
readonly List<Image> piecePool = new List<Image>();
readonly List<Image> overPool = new List<Image>();
readonly List<Text> textPool = new List<Text>();
Image glowImg, haloBig, haloSmall, arrowL, arrowR;
TowerDrag drag;
// 화면 크기(캔버스 단위) · 디자인 배율 z(폭 1080 기준 · 세로가 모자란 태블릿 = 1920 기준)
float Wv, Hv, Z, Ytop, Ypanel;
void Measure()
{
var r = View.rect;
Wv = r.width;
Hv = r.height;
Z = Mathf.Min(Wv / 1080f, Hv / 1920f);
if (Z <= 0f) Z = 1f;
var pn = L("panel");
Ytop = OutGameRoot.TopBarH + OutGameRoot.HeaderH;
Ypanel = Hv - OutGameRoot.TabBarH - At(pn, 1, 16f) * Z - At(pn, 3, 508f) * Z;
}
float CamMin
{
get { return -(Ytop + 80f * Z) / Z; } // 꼭대기 구슬이 제목 띠 아래 80 px 까지
}
float CamMax
{
get { return totalH - (Ypanel + At(L("focus"), 1, 200f) * Z) / Z; } // 받침 아래끝이 정보 판 위끝 + 표 focus[1] 보다 위로 오지 않게
}
/// <summary>도전할 층 문 가운데 = 제목 띠 아래 ~ 정보 판 위 사이 focus 비율 자리.</summary>
public void FocusCurrent()
{
Measure();
float yf = Ytop + (Ypanel - Ytop) * At(L("focus"), 0, 0.5245f);
if (drag != null) drag.Stop();
SetCam(DoorMid(Current) - yf / Z, true);
}
internal void Resized()
{
if (!Built || !View.gameObject.activeInHierarchy) return;
FocusCurrent();
BuildPanel();
}
/// <summary>끌기 · 미끄러짐 · 맞춤 → 범위 안으로 자르고 바뀌었으면 다시 놓음.</summary>
public bool SetCam(float cam, bool force = false)
{
Measure();
float c = Mathf.Clamp(cam, CamMin, Mathf.Max(CamMin, CamMax));
if (!force && Mathf.Abs(c - Cam) < 0.01f) return false;
Cam = c;
Layout();
return c != cam;
}
static void Place(RectTransform rt, float x, float y, float w, float h)
{
rt.anchorMin = rt.anchorMax = new Vector2(0f, 1f);
rt.pivot = new Vector2(0f, 1f);
var p = new Vector2(x, -y);
var s = new Vector2(w, h);
if (rt.anchoredPosition != p) rt.anchoredPosition = p;
if (rt.sizeDelta != s) rt.sizeDelta = s;
}
Image Pooled(List<Image> pool, int i, RectTransform parent, string name)
{
while (pool.Count <= i)
{
var rt = UiKit.Rect(name + pool.Count, parent, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, Vector2.one);
var im = rt.gameObject.AddComponent<Image>();
im.raycastTarget = false;
pool.Add(im);
}
var img = pool[i];
if (!img.gameObject.activeSelf) img.gameObject.SetActive(true);
return img;
}
static void HideFrom<T>(List<T> pool, int n) where T : Component
{
for (int i = n; i < pool.Count; i++)
if (pool[i].gameObject.activeSelf) pool[i].gameObject.SetActive(false);
}
static void SetSprite(Image im, Sprite sp, bool flip)
{
if (im.sprite != sp) im.sprite = sp;
var s = new Vector3(flip ? -1f : 1f, 1f, 1f);
if (im.rectTransform.localScale != s) im.rectTransform.localScale = s;
}
/// <summary>보이는 하늘 · 조각 · 현판만 놓는다(끌 때마다 · 값이 같으면 쓰지 않음).</summary>
void Layout()
{
float tx = Wv * 0.5f + (F(S_("tower_x"), 540f) - 540f) * Z;
float x0 = tx - towerW * 0.5f * Z;
Func<float, float> Y = yw => (yw - Cam) * Z;
// 하늘: 땅 그림의 받침 행 = 받침 아래끝(시차) · 그 위로 띠
var sk = L("sky");
float gMin = Ypanel + At(L("focus"), 1, 200f) * Z;
float gs = Y(totalH);
float bgG = gMin + (gs - gMin) * At(sk, 1, 0.5f);
float ks = Wv / spSkyLow.rect.width; // 하늘 = 화면 폭 덮음
float lowTop = bgG - At(sk, 0, 1760f) * ks;
int si = 0;
float lowH = spSkyLow.rect.height * ks;
if (lowTop < Hv && lowTop + lowH > 0f)
{
var im = Pooled(skyPool, si++, skyRoot, "Sky");
SetSprite(im, spSkyLow, false);
Place(im.rectTransform, 0f, lowTop, Wv, lowH + 1f);
}
float bh = spSkyBand.rect.height * ks;
for (int i = 1; lowTop - (i - 1) * bh > 0f; i++)
{
float y = lowTop - i * bh;
if (y > Hv) continue;
var im = Pooled(skyPool, si++, skyRoot, "Sky");
SetSprite(im, spSkyBand, i % 2 == 1);
im.rectTransform.pivot = new Vector2(0.5f, 1f);
var p = new Vector2(Wv * 0.5f, -y);
im.rectTransform.anchorMin = im.rectTransform.anchorMax = new Vector2(0f, 1f);
if (im.rectTransform.anchoredPosition != p) im.rectTransform.anchoredPosition = p;
var sz = new Vector2(Wv, bh + 1f);
if (im.rectTransform.sizeDelta != sz) im.rectTransform.sizeDelta = sz;
}
HideFrom(skyPool, si);
// 탑 조각(보이는 것만)
int pi = 0;
float vt = Cam, vb = Cam + Hv / Z;
Action<Sprite, float, float> piece = (sp, yw, h) =>
{
if (yw + h < vt || yw > vb) return;
var im = Pooled(piecePool, pi++, pieceRoot, "Piece");
SetSprite(im, sp, false);
Place(im.rectTransform, x0, Y(yw), towerW * Z, h * Z + 0.5f);
};
piece(spTop, 0f, topH);
int t0 = Mathf.Max(0, Mathf.FloorToInt((vt - topH) / floorH) - 1);
int t1 = Mathf.Min(tiles - 1, Mathf.CeilToInt((vb - topH) / floorH) + 1);
for (int i = t0; i <= t1; i++) piece(spFloor, topH + i * floorH, floorH);
piece(spBase, topH + tiles * floorH, baseH);
HideFrom(piecePool, pi);
VisiblePieces = pi;
// 현판(층 글자 · 보스 바탕 · 못 깬 층 어둡게)
var pl = L("plaque");
var pc = L("plaque_col");
var lk = L("plaque_lock");
var bs = L("plaque_boss");
int best = S.Save.arena.towerFloor;
int bossEvery = Mathf.Max(1, (int)At(bs, 2, 10f));
int oi = 0, ti = 0;
for (int n = 1; n <= floors; n++)
{
float y0;
var m = MarkOf(n, out y0);
if (y0 + m.plaque.yMax < vt || y0 + m.plaque.yMin > vb) continue;
float ix0 = x0 + (m.plaque.xMin + At(pl, 2, 7f)) * Z, ix1 = x0 + (m.plaque.xMax - At(pl, 2, 7f)) * Z;
float iy0 = Y(y0 + m.plaque.yMin + At(pl, 3, 6f)), iy1 = Y(y0 + m.plaque.yMax - At(pl, 4, 10f));
bool boss = n % bossEvery == 0;
bool done = n <= best, cur = n == Current && best < floors;
bool lockd = !done && !cur;
if (boss)
{
var bi = Pooled(overPool, oi++, overRoot, "Plate");
SetSprite(bi, null, false);
var c = Col(bs, 0, new Color(0.7f, 0.21f, 0.15f));
c.a = At(bs, 1, 0.92f);
if (bi.color != c) bi.color = c;
Place(bi.rectTransform, ix0, iy0, ix1 - ix0, iy1 - iy0);
}
if (lockd)
{
var li = Pooled(overPool, oi++, overRoot, "Plate");
SetSprite(li, null, false);
var c = Col(lk, 0, Color.black);
c.a = At(lk, 1, 0.32f);
if (li.color != c) li.color = c;
Place(li.rectTransform, ix0, iy0, ix1 - ix0, iy1 - iy0);
}
var t = PooledText(ti++);
int fs = Mathf.Max(8, Mathf.RoundToInt(Mathf.Min((iy1 - iy0) * At(pl, 0, 0.98f), (ix1 - ix0) / At(pl, 1, 2.6f))));
var col = lockd ? (boss ? Col(pc, 2, Color.white) : Col(pc, 1, Color.gray)) : Col(pc, 0, Color.yellow);
string s = UiText.F("tower_floor", new[] { n.ToString(CultureInfo.InvariantCulture) });
if (t.text != s) t.text = s;
if (t.fontSize != fs) t.fontSize = fs;
t.color = col;
var ol = t.GetComponent<Outline>();
if (ol != null)
{
var d = new Vector2(fs * At(pc, 4, 0.2f) * 0.5f, -fs * At(pc, 4, 0.2f) * 0.5f);
if (ol.effectDistance != d) ol.effectDistance = d;
}
Place(t.rectTransform, ix0, iy0, ix1 - ix0, iy1 - iy0);
}
HideFrom(overPool, oi);
HideFrom(textPool, ti);
VisiblePlaques = ti;
PlaceFx(x0);
}
Text PooledText(int i)
{
while (textPool.Count <= i)
{
var t = UiKit.Title(UiKit.Label(textRoot, "", 24, Color.white, TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, Vector2.one));
t.name = "Floor" + textPool.Count;
t.horizontalOverflow = HorizontalWrapMode.Overflow;
t.verticalOverflow = VerticalWrapMode.Overflow;
t.raycastTarget = false;
var ol = t.gameObject.AddComponent<Outline>();
ol.effectColor = Col(L("plaque_col"), 3, Color.black);
textPool.Add(t);
}
var tx = textPool[i];
if (!tx.gameObject.activeSelf) tx.gameObject.SetActive(true);
return tx;
}
// ---------- 도전 층 문 빛 · 화살표 ----------
void BuildFx()
{
Func<string, Sprite, Image> mk = (name, sp) =>
{
var rt = UiKit.Rect(name, Fx, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, Vector2.one);
var im = rt.gameObject.AddComponent<Image>();
im.sprite = sp;
im.raycastTarget = false;
return im;
};
var add = GachaCutscene.AddMat; // 뽑기 연출 덧셈 재질(시안 plus-lighter) · 없으면 보통 섞기
haloBig = mk("HaloBig", spHalo);
glowImg = mk("Glow", spGlow);
haloSmall = mk("HaloSmall", spHalo);
if (add != null) haloBig.material = haloSmall.material = add;
arrowL = mk("ArrowL", spArrow);
arrowR = mk("ArrowR", spArrow);
arrowR.rectTransform.localScale = new Vector3(-1f, 1f, 1f);
fxDoor = Rect.zero;
}
Rect fxDoor; // 도전 층 문(화면 캔버스 px · 비면 숨김)
float fxArrow;
void PlaceFx(float x0)
{
bool on = Current >= 1 && S.Save.arena.towerFloor < floors;
Rect d = Rect.zero;
if (on)
{
float y0;
var m = MarkOf(Current, out y0);
d = Rect.MinMaxRect(x0 + m.door.xMin * Z, (y0 + m.door.yMin - Cam) * Z, x0 + m.door.xMax * Z, (y0 + m.door.yMax - Cam) * Z);
if (d.yMax < 0f || d.yMin > Hv) on = false;
}
if (Fx.gameObject.activeSelf != on) Fx.gameObject.SetActive(on);
if (!on) return;
fxDoor = d;
var gl = L("glow");
float dw = d.width, dh = d.height, cx = d.center.x;
float bw = dw * At(gl, 2, 2.2f), bhh = dh * At(gl, 3, 1.6f);
Place(haloBig.rectTransform, cx - bw * 0.5f, d.yMin + dh * At(gl, 4, 0.55f) - bhh * 0.5f, bw, bhh);
Place(glowImg.rectTransform, d.xMin, d.yMin, dw, dh);
float sw = dw * At(gl, 5, 1.1f), sh = dh * At(gl, 6, 0.9f);
Place(haloSmall.rectTransform, cx - sw * 0.5f, d.yMin + dh * At(gl, 7, 0.2f), sw, sh);
var ar = L("arrow");
float az = Mathf.Max(At(ar, 2, 42f) * Z, dw * At(ar, 1, 0.56f));
fxArrow = az;
float ah = az * (spArrow != null ? spArrow.rect.height / Mathf.Max(1f, spArrow.rect.width) : 1.17f);
float ay = d.center.y - ah * 0.5f;
arrowL.rectTransform.pivot = new Vector2(0.5f, 0f);
arrowR.rectTransform.pivot = new Vector2(0.5f, 0f);
PlaceArrow(arrowL, d.xMin - az * At(ar, 3, 0.72f), ay, az, ah);
PlaceArrow(arrowR, d.xMax + az * At(ar, 3, 0.72f), ay, az, ah);
}
static void PlaceArrow(Image im, float cx, float y, float w, float h)
{
var rt = im.rectTransform;
rt.anchorMin = rt.anchorMax = new Vector2(0f, 1f);
rt.pivot = new Vector2(0.5f, 0.5f);
var p = new Vector2(cx, -(y + h * 0.5f));
if (rt.anchoredPosition != p) rt.anchoredPosition = p;
var s = new Vector2(w, h);
if (rt.sizeDelta != s) rt.sizeDelta = s;
}
/// <summary>매 프레임(Fx 층): 문 빛 숨 · 화살표가 문 쪽으로 흔들림.</summary>
internal void Animate(float t)
{
if (!Fx.gameObject.activeInHierarchy) return;
var gp = L("glow_pulse");
float per = Mathf.Max(0.1f, At(gp, 0, 1.6f));
float u = 0.5f - 0.5f * Mathf.Cos(t * Mathf.PI * 2f / per);
float a = Mathf.Lerp(At(gp, 1, 0.82f), At(gp, 2, 1f), u);
float ha = At(L("glow"), 8, 0.85f) * a;
glowImg.color = new Color(1f, 1f, 1f, a);
haloBig.color = haloSmall.color = new Color(1f, 1f, 1f, ha);
var ar = L("arrow");
float bob = Mathf.Sin(t * Mathf.PI * 2f / Mathf.Max(0.1f, At(ar, 5, 1.2f))) * At(ar, 4, 6f) * Z;
float gap = fxArrow * At(ar, 3, 0.72f);
float cy = -fxDoor.center.y;
var pl = new Vector2(fxDoor.xMin - gap + bob, cy);
var pr = new Vector2(fxDoor.xMax + gap - bob, cy);
arrowL.rectTransform.anchoredPosition = pl;
arrowR.rectTransform.anchoredPosition = pr;
}
// ---------- 정보 판 ----------
static RectTransform At(Transform p, string name, float x, float y, float w, float h)
{
return UiKit.At(p, name, x, y, w, h);
}
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;
}
/// <summary>정보 판 글자(테스트 · 없으면 null).</summary>
public string TextOf(string name)
{
Text t;
return texts.TryGetValue(name, out t) && t != null ? t.text : null;
}
void BuildPanel()
{
UiKit.Clear(Panel);
texts.Clear();
Measure();
var db = S.Db;
var d = S.Save;
int n = Current;
var f = db.Tower.Get(n);
var stage = ArenaRules.TowerStage(db, screen.Root.Battle.Config, n);
var pn = L("panel");
float pw = At(pn, 2, 1040f) * Z, ph = At(pn, 3, 508f) * Z;
var box = At(Panel, "Board", (Wv - pw) * 0.5f, Ypanel, pw, ph);
var bc = Col(pn, 4, UiKit.Dark);
bc.a = At(pn, 5, 0.97f);
UiKit.Skin(box, "card", bc, true); // 판 = 누름 막음(뒤 탑 끌기와 겹치지 않게)
float pt = At(pn, 6, 18f) * Z, pl = At(pn, 7, 26f) * Z;
var rc = L("right");
float rw = At(rc, 0, 330f) * Z;
float lw = pw - pl * 2f - rw - pl;
// 왼쪽 열: 층 · 편성 · 적 · 배율 · 보상
var tf = L("title_font");
float y = pt;
float tfs = At(tf, 0, 76f) * Z;
var title = Lab(box, "Floor", UiText.F("tower_floor", new[] { n.ToString(CultureInfo.InvariantCulture) }), tfs, Col(tf, 1, Color.yellow), TextAnchor.MiddleLeft, pl, y, lw, tfs * 1.05f, true);
if (n % Mathf.Max(1, (int)At(L("plaque_boss"), 2, 10f)) == 0)
{
var bt = L("boss_tag");
float bh = At(bt, 0, 32f) * Z + 10f * Z;
var tag = UiKit.Skin(At(box, "BossTag", pl + title.preferredWidth + At(bt, 3, 12f) * Z, y + (tfs * 1.05f - bh) * 0.5f, 0f, bh), "chip", Col(bt, 2, UiKit.Red));
var tt = UiKit.Title(UiKit.FillLabel(tag.transform, UiText.T("tower_boss_tag"), Mathf.RoundToInt(At(bt, 1, 20f) * Z), Color.white), true);
tt.horizontalOverflow = HorizontalWrapMode.Overflow;
tag.rectTransform.sizeDelta = new Vector2(Mathf.Ceil(tt.preferredWidth) + 28f * Z, bh);
}
y += tfs * 1.05f;
var lf = L("line_font");
y += At(lf, 2, 2f) * Z;
float lfs = At(lf, 0, 23f) * Z;
string tmpl = f != null ? f.templateStage : "-";
Lab(box, "Template", UiText.F("tower_template", new[] { tmpl, stage != null ? stage.subtitle : "" }), lfs, Col(lf, 1, Color.white), TextAnchor.MiddleLeft, pl, y, lw, lfs * 1.4f, false);
y += lfs * 1.4f;
y = Section(box, "SecEnemy", UiText.T("tower_enemies"), pl, y, lw);
y = EnemyRow(box, stage, pl, y, lw);
var mu = L("mult");
y += At(mu, 3, 8f) * Z;
float mh = At(mu, 0, 42f) * Z;
int mfs = Mathf.RoundToInt(At(mu, 1, 23f) * Z);
float mx = pl;
if (f != null)
{
mx += Chip(box, "Hp", UiText.F("tower_hp", new[] { N(f.hpMult) }), mx, y, mh, mfs) + At(mu, 2, 10f) * Z;
Chip(box, "Atk", UiText.F("tower_atk", new[] { N(f.atkMult) }), mx, y, mh, mfs);
}
y += mh;
y = Section(box, "SecReward", UiText.T("tower_reward"), pl, y, lw);
var rwd = L("reward");
var ri = L("reward_icons");
float rs = At(rwd, 0, 76f) * Z, rg = At(rwd, 1, 20f) * Z;
float rx = pl;
if (f != null)
{
UiKit.RewardTile(box, "RwGem", rx, y, rs, "gear_white_", Str(ri, 0), f.rewardGem.ToString(CultureInfo.InvariantCulture), false);
rx += rs + rg;
UiKit.RewardTile(box, "RwBp", rx, y, rs, "gear_white_", Str(ri, 1), f.rewardBlueprint.ToString(CultureInfo.InvariantCulture), false);
rx += rs + rg;
if (!string.IsNullOrEmpty(f.chest)) UiKit.RewardTile(box, "RwChest", rx, y, rs, "gear_white_", UISkin.Has("chest_" + f.chest) ? "chest_" + f.chest : Str(ri, 2), "", false);
}
// 오른쪽 열: 최고 층(순위) · 입장권 + 광고 · 도전
float rx0 = pw - pl - rw;
float ry = pt + At(rc, 1, 6f) * Z; // 판 위 여백 + 열 위 여백(시안 padding 18 + 6 · 게임 QA r1 M9)
var be = L("best");
float beh = At(be, 0, 44f) * Z;
bool rank = S.RankAvailable;
var bestChip = UiKit.Skin(At(box, "Best", rx0, ry, rw, beh), "chip", UiKit.Col("chip_dark", UiKit.Dark), rank);
var bestT = UiKit.Title(UiKit.FillLabel(bestChip.transform, UiText.F(rank ? "tower_best_rank" : "tower_best", new[] { d.arena.towerFloor.ToString(CultureInfo.InvariantCulture), db.Tower.Top.ToString(CultureInfo.InvariantCulture) }), Mathf.RoundToInt(At(be, 1, 22f) * Z), Color.white), true);
bestT.horizontalOverflow = HorizontalWrapMode.Overflow;
bestT.name = "Best";
texts["Best"] = bestT;
if (rank) bestChip.gameObject.AddComponent<Button>().onClick.AddListener(() => Net.RankPanel.Open(screen.Root, ArenaRules.Tower));
ry += beh + 14f * Z;
var tk = L("ticket");
float th = At(tk, 0, 58f) * Z, adw = At(tk, 3, 112f) * Z, tg = At(tk, 6, 8f) * Z;
float tcw = rw - adw - tg;
var tchip = UiKit.Skin(At(box, "Ticket", rx0, ry, tcw, th), "chip", UiKit.Col("chip_dark", UiKit.Dark));
float tis = At(tk, 2, 38f) * Z;
var tic = UiKit.Icon(tchip.transform, "cur_ticket", new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(th * 0.5f + 4f * Z, 0f), tis);
UiKit.DropShadow(tic, 3f);
string tkS = UiText.F("tower_ticket", new[] { d.arena.towerTickets.ToString(CultureInfo.InvariantCulture) }) + " <size=" + Mathf.RoundToInt(At(tk, 1, 24f) * Z * 0.8f) + "><color=#9AA3C0>" + UiText.F("tower_ticket_max", new[] { db.Economy.TowerTicketsDaily.ToString(CultureInfo.InvariantCulture) }) + "</color></size>";
var tt2 = Lab(tchip.transform, "TicketText", tkS, At(tk, 1, 24f) * Z, Color.white, TextAnchor.MiddleLeft, th + 6f * Z, 0f, tcw - th - 10f * Z, th, true);
tt2.supportRichText = true;
bool adOk = d.dailyC.towerAd < 1;
var adB = UiKit.SkinBtn(box, "Ad", adOk ? "btn_l_yellow" : "btn_gray", UiKit.White, "", 10, UiKit.Ink, rx0 + tcw + tg, ry, adw, th, () =>
{
screen.Root.Toast(S.TowerAd() ?? UiText.F("tower_ad_toast", new[] { S.Db.Economy.TowerAdTickets.ToString(CultureInfo.InvariantCulture) }));
if (screen.Page == 1) screen.Refresh();
});
adB.interactable = adOk;
var adL = adB.GetComponentInChildren<Text>();
if (adL != null) adL.gameObject.SetActive(false);
var inkY = UiKit.Col("text_on_yellow", UiKit.Ink);
Lab(adB.transform, "AdText", UiText.F("tower_ad", new[] { db.Economy.TowerAdTickets.ToString(CultureInfo.InvariantCulture) }), At(tk, 4, 21f) * Z, inkY, TextAnchor.MiddleCenter, 0f, 4f * Z, adw, th * 0.52f, false);
Lab(adB.transform, "AdCount", UiText.F("tower_ad_count", new[] { d.dailyC.towerAd.ToString(CultureInfo.InvariantCulture) }), At(tk, 5, 16f) * Z, inkY, TextAnchor.MiddleCenter, 0f, th * 0.48f, adw, th * 0.4f, false);
ry += th + At(L("go"), 4, 14f) * Z;
GoButton(box, n, stage, rx0, ry, rw);
}
float Section(Transform box, string name, string s, float x, float y, float w)
{
var sf = L("sec_font");
y += At(sf, 2, 10f) * Z;
float fs = At(sf, 0, 27f) * Z;
Lab(box, name, s, fs, Col(sf, 1, Color.yellow), TextAnchor.MiddleLeft, x, y, w, fs * 1.2f, true);
return y + fs * 1.2f + At(sf, 3, 12f) * Z;
}
float Chip(Transform box, string name, string s, float x, float y, float h, int fs)
{
var c = UiKit.Skin(At(box, name, x, y, 10f, h), "chip", UiKit.Col("chip_dark", UiKit.Dark));
var t = UiKit.Title(UiKit.FillLabel(c.transform, s, 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;
}
/// <summary>적 편성 = 무장(보스 먼저) · 병종별 묶음 — 얼굴(대기 첫 프레임 · 그림 없으면 병종 아이콘) + ×수 + 이름 · 칸 수 상한(표).</summary>
float EnemyRow(Transform box, BalanceConfig.StageDef stage, float x, float y, float w)
{
EnemyCards = 0;
var en = L("enemy");
float dd = At(en, 0, 88f) * Z, gap = At(en, 1, 20f) * Z;
int max = (int)At(en, 2, 5f);
float nfs = At(en, 3, 20f) * Z;
float rowH = dd + nfs * 1.5f + 2f * Z;
if (stage == null) return y + rowH;
var groups = new List<KeyValuePair<BalanceConfig.EnemySpawn, int>>();
Action<bool> collect = gen =>
{
foreach (UnitType ut in new[] { UnitType.Infantry, UnitType.Spear, UnitType.Cavalry, UnitType.Archer, UnitType.Strategist })
foreach (var e in stage.enemies)
{
if (e.isGeneral != gen || e.type != ut) continue;
int k = groups.FindIndex(g => !gen && g.Key.type == e.type && g.Key.art == e.art);
if (k >= 0) groups[k] = new KeyValuePair<BalanceConfig.EnemySpawn, int>(groups[k].Key, groups[k].Value + 1);
else groups.Add(new KeyValuePair<BalanceConfig.EnemySpawn, int>(e, 1));
}
};
collect(true); // 무장(보스 · 엘리트) 먼저 · 무장은 한 명씩
groups.Sort((a, b) => (b.Key.isBoss ? 1 : 0) - (a.Key.isBoss ? 1 : 0));
collect(false);
float cx = x;
for (int i = 0; i < groups.Count && i < max; i++)
{
var e = groups[i].Key;
var cell = At(box, "Enemy" + i, cx, y, dd + gap, rowH);
FaceCell(cell, e, dd, en);
var cnt = UiKit.Skin(UiKit.Rect("Cnt", cell, new Vector2(0f, 1f), new Vector2(1f, 1f), new Vector2(dd + 8f * Z, -(dd - 30f * Z)), new Vector2(10f, 30f * Z)), "chip", UiKit.Col("chip_dark", UiKit.Dark));
var ct = UiKit.Title(UiKit.FillLabel(cnt.transform, "x" + groups[i].Value.ToString(CultureInfo.InvariantCulture), Mathf.RoundToInt(At(en, 5, 24f) * Z), Color.white), true);
ct.horizontalOverflow = HorizontalWrapMode.Overflow;
cnt.rectTransform.sizeDelta = new Vector2(Mathf.Ceil(ct.preferredWidth) + 16f * Z, 30f * Z);
string nm = e.isGeneral ? (string.IsNullOrEmpty(e.name) ? UiText.T("tower_general") : e.name) : UiText.T("tower_cls_" + e.type.ToString().ToLowerInvariant());
Lab(cell, "EnemyName" + i, nm, nfs, Col(en, 4, Color.white), TextAnchor.MiddleCenter, -gap * 0.5f, dd + 4f * Z, dd + gap * 2f, nfs * 1.4f, false);
cx += dd + gap;
EnemyCards++;
}
return y + rowH;
}
void FaceCell(RectTransform cell, BalanceConfig.EnemySpawn e, float d, string[] en)
{
float bw = 5f * Z;
var outer = UiKit.Rect("Face", cell, new Vector2(0f, 1f), new Vector2(0f, 1f), Vector2.zero, new Vector2(d, d));
var oi = outer.gameObject.AddComponent<Image>();
oi.sprite = UiKit.Circle;
oi.color = new Color(0.08f, 0.09f, 0.16f);
oi.raycastTarget = false;
float di = d - 2f * bw;
var inner = UiKit.Rect("In", outer, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(di, di));
var ii = inner.gameObject.AddComponent<Image>();
ii.sprite = UiKit.Circle;
ii.color = e.isBoss || e.isGeneral ? Col(en, 6, UiKit.Red) : Col(en, 7, UiKit.Dark);
ii.raycastTarget = false;
inner.gameObject.AddComponent<Mask>().showMaskGraphic = true;
var sp = UiKit.ArtSprite(e.art);
if (sp != null)
{
float aw = di * At(en, 8, 1.72f);
float ah = aw * sp.rect.height / Mathf.Max(1f, sp.rect.width);
var a = UiKit.Rect("Art", inner, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(di * At(en, 9, -0.36f), -di * At(en, 10, -0.06f)), new Vector2(aw, ah));
var ai = a.gameObject.AddComponent<Image>();
ai.sprite = sp;
ai.raycastTarget = false;
// 병종 = 왼쪽 아래 작은 아이콘
var ic = UiKit.Icon(cell, "cls_" + e.type.ToString().ToLowerInvariant(), new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(d * 0.12f, -d * 0.86f), d * 0.36f);
UiKit.DropShadow(ic, 2f);
}
else UiKit.Icon(inner, "cls_" + e.type.ToString().ToLowerInvariant(), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, di * 0.66f);
if (e.isBoss)
{
var bt = L("boss_tag");
var tag = UiKit.Skin(UiKit.Rect("Boss", cell, new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(d * 0.5f, -8f * Z), new Vector2(10f, 30f * Z)), "chip", Col(bt, 2, UiKit.Red));
var t = UiKit.Title(UiKit.FillLabel(tag.transform, UiText.T("tower_boss_tag").Split(' ')[0], Mathf.RoundToInt(17f * Z), Color.white), true);
t.horizontalOverflow = HorizontalWrapMode.Overflow;
tag.rectTransform.sizeDelta = new Vector2(Mathf.Ceil(t.preferredWidth) + 18f * Z, 30f * Z);
}
}
void GoButton(Transform box, int n, BalanceConfig.StageDef stage, float x, float y, float w)
{
var g = L("go");
float h = At(g, 0, 104f) * Z;
var why = ArenaRules.CanTower(S.Db, S.Save, S.Now);
if (stage == null && why == null) why = UiText.T("tower_no_stage");
bool ok = why == null;
// btn_l_red = 흰 바탕 스킨 + 붉은 틴트(테마 · 월드맵 출정 버튼과 같음)
var b = UiKit.SkinBtn(box, "Go", ok ? "btn_l_red" : "btn_gray", ok ? UISkin.Col("red", UiKit.Red) : UiKit.White, "", 10, Color.white, x, y, w, h, () =>
{
var wv = S.EnterTower();
if (wv != null)
{
screen.Root.Toast(wv);
return;
}
screen.Root.StartMode(ArenaRules.Tower, "", n, ArenaRules.TowerStage(S.Db, screen.Root.Battle.Config, n), 0, 1);
});
b.interactable = ok;
var bl = b.GetComponentInChildren<Text>();
if (bl != null) bl.gameObject.SetActive(false);
if (ok)
{
Lab(b.transform, "GoText", UiText.T("tower_go"), At(g, 1, 44f) * Z, Color.white, TextAnchor.MiddleCenter, 0f, h * 0.06f, w, h * 0.56f, true);
float cfs = At(g, 2, 24f) * Z, ics = At(g, 3, 30f) * Z;
var ct = Lab(b.transform, "GoCost", UiText.T("tower_go_cost"), cfs, Color.white, TextAnchor.MiddleCenter, ics * 0.5f, h * 0.56f, w, h * 0.3f, true);
var ic = UiKit.Icon(b.transform, "cur_ticket", new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(w * 0.5f - ct.preferredWidth * 0.5f - ics * 0.1f, -(h * 0.56f + h * 0.15f)), ics);
UiKit.DropShadow(ic, 2f);
}
else Lab(b.transform, "GoText", why, At(g, 2, 24f) * Z * 1.1f, Color.white, TextAnchor.MiddleCenter, 0f, 0f, w, h, true);
}
// ---------- 끌기 ----------
/// <summary>탑 끌기(세로) · 놓으면 미끄러짐(표 scroll) · 매 프레임 문 빛 연출 호출.</summary>
public class TowerDrag : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
{
public ArenaTower owner;
float vel;
bool dragging;
Canvas root;
public void Stop()
{
vel = 0f;
dragging = false;
}
float Scale()
{
if (root == null)
{
var c = GetComponentInParent<Canvas>();
root = c != null ? c.rootCanvas : null;
}
return root != null && root.scaleFactor > 0f ? root.scaleFactor : 1f;
}
public void OnBeginDrag(PointerEventData e)
{
dragging = true;
vel = 0f;
}
public void OnDrag(PointerEventData e)
{
if (owner == null) return;
float dy = e.delta.y / Scale() / Mathf.Max(0.01f, owner.Z); // 위로 끌면(+) 탑이 손을 따라 올라감 = 아래층이 보임 = cam(화면 맨 위 탑 좌표) 증가
owner.SetCam(owner.Cam + dy);
float dt = Mathf.Max(Time.unscaledDeltaTime, 0.001f);
vel = Mathf.Lerp(vel, dy / dt, 0.5f);
}
public void OnEndDrag(PointerEventData e)
{
dragging = false;
var sc = owner != null ? owner.L("scroll") : null;
float vmax = At(sc, 1, 2400f);
vel = Mathf.Clamp(vel, -vmax, vmax);
}
Vector2 lastSize;
void OnRectTransformDimensionsChange()
{
if (owner == null || !owner.Built) return;
var sz = ((RectTransform)transform).rect.size;
if ((sz - lastSize).sqrMagnitude < 0.01f) return;
lastSize = sz;
owner.Resized(); // 화면 크기 바뀜(회전 · 창) = 다시 맞춤
}
void Update()
{
if (owner == null) return;
owner.Animate(Time.unscaledTime);
if (dragging || Mathf.Abs(vel) < 1f) return;
float dt = Time.unscaledDeltaTime;
float tau = Mathf.Max(0.01f, At(owner.L("scroll"), 0, 0.135f));
if (owner.SetCam(owner.Cam + vel * dt)) vel = 0f; // 끝에 닿음
vel *= Mathf.Exp(-dt / tau);
}
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 81056b092a86eca418e0868e0df8ec45

View File

@ -227,6 +227,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*)
root.StaminaModal();
yield return Shot(cam, "popup_stamina", W, H);
root.CloseModal();
@ -546,6 +547,32 @@ namespace TKS.OutGame
yield return new WaitForSecondsRealtime(0.3f);
}
/// <summary>
/// 천하제일 탑 아트 화면(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).
/// 로그 = 도전 층 · 보이는 조각 · 현판 글자 · 적 칸 수.
/// </summary>
IEnumerator TowerShots(Camera cam, OutGameRoot root)
{
if (only != null && Match("arena_tower") == null && Match("arena_tower_10") == null && Match("arena_tower_37") == null && Match("arena_tower_tall") == null) yield break;
var d = root.Session.Save;
int best0 = d.arena.towerFloor;
root.Show(root.Arena);
foreach (var sh in new[] { new KeyValuePair<string, int>("arena_tower", best0), new KeyValuePair<string, int>("arena_tower_10", 9), new KeyValuePair<string, int>("arena_tower_37", 36), new KeyValuePair<string, int>("arena_tower_tall", 36) })
{
if (only != null && Match(sh.Key) == null) continue;
d.arena.towerFloor = sh.Value;
root.Arena.SetPage(0);
root.Arena.SetPage(1);
bool tall = sh.Key.EndsWith("_tall");
yield return Shot(cam, sh.Key, W, tall ? HTall : H);
var tw = root.Arena.Tower;
if (tw != null) Log(sh.Key + " visible=" + root.Arena.TowerVisible + " current=" + tw.Current + " pieces=" + tw.VisiblePieces + " plaques=" + tw.VisiblePlaques + " enemies=" + tw.EnemyCards + " cam=" + tw.Cam.ToString("0.0"));
}
d.arena.towerFloor = best0;
root.Arena.SetPage(0);
}
/// <summary>
/// 투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료」) — 16:9(1080×1920) + 긴 화면(1080×2340) · 해금 스테이지(arena.unlock_stage)를 깬 것으로 잠깐 바꿔 찍고 되돌림(메모리 세이브 · 뒤 화면에 영향 없음).
/// 로그 = 유닛 · NPC · 목패 · 이름표 수 · 화면 배율.

View File

@ -0,0 +1,126 @@
using System.Collections;
using NUnit.Framework;
using TKS.OutGame;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
using UnityEngine.UI;
namespace TKS.Tests
{
/// <summary>
/// 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · ArenaTower) — 표(Resources/UI/Tower) = 화면:
/// 도전 층 = 다음 층(ArenaRules.TowerNext) · 그 층 문 가운데가 제목 띠 아래 ~ 정보 판 위 사이(표 focus) · 층 글자 = 글자 표 키(값 자리 {n} 이 남지 않음) ·
/// 적 칸 수 = 스테이지 적의 무장 + 병종 묶음(표 상한) · 배율 칩 = 탑 표 · 제목 띠 = 천하제일 탑 · 끌기 = 범위 안(꼭대기 · 받침) ·
/// 캔버스 층(P41: 하늘·탑 Frame · 문 빛 Frame · 끌기 Event + 레이캐스터 · 정보 판 Event + 레이캐스터). 기대값은 표·규칙에서 읽는다(C45).
/// </summary>
public class ArenaTowerTests
{
[TearDown]
public void TearDown()
{
SaveStore.UseMemory(false);
}
static void AssertRate(Transform t, UiRate rate, string what, bool raycast)
{
var c = t.GetComponent<Canvas>();
Assert.IsNotNull(c, what + ": 캔버스 없음");
Assert.IsFalse(c.overrideSorting, what + ": overrideSorting 끔");
var tag = c.GetComponent<UiLayerInfo>();
Assert.IsNotNull(tag, what + ": 등급 표시 없음");
Assert.AreEqual(rate, tag.rate, what + ": 등급");
Assert.AreEqual(raycast, t.GetComponent<GraphicRaycaster>() != null, what + ": 레이캐스터");
}
[UnityTest]
public IEnumerator Tower_Table_Focus_Values_Layers_Scroll()
{
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;
foreach (int best in new[] { 0, 9, 36 })
{
d.arena.towerFloor = best;
og.ShowLobby();
og.Show(og.Arena);
og.Arena.SetPage(1);
yield return null;
yield return null;
var tw = og.Arena.Tower;
Assert.IsNotNull(tw, "탑 표(Resources/UI/Tower/tower_screen) 없음");
Assert.IsTrue(og.Arena.TowerVisible, "탑 쪽 = 아트 화면");
int next = ArenaRules.TowerNext(s.Db, d);
Assert.AreEqual(next, tw.Current, "도전 층 = 다음 층");
// ① 도전 층 문 = 화면 안(제목 띠 아래 ~ 정보 판 위) · 화면 맨 아래 땅(1층) 쪽은 받침 한계로 내려감
var view = tw.View.rect;
float z = Mathf.Min(view.width / 1080f, view.height / 1920f);
float doorY = (tw.DoorMid(next) - tw.Cam) * z;
Assert.Greater(doorY, OutGameRoot.TopBarH + OutGameRoot.HeaderH, best + ": 문이 제목 띠 아래");
var board = tw.Panel.Find("Board") as RectTransform;
Assert.IsNotNull(board, "정보 판");
float panelTop = -board.anchoredPosition.y;
Assert.Less(doorY, panelTop, best + ": 문이 정보 판 위");
Assert.Greater(tw.VisiblePieces, 0, "탑 조각");
Assert.Greater(tw.VisiblePlaques, 1, "현판 글자");
// ② 글자 = 표 키 · 값 = 탑 표
var f = s.Db.Tower.Get(next);
Assert.AreEqual(UiText.F("tower_floor", new[] { next.ToString() }), tw.TextOf("Floor"), "층 글자");
Assert.AreEqual(UiText.F("tower_hp", new[] { f.hpMult.ToString("0.00", System.Globalization.CultureInfo.InvariantCulture) }), tw.TextOf("Hp"), "체력 배율");
foreach (var n in new[] { "Floor", "Template", "Hp", "Atk", "Best", "GoText" })
{
Assert.IsNotNull(tw.TextOf(n), n + " 글자 없음");
Assert.IsFalse(tw.TextOf(n).Contains("{"), n + " 값 자리 남음: " + tw.TextOf(n));
}
var st = ArenaRules.TowerStage(s.Db, og.Battle.Config, next);
Assert.IsNotNull(st, "템플릿 스테이지");
Assert.Greater(tw.EnemyCards, 0, "적 칸");
Assert.LessOrEqual(tw.EnemyCards, st.enemies.Count, "적 칸 ≤ 적 수");
// ③ 문 빛 = 도전 층 문 자리(Fx 층 켜짐)
Assert.IsTrue(tw.Fx.gameObject.activeSelf, "문 빛 켜짐");
var glow = tw.Fx.Find("Glow") as RectTransform;
Assert.IsNotNull(glow);
Assert.AreEqual(doorY, -glow.anchoredPosition.y + glow.sizeDelta.y * 0.5f, 1.5f, "문 빛 가운데 = 문 가운데");
}
// ④ 제목 띠 = 탑 표 제목
var tw2 = og.Arena.Tower;
bool found = false;
foreach (var t in og.Arena.Rt.GetComponentsInChildren<Text>(true))
if (t.text == UiText.T(tw2.S_("title_key"))) found = true;
Assert.IsTrue(found, "제목 띠 = 천하제일 탑");
// ⑤ 끌기 범위: 아주 위 → 꼭대기 한계 · 아주 아래 → 받침 한계(넘지 않음) · 다시 맞춤 = 도전 층
tw2.SetCam(-1e6f);
float top = tw2.Cam;
Assert.Greater(top, -1e5f, "꼭대기 한계");
tw2.SetCam(1e7f);
float bottom = tw2.Cam;
Assert.Less(bottom, 1e6f, "받침 한계");
Assert.Greater(bottom, top);
tw2.FocusCurrent();
Assert.That(tw2.Cam, Is.InRange(top, bottom));
// ⑥ 층(P41)
AssertRate(tw2.Back, UiRate.Frame, "하늘·탑", false);
AssertRate(tw2.Fx, UiRate.Frame, "문 빛", false);
AssertRate(tw2.InputLayer, UiRate.Event, "끌기", true);
AssertRate(tw2.Chrome, UiRate.Static, "재화 바 뒤 띠", false);
AssertRate(tw2.Panel, UiRate.Event, "정보 판", true);
// ⑦ 뒤로 = 허브(탑 화면 꺼짐)
Assert.IsTrue(og.Arena.OnBack());
yield return null;
Assert.IsFalse(og.Arena.TowerVisible, "뒤로 = 탑 화면 꺼짐");
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: bb179ad4cf5ed9e4391d555fcbb6d683

View File

@ -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: 4887015bdc034744d8b98d66d7d6d5c7, type: 3}
m_IsVariant: 0
m_ScriptablePacker: {fileID: 0}

View File

@ -0,0 +1,43 @@
fileFormatVersion: 2
guid: 561a8440ad4277c4eb91479be266f868
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: 2fca1951116dd6049df09a06eef34fb0
assetBundleName:
assetBundleVariant:

View File

@ -54,6 +54,7 @@ Unity.exe -projectPath <proj> -executeMethod TKS.EditorTools.ProjectSetup.AutoPl
- **연무장 허브 연출(PD 2026-11-18 「기존 내정 메뉴를 참고해 연무장 화면에 애니메이션 연출 · 맵 내 환경 연출」)** — 표 = `Resources/UI/Yeonmu/yeonmu_scene.csv`(로비·내정과 같은 `LobbyScene` 형식 + `s_spot`·`f_tx`·`f_ty` · 허브 표 키 `scene` · 머리 주석 = 칸 뜻) · 코드 = `OutGame/Arena/ArenaHubFx`(유닛 연출 duel 비무대 대련(번갈아 · 뒷발 맞춤 = 내정 train_feet 값) · shoot 궁병(겨눔 → 쏨 → 화살 포물선 → 과녁에 꼬리만 꽂힘) · zzz 조는 병사 · spark 망치 불똥 · drop 말 건초 = 원화 프레임 번호를 잡음 · cloud 구름 + 땅 그림자 · patch 깃발 자리 바탕) + 환경 = 내정·로비와 같은 `LobbyAmbient`(flag · sway · light = 유닛 아래 `AmbBack` · bird · petal = 유닛 위 `AmbFront`). 유닛 그림 = 원화 클립만 이어 붙임(새로 그린 애니 없음). 연출 그림 = `Resources/UI/Yeonmu/fx/`(생성·오려 내기·복사 = `Tools/yeonmu_fx.py` · numpy 필요 = `C:/ArtRnD/sprite_gen/repo/.venv/Scripts/python.exe` · 아틀라스 `ui_atlas.csv` folder 줄 `UI_Yeonmu`). 층 = Art → AmbBack → Scene → Fx → AmbFront → Clouds → Tags(연출 층 모두 Frame · 누름 없음). 캡처 = `-uiOnly arena_anim,arena_anim_left`(원본 크기 연속 · 왼쪽 끝 스크롤 = 조는 병사 · 훈련장 과녁) · 테스트 = `ArenaHubTests.Hub_Fx_TableBound_Layers_Animate`.
- **투기장 아트 화면(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_<s1a|s1b|s1c|side|p2>_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`.
- **영웅 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 <dir>`(사본 · `-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`.