맹장 토벌전 아트 화면 + 잠긴 컨텐츠 화면 + 연무장 진입 막기 · 던전별 개방 · 마구간 — 맹장 토벌전 = 시안 mock_raid(탭 · 메인/서브 카드 · 점수 띠 · 훈장 상점 · ArenaRaid · 배너 6장 추가) · 잠김 = 아트 화면 위 어둡게 + 자물쇠 + 개방 조건(LockOverlay) · 투기장 · 맹장 = 해금 전 연무장에서 개방 조건 창(이름표 자물쇠) · 보급전 = 던전마다 s_unlock_stage(지금 모두 1-10) · 잠긴 카드만 덮개 · 마구간 = 「업데이트 예정입니다.」 · 해금 판정 = 플레이 테스트 「전 스테이지 열기」 반영 · 테스트 ArenaRaid · Hub · Supply · League 통과 (PD 2026-11-18~19 · 「커밋&푸시」)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1cd0887901
commit
66abf16223
Binary file not shown.
|
After Width: | Height: | Size: 590 KiB |
|
|
@ -0,0 +1,169 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4a253d66a32e490479df94119f3364ce
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 7164238425480045148
|
||||
second: raid_banner_caocao_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: raid_banner_caocao_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1016
|
||||
height: 624
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: c5221f4e3ec7c6360800000000000000
|
||||
internalID: 7164238425480045148
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
raid_banner_caocao_0: 7164238425480045148
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 635 KiB |
|
|
@ -0,0 +1,169 @@
|
|||
fileFormatVersion: 2
|
||||
guid: accfaea70a148314faf253b40b9bbcc9
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 6345124661624427202
|
||||
second: raid_banner_dongzhuo_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: raid_banner_dongzhuo_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1016
|
||||
height: 624
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 2c2d1b703496e0850800000000000000
|
||||
internalID: 6345124661624427202
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
raid_banner_dongzhuo_0: 6345124661624427202
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 518 KiB |
|
|
@ -0,0 +1,169 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 822e364fb26119743a7466d005d4fa9f
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 5579649573150924873
|
||||
second: raid_banner_simayi_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: raid_banner_simayi_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1016
|
||||
height: 624
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 94022da79b5ee6d40800000000000000
|
||||
internalID: 5579649573150924873
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
raid_banner_simayi_0: 5579649573150924873
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 555 KiB |
|
|
@ -0,0 +1,169 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 39a9d8de5c220b747b4361234bd572f2
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -1613484978811678830
|
||||
second: raid_banner_yuanshao_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: raid_banner_yuanshao_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1016
|
||||
height: 624
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 29f408bd5ffbb99e0800000000000000
|
||||
internalID: -1613484978811678830
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
raid_banner_yuanshao_0: -1613484978811678830
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 652 KiB |
|
|
@ -0,0 +1,169 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ec72ec4ee388c3a458b17fa0a4ef4b9a
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 1111558659288352566
|
||||
second: raid_banner_yuanshu_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: raid_banner_yuanshu_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1016
|
||||
height: 624
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 63744e916bc0d6f00800000000000000
|
||||
internalID: 1111558659288352566
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
raid_banner_yuanshu_0: 1111558659288352566
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 607 KiB |
|
|
@ -0,0 +1,169 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c47b48606c38f56498461120a2539e0d
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: 6294979421985333636
|
||||
second: raid_banner_zhangjiao_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: raid_banner_zhangjiao_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1016
|
||||
height: 624
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 48164db9e624c5750800000000000000
|
||||
internalID: 6294979421985333636
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
raid_banner_zhangjiao_0: 6294979421985333636
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -3,7 +3,7 @@ common,time_source,server,PD 지시(2026-11-17) — 시각은 서버가 정한
|
|||
common,daily_reset_hour,0,서버 기준 — 하루가 바뀌는 시각 = 매일 한국 시간 0시(PD 2026-11-17) · 나라별 0시로 할지는 서버 쪽 열린 결정
|
||||
common,weekly_settle,sun;22;2,서버 기준 — 주간 랭킹 정산 = 한국 시간 일요일 22시부터 2시간(24시까지) · 요일 ; 시작 시 ; 길이(시간) · 서버 운영 설정 tks/rank-settle 과 같은 값(PD 2026-11-17)
|
||||
common,settle_block,arena;raid;tower,서버 기준 — 정산 중에는 랭킹 컨텐츠(투기장 · 맹장 토벌전 · 천하제일 탑)에 들어갈 수 없다 · 안내 「랭킹 정보를 정산중입니다.」
|
||||
supply,unlock_stage,1-10,1장 클리어 뒤 열림
|
||||
supply,unlock_stage,1-10,1장 클리어 뒤 열림 · 던전별 해금 = supply_dungeons.s_unlock_stage(비면 이 값)
|
||||
supply,entries_per_day,2,던전마다 · 무료 · 군량 소모 없음(기존 dungeons.entries_per_day 와 같음)
|
||||
supply,ad_entries_per_day,1,던전마다 광고 1회 추가
|
||||
supply,stage_equiv,25,1회 보상 = 스테이지 반복 몇 판 분량(골드 · 경험)
|
||||
|
|
|
|||
|
|
|
@ -1,5 +1,5 @@
|
|||
s_id,s_name_ko,l_reward_kind,l_open_weekday,n_turn_limit,s_rule_ko,s_good_class_ko,s_grade_rule_ko,e_grade_by,l_grade_cut,Memo
|
||||
granary,군량고 습격,gold,mon;tue;wed;thu;fri;sat;sun,5,전장에 무작위로 흩어진 군량고 12채를 5턴 안에 부순 수만큼 골드를 받는다,보병(연쇄) · 기병(관통),부순 군량고 12 / 9 / 6 / 3채,more,12;9;6;3,PD 확정(2026-11-17)
|
||||
drill,전술 훈련,exp,mon;tue;wed;thu;fri;sat;sun,5,반격하지 않는 허수아비가 늘 5개(높은 단계는 8개까지) 서 있다 · 부수면 곧바로 다른 자리에서 새로 솟는다 · 5턴 동안 준 피해 합계만큼 경험을 받는다,궁병 · 책사(강 건너 · 고지) · 보병(튕김),목표 피해의 100 / 80 / 60 / 40 %,more,100;80;60;40,PD 지시(2026-11-17) — 동시에 5개 · 수 제한 없음 · 자리는 지형에 따라
|
||||
bandit,황건적 소탕,gear;iron;blueprint,mon;wed;fri;sun,10,황건 삼형제(기병 · 보병 · 궁병)를 모두 쓰러뜨린다 · 한 명이 쓰러질 때마다 남은 형제가 분노해 공격력이 크게 오른다,책사 · 궁병(여럿을 함께 타격) · 기병(관통),클리어 턴 5 / 7 / 9 / 10턴 이내,less,5;7;9;10,PD 지시(2026-11-17) — 구 「대장간 탈환」
|
||||
tactics,병법 훈련,skill_book;shard,tue;thu;sat;sun,6,"단계마다 정해진 전장 · 적 편성 · 과제 2개가 있다(매일 바뀌지 않는다) · 이기면 ★1, 과제를 채울 때마다 ★ +1",단계의 주제에 따라 다름,승리 = ★1 · 과제 1개마다 ★ +1(최대 ★3),star,,PD 지시(2026-11-17) — 구 「사당의 시험」 · 과제 2개 · 단계별 고정 설계 = supply_tactics_stages
|
||||
s_id,s_name_ko,l_reward_kind,l_open_weekday,n_turn_limit,s_rule_ko,s_good_class_ko,s_grade_rule_ko,e_grade_by,l_grade_cut,s_unlock_stage,Memo
|
||||
granary,군량고 습격,gold,mon;tue;wed;thu;fri;sat;sun,5,전장에 무작위로 흩어진 군량고 12채를 5턴 안에 부순 수만큼 골드를 받는다,보병(연쇄) · 기병(관통),부순 군량고 12 / 9 / 6 / 3채,more,12;9;6;3,1-10,PD 확정(2026-11-17)
|
||||
drill,전술 훈련,exp,mon;tue;wed;thu;fri;sat;sun,5,반격하지 않는 허수아비가 늘 5개(높은 단계는 8개까지) 서 있다 · 부수면 곧바로 다른 자리에서 새로 솟는다 · 5턴 동안 준 피해 합계만큼 경험을 받는다,궁병 · 책사(강 건너 · 고지) · 보병(튕김),목표 피해의 100 / 80 / 60 / 40 %,more,100;80;60;40,1-10,PD 지시(2026-11-17) — 동시에 5개 · 수 제한 없음 · 자리는 지형에 따라
|
||||
bandit,황건적 소탕,gear;iron;blueprint,mon;wed;fri;sun,10,황건 삼형제(기병 · 보병 · 궁병)를 모두 쓰러뜨린다 · 한 명이 쓰러질 때마다 남은 형제가 분노해 공격력이 크게 오른다,책사 · 궁병(여럿을 함께 타격) · 기병(관통),클리어 턴 5 / 7 / 9 / 10턴 이내,less,5;7;9;10,1-10,PD 지시(2026-11-17) — 구 「대장간 탈환」
|
||||
tactics,병법 훈련,skill_book;shard,tue;thu;sat;sun,6,"단계마다 정해진 전장 · 적 편성 · 과제 2개가 있다(매일 바뀌지 않는다) · 이기면 ★1, 과제를 채울 때마다 ★ +1",단계의 주제에 따라 다름,승리 = ★1 · 과제 1개마다 ★ +1(최대 ★3),star,,1-10,PD 지시(2026-11-17) — 구 「사당의 시험」 · 과제 2개 · 단계별 고정 설계 = supply_tactics_stages
|
||||
|
|
|
|||
|
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 95219da1df8d814419868cc83ffb8b4d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# 잠긴 컨텐츠 덮개 설정 표(PD 2026-11-18 「잠겨진 컨텐츠는 설령 해당 조건에 도달하지 않았어도 잠겨진 상태로 화면이 보여져야 해 · 어둡게 암전 된 상태에서 자물쇠가 배치 된 상태에 개방 조건을 표시」 · 코드 = OutGame/Arena/LockOverlay) — 한 줄 = 키 · 값(| 로 여러 칸)
|
||||
# 덮개 = 아트 화면 위 본문 칸(재화 바 · 제목 띠 아래 ~ 하단 탭 위)만 · 크기 = 캔버스 px(폭 1080) · 쓰는 곳 = 투기장 · 맹장 토벌전(페이지에 있는 동안 잠긴 때 · 들어가기는 연무장에서 막고 안내 팝업 · PD 2026-11-19)
|
||||
# 카드 판 card_* = 카드 하나만 잠김(보급전 던전 카드 · PD 2026-11-19 「각 메뉴별로 각각 개방 조건」) · 크기 = 카드 기준 px(카드 1040×360) × 목록 화면 배율 · 어둡게 = 카드 그림 모양 그대로
|
||||
s_key,s_value,s_note
|
||||
texts,UI/Lock/lock_text,글자 표(UiText)
|
||||
dim,#080A16|0.68,어둡게(색|알파) · 뒤 화면이 비쳐 보이는 정도
|
||||
center_y,0.46,가운데 묶음(자물쇠 + 글자 판) 높이 = 본문 칸 위에서 비율
|
||||
lock,lock|210|4,자물쇠(테마 아이콘 id|크기|그림자 거리)
|
||||
lock_gap,14,자물쇠 아래 ~ 글자 판 간격
|
||||
plate,card|#161A30|0.9|56|26,글자 판(스킨|색|알파|좌우 여백|위아래 여백)
|
||||
title,46|#FFD23E,「개방 조건」(글자|색)
|
||||
cond,34|#FFFFFF|880|10,조건 문장(글자|색|줄 폭 최대|제목 아래 간격)
|
||||
stroke,#14172A|3,글자 외곽선(색|굵기)
|
||||
card_dim,#080A16|0.62,카드 어둡게(색|알파)
|
||||
card_center,0.5|0.5,카드 묶음 가운데(카드 폭 비율|카드 높이 비율 · 위에서)
|
||||
card_lock,lock|92|3,카드 자물쇠(테마 아이콘 id|크기|그림자 거리)
|
||||
card_lock_gap,6,카드 자물쇠 아래 ~ 글자 판 간격
|
||||
card_plate,card|#161A30|0.9|30|12,카드 글자 판(스킨|색|알파|좌우 여백|위아래 여백)
|
||||
card_title,30|#FFD23E,카드 「개방 조건」(글자|색)
|
||||
card_cond,26|#FFFFFF|560|4,카드 조건 문장(글자|색|줄 폭 최대|제목 아래 간격)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 70f070ea335f8854680fec5da836dab6
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# 잠긴 컨텐츠 덮개 글자 표(PD 2026-11-18 · 한글 하드코딩 금지) — 바뀌는 값 = {0} {1} 자리
|
||||
s_key,ko,en,note
|
||||
lock_title,개방 조건,,덮개 · 카드 판 · 안내 팝업 제목
|
||||
lock_stage,출정 {0} 「{1}」 클리어,,조건({0} = 장-번호 · {1} = 스테이지 제목 · 스테이지 표 Assets/Data/Stages/stages.csv)
|
||||
lock_stage_no_title,출정 {0} 클리어,,조건(스테이지 표에서 제목을 못 찾을 때)
|
||||
lock_ok,확인,,들어가기 막음 안내 팝업 버튼(PD 2026-11-19 · 연무장 투기장 · 맹장 토벌전)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 54f6c33307d52624cb039186dd8b1b59
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 04803a72aaf635344bfa5f954226ba6f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
# 맹장 토벌전 화면 설정 표(PD 2026-11-18 「맹장 토벌전 메뉴가 제대로 보여지지 않고 있어 … 정상적으로 게임에서 확인할 수 있도록 반영해줘」 · 코드 = OutGame/Arena/ArenaRaid) — 한 줄 = 키 · 값(| 로 여러 칸) · 같은 키 여러 줄 = 목록
|
||||
# 좌표 = 본문 디자인 px(폭 1080 · 높이 1546 = 재화 바 · 제목 띠 아래 ~ 하단 탭 위 · 왼쪽 위 0 · 아래로 +) · 카드 안 값 = 카드 안쪽(테 안) 왼쪽 위 기준 · 값 출처 = 아트 시안 C:/ArtRnD/sprite_gen/ui_illust/samguk/content_screens_2/mock/new_screens.js(S.n_raid · card · tile) + screens.html CSS(.tabs · .tab · .tag · .chip · .pn · .btn.sm · .rw.s · .st) · 정답 그림 = raid_banner/final/mock_raid.png
|
||||
# 맹장 · 이름 · 칭호 · 군령 · 패턴 · 빈틈 · 일정 · 점수 배율 · 횟수 · 상점 = 게임 표 ContentModes/raid_*(RaidData · RaidRules) · 이 표 = 그림 · 색 · 배치 · 시안 예시 값(example_*)만
|
||||
s_key,s_value,s_note
|
||||
texts,UI/Raid/raid_text,글자 표(UiText)
|
||||
title_key,raid_title,제목 띠 글자 키
|
||||
subtitle_key,raid_subtitle,제목 띠 부제 키({0} = 메인 점수 보너스 %)
|
||||
banner,ContentModes/Art/raid_banner_,배너 그림 경로 앞(뒤 = 맹장 id · 1016x624 · 게임 표 content_modes_art_list 와 같은 이름)
|
||||
stroke,#14172A|3.5,글자 외곽선(색|굵기) = 시안 .st 7px 의 보이는 반
|
||||
tabs,24|22|1032|78|18|5|18|34|#14172A|#2B3150|#D8402F|#FFFFFF,탭 줄(왼|위|폭|높이|사이|테|모서리|글자|테 색|꺼짐|켜짐|글자색) = 시안 .tabs · .tab
|
||||
tab,raid|raid_tab_raid,탭(동작|글자 키) · raid = 토벌 카드
|
||||
tab,rank|raid_tab_rank,순위 = 서버 모드면 순위 표(Net.RankPanel) · 기기 세이브 = 알림
|
||||
tab,shop|raid_tab_shop,훈장 상점 = 상점 목록(기존 구매 처리 RaidBuyPick)
|
||||
card,24|114|1032|640|14|8|30|#14172A|#2A1420,맹장 카드(왼|첫 카드 위|폭|높이|카드 사이|테|모서리|테 색|바탕) · 안쪽 1016x624 = 배너 크기
|
||||
shade,560|#140A14B8,배너 왼쪽 어둡게(폭|색 = rgba(20 10 20 .72) → 오른쪽 투명)
|
||||
info_x,70,카드 글자 묶음 왼쪽(안쪽 기준)
|
||||
tag,30|42|14|4|12|26|10|#14172A,위 태그(위|높이|좌우 여백|테|모서리|글자|태그 사이|테 색) = 시안 .tag
|
||||
tag_main,#8A3CF0|#FFFFFF,이번 주 메인 태그(바탕|글자)
|
||||
tag_future,#59607E|#FFFFFF,넘김 미리 보기(N주 뒤 메인) 태그
|
||||
tag_bonus,#FFB300|#4A3200,점수 보너스 태그(메인 배율이 1 보다 클 때만)
|
||||
tag_sub,#3B55C9|#FFFFFF,오늘의 서브 태그
|
||||
name,78|84|105|#FFD23E,맹장 이름 줄(위|글자|줄 높이|이름 색 · 「토벌」 = 흰)
|
||||
title,183|32|40|#FFD23E,칭호(위|글자|줄 높이|색)
|
||||
order,235|38|23|30|10|8|4|#FFB300|#4A3200,군령 줄(위|칩 높이|칩 글자|군령 글자|칩 뒤 간격|칩 모서리|칩 테|칩 색|칩 글자색)
|
||||
time,283|27|34|#FFFFFF,교대 줄(위|글자|줄 높이|색) · 1초마다 다시 씀(Clock 층)
|
||||
sub_note,323|25|31|#9AA3C0,서브 점수 보너스 줄(위|글자|줄 높이|색)
|
||||
tiles,331|90|18|5|16|21|4|26|#14172A|#E6E9F5,맹장 · 패턴 · 약점 칸(위|칸|모서리|테|칸 사이|이름 글자|이름 틈|이름 줄|테 색|이름 색) · 칸 열 폭 = max(칸 · 이름 폭)
|
||||
tile_boss,#3A1420|140,맹장 칸(바탕|유닛 그림 폭 = 칸보다 커서 가운데만 보임)
|
||||
tile_pattern,#C8402F|70,패턴 칸(바탕|아이콘 폭)
|
||||
tile_weak,#3B6B3A|70,약점 칸(바탕|아이콘 폭)
|
||||
boss,lvbu|cls_cavalry|res:Gimmicks/Art/gim_boulder|78,맹장 id|패턴 아이콘|약점 아이콘|약점 아이콘 폭(빈칸 = tile_weak) · 아이콘 = 테마 id 또는 res:Resources 경로 · 여포 = 시안 그대로
|
||||
boss,caocao|cls_spear|sword|,조조(방패 호위 창병 · 호위 처치) · 시안 밖 = 임시 선택
|
||||
boss,dongzhuo|fire|res:Gimmicks/Art/gim_cart7|,동탁(내려치기 · 폭약) · 임시 선택
|
||||
boss,yuanshao|cls_archer|sword|,원소(화살비 · 호위 처치) · 임시 선택
|
||||
boss,simayi|cls_strategist|sword|,사마의(응시 · 등 뒤) · 임시 선택
|
||||
boss,zhangjiao|res:Gimmicks/Art/gim_fog_cloud|cls_strategist|,장각(안개 · 벼락 · 책사로 걷기) · 임시 선택
|
||||
boss,yuanshu|res:Gimmicks/Art/gim_cart|res:Gimmicks/Art/gim_cart_broken|,원술(꿀물 수레 · 부수기) · 임시 선택
|
||||
record,463|50|4|25|26|18|#14172A|#191D2D,오늘 기록 칩(위|높이|테|모서리|글자|좌우 여백|테 색|바탕) = 시안 .chip
|
||||
example_record,3510,오늘 기록 = 시안 예시 값(게임 세이브에 하루 기록이 없음 · 점수 = 이 값 × 메인 배율)
|
||||
arrows,10|286|56|#14172ACC|arrow_down|arrow_down|30|-90|90|-3|3,메인 카드 넘김(가장자리|위|지름|바탕|왼 아이콘|오른 아이콘|아이콘 크기|왼 회전|오른 회전|왼 x 밀기|오른 x 밀기) · 넘기면 다음 주부터 메인 맹장 미리 보기 · 시안 = 채운 삼각형 ◀ ▶ → 팩 채운 아래 삼각형(arrow_down)을 -90 · 90 도 돌림 · x 밀기 = 삼각형 무게중심을 원 가운데로(QA M 2026-11-18 「꺾쇠 모양」)
|
||||
buttons,22|20|76|12|32|4,카드 버튼 줄(오른 여백|아래 여백|높이|사이|글자|글자 위로 = 팩 버튼 아래 턱)
|
||||
btn,detail|170|btn_sky|#FFFFFF|#FFFFFF|1|raid_detail,버튼(id|폭|스킨|틴트|글자색|외곽선 1/0|글자 키) = 상세 정보
|
||||
btn,go|170|btn_l_red|#D8402F|#FFFFFF|1|raid_go,도전(기록 도전)
|
||||
btn,go_off|170|btn_gray|#FFFFFF|#AEB6D3|0|raid_go,도전 못 함(누르면 이유 알림)
|
||||
btn,done|150|btn_gray|#FFFFFF|#AEB6D3|0|raid_done,오늘 기록 도전 다 씀
|
||||
btn,practice|130|btn_l_red|#4F5572|#FFFFFF|0|raid_practice,연습(기록 · 보상 없음) · 시안 .btn.gray = 남색(#59607E → #454B66 가운데) · 테마에 남색 버튼 스킨이 없어 흰 바탕 버튼(btn_l_red = Button01_l_White_Bg + 광택 · 도전과 같은 모양) + 남색 틴트(QA M 2026-11-18 「회색이라 꺼진 것처럼 보임」)
|
||||
btn,locked|170|btn_gray|#FFFFFF|#AEB6D3|0|raid_locked_btn,해금 전
|
||||
main_buttons,detail|go,메인 카드 버튼(왼 → 오른) = 시안 · 메인 연습 = 상세 정보 창의 연습 버튼
|
||||
sub_buttons,practice|go,서브 카드 버튼 = 시안 · 서브 상세 = 카드를 누름
|
||||
strip,24|1420|1032|104|5|26|22|#171A2E|#30365A,주간 점수 띠(왼|위|폭|높이|테|모서리|안쪽 여백|테 색|바탕) = 시안 .pn
|
||||
strip_left,14|21|26|#9AA3C0|40|50|#FFD23E,왼쪽(위|이름 글자|이름 줄|이름 색|점수 글자|점수 줄|점수 색)
|
||||
strip_right,16|37|34|24|#6FD6FF|73|20|#9AA3C0,오른쪽(상자 앞 간격|순위 가운데 y|순위 글자|상위 % 글자|상위 % 색|내역 가운데 y|내역 글자|내역 색)
|
||||
strip_chest,76|18|4|#171A2E|#4A5377|54|chest_gold,누적 단계 상자(칸|모서리|테|테 색|바탕|아이콘|아이콘 id) = 시안 .rw.s · 누르면 누적 피해 단계 창
|
||||
example_rank,132|8,순위 · 상위 % = 시안 예시 값(서버 순위가 없을 때 · 기기 세이브)
|
||||
shop,114|96|176|116|30|22|16|12,훈장 상점(위|머리 높이|줄 높이|아이템 칸|이름 글자|작은 글자|안쪽 여백|줄 사이) · 시안 없음(점수 띠와 같은 판 · 카드와 같은 색)
|
||||
shop_row,#262B48|20|200|80,상점 줄(바탕|모서리|구매 버튼 폭|높이)
|
||||
shop_icons,general_chest:chest_general|arcana_shard:lobby_chest|hero_shard_pick:cur_shard|skill_book:cur_skillbook,물품 → 테마 아이콘 id(임시 선택)
|
||||
coin_icon,chest_point|56|40,토벌 훈장 아이콘(테마 id = 시안 IC.coin 과 같은 팩 그림|머리 크기|가격 크기)
|
||||
btn,buy|200|btn_l_red|#D8402F|#FFFFFF|1|raid_shop_buy,상점 구매
|
||||
btn,soldout|200|btn_gray|#FFFFFF|#AEB6D3|0|raid_shop_soldout,이번 주 한도 다 씀
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 864bc11bbd1a3e8419b9b560de110cb8
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
# 맹장 토벌전 화면 글자 표(PD 2026-11-18 · 투기장 league_text · 훈련장 supply_text 와 같은 방식 · 한글 하드코딩 금지) — 바뀌는 값 = {0} {1} 자리 · 색 = 리치 텍스트 <color>
|
||||
# 언어 칸 = ko(아트 시안 new_screens.js S.n_raid 문구 · 시안에 없는 맹장 6명의 패턴 · 약점 짧은 이름 = 게임 표 raid_rotation s_pattern_ko · s_weak_ko 를 줄인 임시 글자) · en 이하 = 번역 칸(비움)
|
||||
s_key,ko,en,note
|
||||
raid_title,맹장 토벌전,,위 제목 바
|
||||
raid_subtitle,메인 점수 +{0} % · 주간 점수 순위,,위 제목 바 부제({0} = 메인 점수 보너스 %)
|
||||
raid_tab_raid,토벌,,탭
|
||||
raid_tab_rank,순위,,탭
|
||||
raid_tab_shop,훈장 상점,,탭
|
||||
raid_tag_main,이번 주 메인 맹장,,메인 카드 태그
|
||||
raid_tag_future,{0}주 뒤 메인 맹장,,메인 카드 넘김 미리 보기 태그
|
||||
raid_tag_sub,오늘의 서브 맹장,,서브 카드 태그
|
||||
raid_tag_bonus,점수 +{0} %,,메인 점수 보너스 태그
|
||||
raid_name,{0} 토벌,,맹장 이름 줄({0} = 이름)
|
||||
raid_order_chip,군령,,군령 칩
|
||||
raid_time_main,교대까지 {0} · 다음 주 = {1},,메인 교대 줄({0} = 남은 시간 · {1} = 다음 주 메인)
|
||||
raid_time_sub,교대까지 {0} · 내일 = {1},,서브 교대 줄({0} = 시:분:초 · {1} = 다음 서브)
|
||||
raid_time_future,시작까지 {0},,넘김 미리 보기({0} = 그 주가 시작될 때까지)
|
||||
raid_left_dh,{0}일 {1}시간,,남은 시간(하루 이상)
|
||||
raid_left_hm,{0}시간 {1}분,,남은 시간(하루 미만)
|
||||
raid_sub_no_bonus,점수 보너스 없음,,서브 배율 = 1
|
||||
raid_sub_bonus,점수 +{0} %,,서브 배율 > 1
|
||||
raid_tile_boss,맹장,,맹장 칸 이름
|
||||
raid_pat_lvbu,패턴 · 돌진,,시안
|
||||
raid_weak_lvbu,약점 · 벽 충돌,,시안
|
||||
raid_pat_caocao,패턴 · 방패 호위,,임시(raid_rotation 요약)
|
||||
raid_weak_caocao,약점 · 호위 처치,,임시
|
||||
raid_pat_dongzhuo,패턴 · 내려치기,,임시
|
||||
raid_weak_dongzhuo,약점 · 기름 항아리,,임시
|
||||
raid_pat_yuanshao,패턴 · 화살비,,임시
|
||||
raid_weak_yuanshao,약점 · 호위 처치,,임시
|
||||
raid_pat_simayi,패턴 · 응시,,임시
|
||||
raid_weak_simayi,약점 · 등 뒤 공격,,임시
|
||||
raid_pat_zhangjiao,패턴 · 안개 · 벼락,,임시
|
||||
raid_weak_zhangjiao,약점 · 안개 걷기,,임시
|
||||
raid_pat_yuanshu,패턴 · 꿀물 수레,,임시
|
||||
raid_weak_yuanshu,약점 · 수레 부수기,,임시
|
||||
raid_record,오늘 기록 <color=#FFD23E>{0}</color> → 점수 {1},,메인 카드 칩({0} = 기록 · {1} = 점수)
|
||||
raid_detail,상세 정보,,버튼
|
||||
raid_go,도전,,버튼(기록 도전)
|
||||
raid_done,도전함,,버튼(오늘 기록 도전 다 씀)
|
||||
raid_practice,연습,,버튼
|
||||
raid_locked_btn,잠김,,버튼(해금 전)
|
||||
raid_detail_title,{0} 토벌,,상세 정보 창 제목
|
||||
raid_detail_order,<b>군령</b> {0},,상세 정보 창
|
||||
raid_detail_pattern,<b>패턴</b> {0},,상세 정보 창
|
||||
raid_detail_weak,<b>빈틈</b> {0},,상세 정보 창
|
||||
raid_close,닫기,,창 버튼
|
||||
raid_score_label,이번 주 점수 = 순위,,점수 띠
|
||||
raid_rank,{0}위,,점수 띠 순위
|
||||
raid_top,상위 {0} %,,점수 띠 상위 %
|
||||
raid_breakdown,메인 {0} × {1} + 서브 {2},,점수 띠 내역({0} = 메인 피해 · {1} = 메인 배율 · {2} = 서브 피해)
|
||||
raid_rank_offline,순위는 서버 연결 때 열립니다,,순위 탭(기기 세이브)
|
||||
raid_unlock,{0} 클리어 뒤 열립니다,,해금 전 띠 · 알림
|
||||
raid_steps_title,누적 피해 단계,,상자 누름 창 제목
|
||||
raid_steps_score,이번 주 점수 {0},,창 첫 줄
|
||||
raid_step_on,● {0} {1}점 — {2},,받은 단계({0} = 단계 이름 · {1} = 점수 · {2} = 보상)
|
||||
raid_step_off,○ {0} {1}점 — {2},,못 받은 단계
|
||||
raid_rw_gem,보옥 {0},,보상
|
||||
raid_rw_coin,토벌 훈장 {0},,보상
|
||||
raid_rw_chest,{0} ×{1},,보상(상자 이름 × 수)
|
||||
raid_shop_coins,보유 토벌 훈장 {0},,상점 머리
|
||||
raid_shop_limit,이번 주 {0} / {1},,상점 줄(산 수 / 한도)
|
||||
raid_shop_buy,구매,,상점 버튼
|
||||
raid_shop_soldout,완료,,상점 버튼(한도 다 씀)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a4460fd17f5638d40bb48c00118539da
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -9,11 +9,10 @@ banner,granary|UI/Supply/banners/banner_granary|#8E5420,던전 id|배너(둥근
|
|||
banner,drill|UI/Supply/banners/banner_drill|#2C7140,
|
||||
banner,bandit|UI/Supply/banners/banner_bandit|#9E3226,
|
||||
banner,tactics|UI/Supply/banners/banner_tactics|#2B4C98,
|
||||
panel,UI/Supply/parts/panel_fill|UI/Supply/parts/panel_line|0.84|0.74|#FFF3D6|0.45,「/」 글자 판|비스듬 선|판 알파(열림)|판 알파(닫힘 · 잠김)|선 색|선 알파
|
||||
panel,UI/Supply/parts/panel_fill|UI/Supply/parts/panel_line|0.84|0.74|#FFF3D6|0.45,「/」 글자 판|비스듬 선|판 알파(열림)|판 알파(닫힌 날)|선 색|선 알파
|
||||
card,1040|360|22|20|316|16,카드 폭|높이|카드 사이|왼쪽|첫 카드 위끝|목록 아래 여백
|
||||
closed_tint,#8C8C94,닫힌 날 · 잠김 배너 곱하기 색
|
||||
closed_tint,#8C8C94,닫힌 날 배너 곱하기 색(모드 잠김 = 평소 그림 + 화면 위 잠김 덮개 Resources/UI/Lock/lock_overlay · PD 2026-11-18)
|
||||
strip,240|52|25|18|#14172A|4,위 띠 위끝|칩 높이|글자|칩 사이|칩 테 색|테 굵기
|
||||
lock_strip,#962418|0.92|56|28|40,모드 잠김 띠 색|알파|높이|글자|자물쇠
|
||||
name,28|20|50,이름 왼쪽|위|글자
|
||||
chips,12|42|23|8|#0A0C16|0.55,이름 아래 틈|칩 높이|글자|칩 사이|칩 색|알파
|
||||
days,12|40|22|6|#FFF3D6|#3A2418|#FFD23E|4,칩 아래 틈|요일 점 지름|글자|사이|점 색|글자 색|오늘 고리 색|고리 굵기
|
||||
|
|
|
|||
|
|
|
@ -9,7 +9,6 @@ supply_done_bonus,오늘 완료 {0} / {1} · 보너스 받음,,위 띠(그날
|
|||
supply_stamp,주간 도장 {0} / {1},,위 띠
|
||||
supply_stamp_got,주간 도장 {0} / {1} · 받음,,위 띠(주간 보상 받음)
|
||||
supply_entries,하루 {0}회 · 광고 +{1},,위 띠 오른쪽(던전마다)
|
||||
supply_unlock,{0} 클리어 뒤 열립니다,,모드 잠김 띠
|
||||
supply_turns,제한 {0}턴,,카드 칩
|
||||
supply_best,최고 {0}단계,,카드 칩(기록이 있는 가장 높은 단계)
|
||||
supply_best_none,기록 없음,,카드 칩
|
||||
|
|
|
|||
|
|
|
@ -13,13 +13,16 @@ layers,UI/Yeonmu/layers,앞 층 폴더(같은 이름 png + json · json x·y·w
|
|||
layer_sort_pad,8,앞 층 json 에 sort_y 가 없으면 y + h − 이 값 = 발 줄 순서(시안과 같음)
|
||||
title_key,yeonmu_title,제목 띠 글자 키
|
||||
subtitle_key,yeonmu_subtitle,제목 띠 부제 키(허브에서만 · 모드 페이지는 자기 제목 띠)
|
||||
open,gate|raid,성문(맹장 토벌전) → 맹장 토벌전 페이지(컨텐츠 모드 ③) · 열 곳 값 = tower · supply · league · raid · scenario · soon(준비 중) · later(추후 업데이트)
|
||||
open,gate|raid,성문(맹장 토벌전) → 맹장 토벌전 페이지(컨텐츠 모드 ③ · 해금 전 = 들어가지 않고 개방 조건 안내 · PD 2026-11-19) · 열 곳 값 = tower · supply · league · raid · scenario · soon(준비 중) · later(추후 업데이트) · update(update_key 글자만 띄움)
|
||||
open,tower|tower,천하제일 탑 → 탑 페이지
|
||||
open,stable|supply,마구간(황건적 소탕 · 군량고 습격) → 보급전 첫 화면(던전 목록 · 컨텐츠 모드 ① · 장소별로 던전을 거르는 진입점은 아직 없음)
|
||||
open,stable|update,마구간 → 「업데이트 예정입니다.」 안내만(PD 2026-11-19 「추후 개발할 컨텐츠」 · 예전 = 보급전 첫 화면)
|
||||
open,yard|supply,훈련장(전술 훈련 · 병법 훈련) → 보급전 첫 화면(던전 목록)
|
||||
open,ring|league,비무대 → 투기장 페이지(등급 투기장 · 컨텐츠 모드 ④)
|
||||
open,ring|league,비무대 → 투기장 페이지(등급 투기장 · 컨텐츠 모드 ④ · 해금 전 = 들어가지 않고 개방 조건 안내 · PD 2026-11-19)
|
||||
open,hall|scenario,집현전 → 연의 전기 페이지(컨텐츠 모드 ②)
|
||||
open,tent|later,군막(천하 쟁패 · 동맹 미구현 · 잠김) → 「추후 업데이트」 안내
|
||||
update_key,yeonmu_update_soon,open update(마구간) 누름 안내 글자 키(PD 2026-11-19 「업데이트 예정입니다. 라는 메시지만」)
|
||||
ok_key,yeonmu_ok,안내 팝업 버튼 글자 키
|
||||
lock_status,yeonmu_status_unlock,해금 전 투기장 · 맹장 토벌전 이름표 상태 줄 글자 키({0} = 해금 스테이지 · 이름 앞 자물쇠 = 천하 쟁패와 같은 모양 · PD 2026-11-19)
|
||||
shadow_std,180,그림자 크기 기준 키(유닛 키 ÷ 이 값 = 그림자 배율 · 내정 순찰과 같음)
|
||||
shadow,lobby_glow|14|3|150|32|#5E4E6E80,퍼진 그림자(테마 아이콘|발에서 x|y|폭|높이|색) · 내정 patrol_shadow 와 같은 값
|
||||
shadow,lobby_glow|0|1|86|14|#3A2C3370,발 닿는 곳 접지 그림자
|
||||
|
|
|
|||
|
|
|
@ -10,13 +10,16 @@ yeonmu_gate_status,도전 {0} / {1} · {2}위,,{0} 오늘 도전 {1} 최대 {2}
|
|||
yeonmu_tower_name,천하제일 탑,,탑 이름표
|
||||
yeonmu_tower_status,{0}층,,{0} 최고 층
|
||||
yeonmu_stable_name,마구간,,마구간 이름표
|
||||
yeonmu_stable_status,황건적 소탕 · 군량고 습격,,마구간 상태 줄
|
||||
yeonmu_stable_status,업데이트 예정,,마구간 상태 줄(PD 2026-11-19 마구간 = 추후 개발 컨텐츠 · 예전 「황건적 소탕 · 군량고 습격」)
|
||||
yeonmu_update_soon,업데이트 예정입니다.,,마구간 누름 안내(PD 2026-11-19 문구 그대로)
|
||||
yeonmu_ok,확인,,안내 팝업 버튼
|
||||
yeonmu_hall_name,연의 전기,,집현전 이름표
|
||||
yeonmu_hall_status,새 편 · {0},,{0} 새 편 이름(시나리오 표)
|
||||
yeonmu_ring_name,투기장,,비무대 이름표
|
||||
yeonmu_ring_status,남은 {0} / {1},,{0} 남은 도전 {1} 최대
|
||||
yeonmu_tent_name,천하 쟁패,,군막 이름표
|
||||
yeonmu_tent_status_locked,동맹에 가입하면 열림,,잠김 상태 줄
|
||||
yeonmu_status_unlock,출정 {0} 클리어 시 열림,,해금 전 투기장 · 맹장 토벌전 상태 줄({0} = 해금 스테이지 장-번호 · PD 2026-11-19)
|
||||
yeonmu_yard_name,훈련장,,훈련장 이름표
|
||||
yeonmu_yard_status,전술 훈련 · 병법 훈련,,훈련장 상태 줄
|
||||
yeonmu_yard_panel_title,훈련장,,훈련장 포커스 패널 제목
|
||||
|
|
|
|||
|
|
|
@ -31,8 +31,9 @@ namespace TKS.OutGame
|
|||
public string statusKey = "";
|
||||
public string[] args = new string[0];
|
||||
public bool dot;
|
||||
/// <summary>늘 잠김(장소 표 s_flags lock · 천하 쟁패) — 모드 해금으로 잠기는 곳(투기장 · 맹장 토벌전)은 <see cref="LockStage"/>.</summary>
|
||||
public bool locked;
|
||||
/// <summary>누르면 열 곳(허브 표 open · tower · supply · league · raid · scenario · soon · later · 빈 = 누름 없음).</summary>
|
||||
/// <summary>누르면 열 곳(허브 표 open · tower · supply · league · raid · scenario · soon · later · update · 빈 = 누름 없음).</summary>
|
||||
public string open = "";
|
||||
}
|
||||
|
||||
|
|
@ -76,6 +77,10 @@ namespace TKS.OutGame
|
|||
readonly Dictionary<string, RectTransform> statusPill = new Dictionary<string, RectTransform>();
|
||||
readonly Dictionary<string, RectTransform> tagRoot = new Dictionary<string, RectTransform>();
|
||||
readonly Dictionary<string, Text> nameText = new Dictionary<string, Text>();
|
||||
readonly Dictionary<string, Image> lockIcon = new Dictionary<string, Image>();
|
||||
readonly Dictionary<string, Image> dotIcon = new Dictionary<string, Image>();
|
||||
readonly Dictionary<string, float> plaqueSide = new Dictionary<string, float>();
|
||||
readonly Dictionary<string, bool> tagLocked = new Dictionary<string, bool>();
|
||||
readonly Dictionary<string, RectTransform> actorRt = new Dictionary<string, RectTransform>();
|
||||
|
||||
public RectTransform View { get; private set; }
|
||||
|
|
@ -468,28 +473,30 @@ namespace TKS.OutGame
|
|||
}
|
||||
else pimg.color = UiKit.Dark;
|
||||
pimg.raycastTarget = true;
|
||||
float iconW = s.locked ? At(lk, 2) : 0f;
|
||||
plaqueSide[s.id] = side;
|
||||
var name = UiKit.Title(UiKit.Label(plq, UiText.T(s.nameKey), (int)At(nt, 0, 30f), Col(nt, 1, Color.white), TextAnchor.MiddleCenter,
|
||||
new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(iconW * 0.5f, At(nt, 4)), new Vector2(1000f, H)));
|
||||
new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0f, At(nt, 4)), new Vector2(1000f, H)));
|
||||
name.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
UISkin.Stroke(name, Col(nt, 2, Color.black), At(nt, 3, 3f));
|
||||
nameText[s.id] = name;
|
||||
float tw = name.preferredWidth;
|
||||
float wp = Mathf.Max(tw + iconW + 2f * side + At(pl, 3), At(pl, 2));
|
||||
plq.sizeDelta = new Vector2(wp, H);
|
||||
name.rectTransform.sizeDelta = new Vector2(wp, H);
|
||||
if (s.locked)
|
||||
// 자물쇠 = 이름표마다 하나(잠긴 동안만 켬 · 천하 쟁패 = 늘 · 투기장 · 맹장 토벌전 = 모드 해금 전 · PD 2026-11-19) · 자리 = LayoutTag
|
||||
float isz = At(lk, 1, 34f);
|
||||
var ic = UISkin.IconImage(plq, Str(lk, 0), new Vector2(0.5f, 0.5f), new Vector2(1f, 0.5f), Vector2.zero, new Vector2(isz, isz));
|
||||
if (ic != null)
|
||||
{
|
||||
float isz = At(lk, 1, 34f);
|
||||
var ic = UISkin.IconImage(plq, Str(lk, 0), new Vector2(0.5f, 0.5f), new Vector2(1f, 0.5f), new Vector2(iconW * 0.5f - tw * 0.5f - At(lk, 3), 0f), new Vector2(isz, isz));
|
||||
if (ic != null) ic.name = "Lock";
|
||||
ic.name = "Lock";
|
||||
lockIcon[s.id] = ic;
|
||||
}
|
||||
if (s.dot)
|
||||
{
|
||||
var dt = L("dot"); // 스프라이트|크기|x(명패 오른끝 기준)|y(명패 위끝 기준)
|
||||
float d = At(dt, 1, 24f);
|
||||
var dot = UISkin.IconImage(plq, Str(dt, 0), new Vector2(1f, 1f), new Vector2(0.5f, 0.5f), new Vector2(At(dt, 2), At(dt, 3)), new Vector2(d, d));
|
||||
if (dot != null) dot.name = "Dot";
|
||||
if (dot != null)
|
||||
{
|
||||
dot.name = "Dot";
|
||||
dotIcon[s.id] = dot;
|
||||
}
|
||||
}
|
||||
// 상태 줄(명패 아래 · 겹침 overlap)
|
||||
var st = L("status"); // 스킨|높이|좌우 여백 합|겹침|바탕색|글자|글자색
|
||||
|
|
@ -507,9 +514,39 @@ namespace TKS.OutGame
|
|||
b.navigation = nav;
|
||||
var id = s.id;
|
||||
b.onClick.AddListener(() => Press(id));
|
||||
LayoutTag(s, IsLocked(s));
|
||||
TagCount++;
|
||||
}
|
||||
|
||||
/// <summary>명패 배치(잠김 = 이름 앞 자물쇠 자리 · 새 소식 점 끔 · 시안 mk_mock.py tag()) — 잠김이 바뀌면 다시(RefreshStatus).</summary>
|
||||
void LayoutTag(Spot s, bool lockOn)
|
||||
{
|
||||
Text name;
|
||||
if (!nameText.TryGetValue(s.id, out name)) return;
|
||||
var pl = L("plaque");
|
||||
var nt = L("name_text");
|
||||
var lk = L("lock");
|
||||
float H = At(pl, 1, 62f);
|
||||
float iconW = lockOn ? At(lk, 2) : 0f;
|
||||
float tw = name.preferredWidth;
|
||||
float side;
|
||||
plaqueSide.TryGetValue(s.id, out side);
|
||||
float wp = Mathf.Max(tw + iconW + 2f * side + At(pl, 3), At(pl, 2));
|
||||
var plq = (RectTransform)name.rectTransform.parent;
|
||||
plq.sizeDelta = new Vector2(wp, H);
|
||||
name.rectTransform.anchoredPosition = new Vector2(iconW * 0.5f, At(nt, 4));
|
||||
name.rectTransform.sizeDelta = new Vector2(wp, H);
|
||||
Image ic;
|
||||
if (lockIcon.TryGetValue(s.id, out ic))
|
||||
{
|
||||
ic.gameObject.SetActive(lockOn);
|
||||
ic.rectTransform.anchoredPosition = new Vector2(iconW * 0.5f - tw * 0.5f - At(lk, 3), 0f);
|
||||
}
|
||||
Image dot;
|
||||
if (dotIcon.TryGetValue(s.id, out dot)) dot.gameObject.SetActive(!lockOn); // 잠긴 곳 = 새 소식 점 없음
|
||||
tagLocked[s.id] = lockOn;
|
||||
}
|
||||
|
||||
void BuildHint()
|
||||
{
|
||||
var h = L("hint"); // 글자 키|글자|글자색|바탕색|높이|좌우 여백 합|탭 바 위 간격
|
||||
|
|
@ -589,14 +626,60 @@ namespace TKS.OutGame
|
|||
while (a.Count < n) a.Add("");
|
||||
}
|
||||
|
||||
/// <summary>장소 열 곳 → 연무장 페이지(tower 1 · supply 2 · league 3 · raid 4 · scenario 5) · 페이지가 아니면 −1(soon · later · update = 안내 팝업).</summary>
|
||||
public static int PageOf(string open)
|
||||
{
|
||||
switch (open)
|
||||
{
|
||||
case "tower": return 1;
|
||||
case "supply": return 2;
|
||||
case "league": return 3;
|
||||
case "raid": return 4;
|
||||
case "scenario": return ArenaScreen.ScenarioPage;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/// <summary>모드 해금 전이라 연무장에서 막는 곳(투기장 · 맹장 토벌전 · PD 2026-11-19)의 해금 스테이지 키 · 열렸거나 그런 곳이 아니면 null.</summary>
|
||||
public string LockStage(Spot s)
|
||||
{
|
||||
string key;
|
||||
return s != null && screen.PageLocked(PageOf(s.open), out key) ? key : null;
|
||||
}
|
||||
|
||||
/// <summary>지금 잠김 = 늘 잠김(표 lock) 또는 모드 해금 전.</summary>
|
||||
public bool IsLocked(Spot s)
|
||||
{
|
||||
return s != null && (s.locked || LockStage(s) != null);
|
||||
}
|
||||
|
||||
/// <summary>상태 줄 글자 = 모드 해금 전이면 개방 조건(허브 표 lock_status 키 · {0} = 해금 스테이지) · 아니면 장소 표 글자 키 + 값.</summary>
|
||||
public string StatusText(Spot s)
|
||||
{
|
||||
var stage = LockStage(s);
|
||||
if (stage != null) return UiText.F(S("lock_status"), new[] { stage });
|
||||
return UiText.F(s.statusKey, Args(s));
|
||||
}
|
||||
|
||||
/// <summary>그 장소 이름표 자물쇠가 켜졌는가(테스트).</summary>
|
||||
public bool LockShown(string id)
|
||||
{
|
||||
Image ic;
|
||||
return lockIcon.TryGetValue(id, out ic) && ic != null && ic.gameObject.activeSelf;
|
||||
}
|
||||
|
||||
public void RefreshStatus()
|
||||
{
|
||||
foreach (var s in Spots)
|
||||
{
|
||||
Text t;
|
||||
if (!statusText.TryGetValue(s.id, out t)) continue;
|
||||
var v = UiText.F(s.statusKey, Args(s));
|
||||
if (t.text == v) continue;
|
||||
bool lockOn = IsLocked(s);
|
||||
bool was;
|
||||
bool relayout = !tagLocked.TryGetValue(s.id, out was) || was != lockOn;
|
||||
if (relayout) LayoutTag(s, lockOn); // 해금 · 잠김이 바뀜 = 자물쇠 · 명패 폭 · 점 다시
|
||||
var v = StatusText(s);
|
||||
if (t.text == v && !relayout) continue;
|
||||
t.text = v;
|
||||
var st = L("status");
|
||||
float w = t.preferredWidth + At(st, 2);
|
||||
|
|
@ -609,20 +692,27 @@ namespace TKS.OutGame
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>장소 누름 = 표 open: tower 탑 · supply 보급전(첫 화면 = 던전 목록) · league 투기장 · raid 맹장 토벌전 · scenario 연의 전기 · soon 「준비 중」 · later 「추후 업데이트」(잠김).</summary>
|
||||
/// <summary>
|
||||
/// 장소 누름 = 표 open: tower 탑 · supply 보급전(첫 화면 = 던전 목록) · league 투기장 · raid 맹장 토벌전 · scenario 연의 전기(잠긴 투기장 · 맹장 토벌전 = 들어가지 않고 개방 조건 안내 · ArenaScreen.SetPage) ·
|
||||
/// soon 「준비 중」 · later 「추후 업데이트」(잠김) · update = 허브 표 update_key 글자만 띄움(PD 2026-11-19 마구간 「"업데이트 예정입니다." 라는 메시지만」).
|
||||
/// </summary>
|
||||
public void Press(string id)
|
||||
{
|
||||
var s = SpotOf(id);
|
||||
if (s == null) return;
|
||||
int p = PageOf(s.open);
|
||||
if (p > 0)
|
||||
{
|
||||
screen.SetPage(p);
|
||||
return;
|
||||
}
|
||||
switch (s.open)
|
||||
{
|
||||
case "tower": screen.SetPage(1); break;
|
||||
case "supply": screen.SetPage(2); break;
|
||||
case "league": screen.SetPage(3); break;
|
||||
case "raid": screen.SetPage(4); break;
|
||||
case "scenario": screen.SetPage(ArenaScreen.ScenarioPage); break;
|
||||
case "soon": screen.Root.ComingSoon(UiText.T(s.nameKey)); break;
|
||||
case "later": screen.Root.ComingSoon(UiText.T(s.nameKey), true); break;
|
||||
case "update":
|
||||
screen.Root.Modal(UiText.T(s.nameKey), UiText.T(S("update_key")), new OutGameRoot.ModalButton(UiText.T(S("ok_key")), UiKit.Dark, null));
|
||||
break;
|
||||
default: Debug.LogWarning("[TKS] 연무장 장소 연결 없음(허브 표 open): " + id); break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,911 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace TKS.OutGame
|
||||
{
|
||||
/// <summary>
|
||||
/// 맹장 토벌전 화면(PD 2026-11-18 「맹장 토벌전 메뉴가 제대로 보여지지 않고 있어 … 정상적으로 게임에서 확인할 수 있도록 반영해줘」 · 아트 시안 content_screens_2/raid_banner/final/mock_raid.png) —
|
||||
/// 탭(토벌 · 순위 · 훈장 상점) + 메인 맹장 카드(배너 · 태그 · 이름 · 칭호 · 군령 · 교대 · 맹장/패턴/약점 칸 · 오늘 기록 · 넘김 · 상세 정보 · 도전) + 서브 맹장 카드(연습 · 도전) + 주간 점수 띠(순위 · 내역 · 누적 단계 상자).
|
||||
/// 기능 = 예전 더미 화면(ArenaScreen.BuildRaid2)과 같음: 맹장 = RaidRules.BossOf · 도전 · 연습 = ArenaScreen.RaidGo · 상점 구매 = ArenaScreen.RaidBuyPick · 순위 표 = Net.RankPanel(서버 모드) · 해금 전 = 같은 화면(도전 = 잠김 버튼) + 화면 위 잠김 덮개(LockOverlay · ArenaScreen.ShowRaidView · PD 2026-11-18).
|
||||
/// 표(C45): 화면 = Resources/UI/Raid/raid_screen(키 · 값 · 배치 · 색 · 시안 예시 값) · 글자 = raid_text(UiText) · 맹장 값 = 게임 표 ContentModes/raid_*(RaidData) · 배너 = ContentModes/Art/raid_banner_<id>.
|
||||
/// 층(P41): 화면 → 본문 맞춤(UiFitHeight) → Art(카드 테 · 배너 · 점수 띠 바탕 · Static) · Info(값 · 탭 · 버튼 · 누름 칸 · Event + 레이캐스터) · Clock(교대 남은 시간 · 1초마다 · Frame).
|
||||
/// 게임에 데이터가 없는 값(오늘 기록 · 기기 세이브의 순위)은 설정 표 example_* (시안 예시 값) — 투기장 화면과 같은 방식.
|
||||
/// </summary>
|
||||
public class ArenaRaid
|
||||
{
|
||||
public const string Table = "UI/Raid/raid_screen";
|
||||
|
||||
readonly ArenaScreen screen;
|
||||
readonly Dictionary<string, List<string>> kv = new Dictionary<string, List<string>>();
|
||||
readonly Dictionary<string, string[]> bosses = new Dictionary<string, string[]>();
|
||||
readonly Dictionary<string, string[]> btns = new Dictionary<string, string[]>();
|
||||
readonly Dictionary<string, Text> texts = new Dictionary<string, Text>();
|
||||
readonly Dictionary<string, Button> buttons = new Dictionary<string, Button>();
|
||||
|
||||
public RectTransform View { get; private set; }
|
||||
public RectTransform Design { get; private set; }
|
||||
public RectTransform Art { get; private set; }
|
||||
public RectTransform Info { get; private set; }
|
||||
public RectTransform Clock { get; private set; }
|
||||
public bool Built { get; private set; }
|
||||
public bool Locked { get; private set; }
|
||||
|
||||
/// <summary>지금 탭 동작(raid · shop).</summary>
|
||||
public string Tab { get; private set; }
|
||||
|
||||
/// <summary>메인 카드 넘김(0 = 이번 주 · k = k 주 뒤 메인 미리 보기).</summary>
|
||||
public int Preview { get; private set; }
|
||||
|
||||
public string MainId { get; private set; }
|
||||
public string SubId { get; private set; }
|
||||
public string ShownMainId { get; private set; }
|
||||
public int CardCount { get; private set; }
|
||||
public int TileCount { get; private set; }
|
||||
public int ShopRows { get; private set; }
|
||||
|
||||
/// <summary>마지막으로 연 상세 정보 창의 맹장(테스트).</summary>
|
||||
public string LastDetail { get; private set; }
|
||||
|
||||
DateTime mainEnd = DateTime.MaxValue, subEnd = DateTime.MaxValue; // 현지 시각
|
||||
string nextMainName = "", nextSubName = "";
|
||||
Text mainClock, subClock;
|
||||
Color strokeC = Color.black;
|
||||
float strokeW = 3f;
|
||||
|
||||
ArenaRaid(ArenaScreen s)
|
||||
{
|
||||
screen = s;
|
||||
Tab = "raid";
|
||||
}
|
||||
|
||||
OutGameSession S
|
||||
{
|
||||
get { return screen.S; }
|
||||
}
|
||||
|
||||
// ---------- 표 ----------
|
||||
|
||||
/// <summary>설정 표 · 글자 표를 읽는다(그림은 처음 열 때 Show) · 표가 없으면 null(호출 쪽 = 예전 더미 화면).</summary>
|
||||
public static ArenaRaid Load(ArenaScreen s)
|
||||
{
|
||||
var rows = UiText.Rows(Table);
|
||||
if (rows == null) return null;
|
||||
var rd = new ArenaRaid(s);
|
||||
foreach (var r in rows)
|
||||
{
|
||||
string k, v;
|
||||
if (!r.TryGetValue("s_key", out k) || k.Length == 0) continue;
|
||||
r.TryGetValue("s_value", out v);
|
||||
List<string> l;
|
||||
if (!rd.kv.TryGetValue(k, out l)) rd.kv[k] = l = new List<string>();
|
||||
l.Add(v ?? "");
|
||||
}
|
||||
foreach (var b in rd.All("boss"))
|
||||
if (Str(b, 0).Length > 0) rd.bosses[Str(b, 0)] = b;
|
||||
foreach (var b in rd.All("btn"))
|
||||
if (Str(b, 0).Length > 0) rd.btns[Str(b, 0)] = b;
|
||||
UiText.Use(rd.S_("texts"));
|
||||
if (!UiText.Has(rd.S_("title_key"))) return null;
|
||||
return rd;
|
||||
}
|
||||
|
||||
public string S_(string key, string def = "")
|
||||
{
|
||||
List<string> l;
|
||||
return kv.TryGetValue(key, out l) && l.Count > 0 && l[0].Length > 0 ? l[0] : def;
|
||||
}
|
||||
|
||||
string[] L(string key)
|
||||
{
|
||||
return S_(key).Split('|');
|
||||
}
|
||||
|
||||
List<string[]> All(string key)
|
||||
{
|
||||
var list = new List<string[]>();
|
||||
List<string> l;
|
||||
if (kv.TryGetValue(key, out l))
|
||||
foreach (var v in l)
|
||||
list.Add(v.Split('|'));
|
||||
return list;
|
||||
}
|
||||
|
||||
static float F(string v, float def = 0f)
|
||||
{
|
||||
float f;
|
||||
return v != null && float.TryParse(v.Trim(), NumberStyles.Float, CultureInfo.InvariantCulture, out f) ? f : def;
|
||||
}
|
||||
|
||||
static float At(string[] a, int i, float def = 0f)
|
||||
{
|
||||
return a != null && i < a.Length && a[i].Trim().Length > 0 ? F(a[i], def) : def;
|
||||
}
|
||||
|
||||
static string Str(string[] a, int i)
|
||||
{
|
||||
return a != null && i < a.Length ? a[i].Trim() : "";
|
||||
}
|
||||
|
||||
static Color Col(string[] a, int i, Color def)
|
||||
{
|
||||
Color c;
|
||||
return a != null && i < a.Length && ColorUtility.TryParseHtmlString(a[i].Trim(), out c) ? c : def;
|
||||
}
|
||||
|
||||
static string N(long v)
|
||||
{
|
||||
return v.ToString("N0", CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
static string Pct(float mult)
|
||||
{
|
||||
return Mathf.RoundToInt((mult - 1f) * 100f).ToString(CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
/// <summary>제목 띠 부제(메인 점수 보너스 % 넣음).</summary>
|
||||
public string Subtitle
|
||||
{
|
||||
get { return UiText.F(S_("subtitle_key"), new[] { Pct(RaidData.ScoreMult(RaidData.Main)) }); }
|
||||
}
|
||||
|
||||
/// <summary>값 글자(테스트 · 없으면 null).</summary>
|
||||
public string TextOf(string name)
|
||||
{
|
||||
Text t;
|
||||
return texts.TryGetValue(name, out t) && t != null ? t.text : null;
|
||||
}
|
||||
|
||||
/// <summary>버튼(테스트 · 이름 = Go_main · Go_sub · Detail_main · Practice_sub · Buy_<물품> …).</summary>
|
||||
public Button ButtonOf(string name)
|
||||
{
|
||||
Button b;
|
||||
return buttons.TryGetValue(name, out b) ? b : null;
|
||||
}
|
||||
|
||||
/// <summary>글자 이름 목록(테스트 · 값 자리 남음 검사).</summary>
|
||||
public IEnumerable<KeyValuePair<string, Text>> Texts
|
||||
{
|
||||
get { return texts; }
|
||||
}
|
||||
|
||||
Sprite Banner(string id)
|
||||
{
|
||||
return string.IsNullOrEmpty(id) ? null : Resources.Load<Sprite>(S_("banner") + id);
|
||||
}
|
||||
|
||||
/// <summary>아이콘 지정 = 「res:경로」(Resources) · 그 밖 = 테마 아이콘 id.</summary>
|
||||
static Sprite IconSprite(string spec)
|
||||
{
|
||||
if (string.IsNullOrEmpty(spec)) return null;
|
||||
return spec.StartsWith("res:", StringComparison.Ordinal) ? Resources.Load<Sprite>(spec.Substring(4)) : UISkin.Icon(spec);
|
||||
}
|
||||
|
||||
static Sprite fadeH;
|
||||
|
||||
/// <summary>왼쪽 불투명 → 오른쪽 투명 가로 그라데이션(시안 linear-gradient(90deg) · 색 = Image.color).</summary>
|
||||
static Sprite FadeH
|
||||
{
|
||||
get
|
||||
{
|
||||
if (fadeH != null) return fadeH;
|
||||
const int n = 64;
|
||||
var tex = new Texture2D(n, 1, TextureFormat.RGBA32, false);
|
||||
tex.wrapMode = TextureWrapMode.Clamp;
|
||||
tex.hideFlags = HideFlags.DontSave;
|
||||
var px = new Color[n];
|
||||
for (int i = 0; i < n; i++) px[i] = new Color(1f, 1f, 1f, 1f - i / (n - 1f));
|
||||
tex.SetPixels(px);
|
||||
tex.Apply();
|
||||
fadeH = Sprite.Create(tex, new Rect(0, 0, n, 1), new Vector2(0.5f, 0.5f), 100f);
|
||||
fadeH.hideFlags = HideFlags.DontSave;
|
||||
return fadeH;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------- 만들기 ----------
|
||||
|
||||
/// <summary>slot(화면 전체 · 제목 띠 뒤)에 처음 한 번 층을 만들고 내용을 다시 채운다 · 배너가 하나도 없으면 false(호출 쪽 = 예전 더미 화면).</summary>
|
||||
public bool Show(RectTransform slot)
|
||||
{
|
||||
if (!Built)
|
||||
{
|
||||
bool any = false;
|
||||
foreach (var b in RaidData.Bosses())
|
||||
if (Banner(b.id) != null)
|
||||
{
|
||||
any = true;
|
||||
break;
|
||||
}
|
||||
if (!any)
|
||||
{
|
||||
Debug.LogWarning("[TKS] 맹장 배너 없음: " + S_("banner"));
|
||||
return false;
|
||||
}
|
||||
View = slot;
|
||||
var body = UiKit.Fill("Body", View, 0f, 0f, OutGameRoot.TopBarH + OutGameRoot.HeaderH, OutGameRoot.TabBarH);
|
||||
var fit = UiKit.Rect("Fit", body, new Vector2(0.5f, 1f), new Vector2(0.5f, 1f), Vector2.zero, new Vector2(OutGameRoot.Reference.x, OutGameRoot.BodyH));
|
||||
fit.gameObject.AddComponent<UiFitHeight>().designHeight = OutGameRoot.BodyH; // 본문 높이 맞춤(다른 화면 Body 와 같음)
|
||||
Design = UiKit.Rect("Design", fit, new Vector2(0.5f, 1f), new Vector2(0.5f, 1f), Vector2.zero, new Vector2(OutGameRoot.Reference.x, OutGameRoot.BodyH));
|
||||
Art = UiLayer.Group("Art", Design, UiRate.Static);
|
||||
Info = UiLayer.Group("Info", Design, UiRate.Event, true);
|
||||
Clock = UiLayer.Group("Clock", Design, UiRate.Frame);
|
||||
Clock.gameObject.AddComponent<RaidClock>().owner = this;
|
||||
Built = true;
|
||||
}
|
||||
Rebuild();
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>쪽을 새로 열 때 = 토벌 탭 · 이번 주 메인.</summary>
|
||||
public void ResetView()
|
||||
{
|
||||
Tab = "raid";
|
||||
Preview = 0;
|
||||
}
|
||||
|
||||
void Rebuild()
|
||||
{
|
||||
ContentTables.Reload();
|
||||
UiKit.Clear(Art);
|
||||
UiKit.Clear(Info);
|
||||
UiKit.Clear(Clock);
|
||||
texts.Clear();
|
||||
buttons.Clear();
|
||||
mainClock = subClock = null;
|
||||
CardCount = TileCount = ShopRows = 0;
|
||||
var st = L("stroke");
|
||||
strokeC = Col(st, 0, UiKit.Stroke);
|
||||
strokeW = At(st, 1, 3f);
|
||||
var d = S.Save;
|
||||
var now = S.Now;
|
||||
Locked = !RaidRules.Unlocked(d);
|
||||
if (Locked && Tab == "shop") Tab = "raid";
|
||||
MainId = RaidRules.BossOf(d, RaidData.Main, now);
|
||||
SubId = RaidRules.BossOf(d, RaidData.Sub, now);
|
||||
Times(now);
|
||||
Tabs();
|
||||
if (Tab == "shop")
|
||||
{
|
||||
Shop(d, now);
|
||||
return;
|
||||
}
|
||||
int n = RaidData.Bosses().Count;
|
||||
Preview = n > 0 ? (Preview % n + n) % n : 0;
|
||||
ShownMainId = Preview == 0 ? MainId : PreviewBoss(Preview);
|
||||
var cd = L("card");
|
||||
float y = At(cd, 1, 114f), step = At(cd, 3, 640f) + At(cd, 4, 14f);
|
||||
var main = RaidData.Get(ShownMainId);
|
||||
if (main != null) Card(RaidData.Main, main, y, Preview, n);
|
||||
var sub = RaidData.Get(SubId);
|
||||
if (sub != null) Card(RaidData.Sub, sub, y + step, 0, n);
|
||||
Strip(d);
|
||||
Tick();
|
||||
}
|
||||
|
||||
// ---------- 일정(교대 시각 · 다음 맹장) — RaidData.Schedule 을 날짜만 바꿔 불러 찾음(새 규칙 없음) ----------
|
||||
|
||||
int MainDays
|
||||
{
|
||||
get { return Mathf.Max(1, ContentTables.Int(RaidData.Mode, "main_days")); }
|
||||
}
|
||||
|
||||
void Times(DateTime now)
|
||||
{
|
||||
mainEnd = subEnd = DateTime.MaxValue;
|
||||
nextMainName = nextSubName = "";
|
||||
int week;
|
||||
string m, s;
|
||||
RaidData.Schedule(now, out week, out m, out s);
|
||||
var day0 = now.ToLocalTime().Date;
|
||||
for (int k = 1; k <= MainDays + 1; k++)
|
||||
{
|
||||
var t = day0.AddDays(k); // 현지 자정(Schedule 은 현지 날짜만 봄)
|
||||
int w2;
|
||||
string m2, s2;
|
||||
RaidData.Schedule(t, out w2, out m2, out s2);
|
||||
if (subEnd == DateTime.MaxValue && (s2 != s || w2 != week))
|
||||
{
|
||||
subEnd = t;
|
||||
nextSubName = NameOf(s2);
|
||||
}
|
||||
if (w2 != week)
|
||||
{
|
||||
mainEnd = t;
|
||||
nextMainName = NameOf(m2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static string NameOf(string id)
|
||||
{
|
||||
var b = RaidData.Get(id);
|
||||
return b != null ? b.nameKo : id ?? "";
|
||||
}
|
||||
|
||||
DateTime PreviewStart(int k)
|
||||
{
|
||||
return mainEnd == DateTime.MaxValue ? mainEnd : mainEnd.AddDays((k - 1) * MainDays);
|
||||
}
|
||||
|
||||
string PreviewBoss(int k)
|
||||
{
|
||||
var t = PreviewStart(k);
|
||||
if (t == DateTime.MaxValue) return MainId;
|
||||
int w;
|
||||
string m, s;
|
||||
RaidData.Schedule(t, out w, out m, out s);
|
||||
return m;
|
||||
}
|
||||
|
||||
string LeftDH(TimeSpan t)
|
||||
{
|
||||
if (t < TimeSpan.Zero) t = TimeSpan.Zero;
|
||||
if (t.Days > 0) return UiText.F("raid_left_dh", new[] { t.Days.ToString(CultureInfo.InvariantCulture), t.Hours.ToString(CultureInfo.InvariantCulture) });
|
||||
return UiText.F("raid_left_hm", new[] { t.Hours.ToString(CultureInfo.InvariantCulture), t.Minutes.ToString(CultureInfo.InvariantCulture) });
|
||||
}
|
||||
|
||||
static string LeftHMS(TimeSpan t)
|
||||
{
|
||||
if (t < TimeSpan.Zero) t = TimeSpan.Zero;
|
||||
return ((int)t.TotalHours).ToString("00", CultureInfo.InvariantCulture) + ":" + t.Minutes.ToString("00", CultureInfo.InvariantCulture) + ":" + t.Seconds.ToString("00", CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
string MainTime(DateTime nowL)
|
||||
{
|
||||
if (Preview > 0) return UiText.F("raid_time_future", new[] { LeftDH(PreviewStart(Preview) - nowL) });
|
||||
return UiText.F("raid_time_main", new[] { LeftDH(mainEnd - nowL), nextMainName });
|
||||
}
|
||||
|
||||
string SubTime(DateTime nowL)
|
||||
{
|
||||
return UiText.F("raid_time_sub", new[] { LeftHMS(subEnd - nowL), nextSubName });
|
||||
}
|
||||
|
||||
/// <summary>교대 남은 시간 다시 씀(RaidClock · 0.5 초마다) · 교대 시각을 넘으면 화면을 다시 그림.</summary>
|
||||
internal void Tick()
|
||||
{
|
||||
if (!Built || Tab != "raid") return;
|
||||
var nowL = S.Now.ToLocalTime();
|
||||
if (nowL >= subEnd || nowL >= mainEnd)
|
||||
{
|
||||
if (screen.Page == 4 && screen.RaidVisible) screen.Refresh();
|
||||
return;
|
||||
}
|
||||
if (mainClock != null)
|
||||
{
|
||||
var s = MainTime(nowL);
|
||||
if (mainClock.text != s) mainClock.text = s;
|
||||
}
|
||||
if (subClock != null)
|
||||
{
|
||||
var s = SubTime(nowL);
|
||||
if (subClock.text != s) subClock.text = s;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------- 부품 ----------
|
||||
|
||||
static readonly Vector2 TopLeft = new Vector2(0f, 1f);
|
||||
const float RoundRadius = 22f; // UiKit.Round 모서리 반지름(px)
|
||||
|
||||
/// <summary>둥근 판(왼쪽 위 기준 · 모서리 반지름 rad = UiKit.Round 9 분할 배율로).</summary>
|
||||
static Image RoundImg(Transform p, string name, float x, float y, float w, float h, Color c, float rad)
|
||||
{
|
||||
var img = UiKit.At(p, name, x, y, w, h).gameObject.AddComponent<Image>();
|
||||
RoundStyle(img, c, rad);
|
||||
return img;
|
||||
}
|
||||
|
||||
static void RoundStyle(Image img, Color c, float rad)
|
||||
{
|
||||
img.sprite = UiKit.Round;
|
||||
img.type = Image.Type.Sliced;
|
||||
img.pixelsPerUnitMultiplier = RoundRadius / Mathf.Max(1f, rad);
|
||||
img.color = c;
|
||||
img.raycastTarget = false;
|
||||
}
|
||||
|
||||
/// <summary>테 두른 둥근 판(바깥 = 테 색 · 안 = 바탕) · 반환 = 바깥(크기를 바꾸면 안도 따라감).</summary>
|
||||
static RectTransform Boxed(Transform p, string name, float x, float y, float w, float h, Color fill, Color border, float bw, float rad, bool raycast)
|
||||
{
|
||||
var outer = RoundImg(p, name, x, y, w, h, border, rad);
|
||||
outer.raycastTarget = raycast;
|
||||
var inner = UiKit.Fill("Fill", outer.transform, bw, bw, bw, bw).gameObject.AddComponent<Image>();
|
||||
RoundStyle(inner, fill, rad - bw);
|
||||
return outer.rectTransform;
|
||||
}
|
||||
|
||||
Text Txt(Transform p, string name, string s, int size, Color c, bool title, bool stroke, TextAnchor a, float x, float y, float w, float h)
|
||||
{
|
||||
var t = UiKit.Label(p, s, size, c, a, TopLeft, TopLeft, new Vector2(x, -y), new Vector2(w, h));
|
||||
if (title) UISkin.UseTitle(t);
|
||||
if (stroke) UISkin.Stroke(t, strokeC, strokeW);
|
||||
t.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
t.raycastTarget = false;
|
||||
t.name = name;
|
||||
texts[name] = t;
|
||||
return t;
|
||||
}
|
||||
|
||||
/// <summary>태그(시안 .tag = 테 · 둥근 · 제목 글꼴) · 반환 = 폭.</summary>
|
||||
float Tag(Transform p, string name, string s, float x, float y, Color bg, Color fg)
|
||||
{
|
||||
var tg = L("tag"); // 위|높이|좌우 여백|테|모서리|글자|태그 사이|테 색
|
||||
return Pill(p, name, s, x, y, At(tg, 1, 42f), At(tg, 2, 14f), At(tg, 3, 4f), At(tg, 4, 12f), (int)At(tg, 5, 26f), bg, fg, Col(tg, 7, Color.black), true);
|
||||
}
|
||||
|
||||
float Pill(Transform p, string name, string s, float x, float y, float h, float pad, float bw, float rad, int fs, Color bg, Color fg, Color border, bool title)
|
||||
{
|
||||
var box = Boxed(p, name, x, y, 10f, h, bg, border, bw, rad, false);
|
||||
var t = Txt(box, name + "Text", s, fs, fg, title, false, TextAnchor.MiddleCenter, 0f, 0f, 10f, h);
|
||||
float w = Mathf.Ceil(t.preferredWidth) + 2f * (pad + bw);
|
||||
box.sizeDelta = new Vector2(w, h);
|
||||
t.rectTransform.sizeDelta = new Vector2(w, h);
|
||||
return w;
|
||||
}
|
||||
|
||||
/// <summary>버튼(표 btn 줄 = id|폭|스킨|틴트|글자색|외곽선|글자 키) · 오른끝 right 에 붙여 놓고 왼끝 x 를 돌려줌.</summary>
|
||||
float Btn(Transform p, string name, string id, float right, float y, float h, Action act, bool on)
|
||||
{
|
||||
string[] row;
|
||||
if (!btns.TryGetValue(id, out row)) row = new string[0];
|
||||
var bt = L("buttons");
|
||||
float w = At(row, 1, 170f);
|
||||
float x = right - w;
|
||||
var b = UiKit.SkinBtn(p, name, Str(row, 2), Col(row, 3, Color.white), "", 10, Color.white, x, y, w, h, act);
|
||||
var bl = b.GetComponentInChildren<Text>();
|
||||
if (bl != null) bl.gameObject.SetActive(false);
|
||||
Txt(b.transform, name + "Text", UiText.T(Str(row, 6)), (int)At(bt, 4, 32f), Col(row, 4, Color.white), true, At(row, 5) > 0f, TextAnchor.MiddleCenter, 0f, -At(bt, 5, 4f), w, h);
|
||||
b.interactable = on;
|
||||
buttons[name] = b;
|
||||
return x;
|
||||
}
|
||||
|
||||
// ---------- 탭 ----------
|
||||
|
||||
void Tabs()
|
||||
{
|
||||
var tb = L("tabs"); // 왼|위|폭|높이|사이|테|모서리|글자|테 색|꺼짐|켜짐|글자색
|
||||
var tabs = All("tab");
|
||||
int n = tabs.Count;
|
||||
if (n == 0) return;
|
||||
float x0 = At(tb, 0, 24f), y = At(tb, 1, 22f), w = At(tb, 2, 1032f), h = At(tb, 3, 78f), gap = At(tb, 4, 18f);
|
||||
float tw = (w - gap * (n - 1)) / n;
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
string act = Str(tabs[i], 0);
|
||||
bool on = act == Tab;
|
||||
var box = Boxed(Info, "Tab_" + act, x0 + i * (tw + gap), y, tw, h, Col(tb, on ? 10 : 9, UiKit.Dark), Col(tb, 8, Color.black), At(tb, 5, 5f), At(tb, 6, 18f), true);
|
||||
Txt(box, "TabText_" + act, UiText.T(Str(tabs[i], 1)), (int)At(tb, 7, 34f), Col(tb, 11, Color.white), true, false, TextAnchor.MiddleCenter, 0f, 0f, tw, h);
|
||||
var b = box.gameObject.AddComponent<Button>();
|
||||
b.targetGraphic = box.GetComponent<Image>();
|
||||
b.transition = Selectable.Transition.None;
|
||||
b.onClick.AddListener(() => PressTab(act));
|
||||
buttons["Tab_" + act] = b;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>탭 누름: raid = 토벌 카드 · rank = 순위 표(서버 모드 · 기기 세이브 = 알림) · shop = 훈장 상점(해금 전 = 알림).</summary>
|
||||
public void PressTab(string act)
|
||||
{
|
||||
switch (act)
|
||||
{
|
||||
case "rank":
|
||||
if (S.RankAvailable) Net.RankPanel.Open(screen.Root, ArenaRules.Raid);
|
||||
else screen.Root.Toast(UiText.T("raid_rank_offline"));
|
||||
return;
|
||||
case "shop":
|
||||
if (Locked)
|
||||
{
|
||||
screen.Root.Toast(UnlockText());
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case "raid":
|
||||
break;
|
||||
default:
|
||||
Debug.LogWarning("[TKS] 맹장 토벌전 탭 연결 없음: " + act);
|
||||
return;
|
||||
}
|
||||
if (Tab == act) return;
|
||||
Tab = act;
|
||||
Rebuild();
|
||||
}
|
||||
|
||||
string UnlockText()
|
||||
{
|
||||
return UiText.F("raid_unlock", new[] { ContentTables.Str(RaidData.Mode, "unlock_stage") });
|
||||
}
|
||||
|
||||
// ---------- 넘김(메인 맹장 미리 보기) ----------
|
||||
|
||||
public void NextBoss()
|
||||
{
|
||||
Preview++;
|
||||
Rebuild();
|
||||
}
|
||||
|
||||
public void PrevBoss()
|
||||
{
|
||||
Preview--;
|
||||
Rebuild();
|
||||
}
|
||||
|
||||
// ---------- 카드 ----------
|
||||
|
||||
void Card(string slot, RaidData.Boss b, float top, int preview, int bossCount)
|
||||
{
|
||||
bool isMain = slot == RaidData.Main;
|
||||
var cd = L("card"); // 왼|첫 카드 위|폭|높이|카드 사이|테|모서리|테 색|바탕
|
||||
float x = At(cd, 0, 24f), w = At(cd, 2, 1032f), h = At(cd, 3, 640f), bw = At(cd, 5, 8f), rad = At(cd, 6, 30f);
|
||||
float iw = w - 2f * bw, ih = h - 2f * bw;
|
||||
|
||||
// 그림(Static): 테 → 안쪽(둥근 마스크) → 배너 → 왼쪽 어둡게
|
||||
var frame = RoundImg(Art, "Card_" + slot, x, top, w, h, Col(cd, 7, Color.black), rad);
|
||||
var inner = RoundImg(frame.transform, "Inner", bw, bw, iw, ih, Col(cd, 8, UiKit.Dark), rad - bw);
|
||||
inner.gameObject.AddComponent<Mask>().showMaskGraphic = true;
|
||||
var sp = Banner(b.id);
|
||||
if (sp != null)
|
||||
{
|
||||
var bi = UiKit.At(inner.transform, "Banner_" + b.id, 0f, 0f, iw, ih).gameObject.AddComponent<Image>();
|
||||
bi.sprite = sp;
|
||||
bi.raycastTarget = false; // 해금 전도 평소 그림(어둡게 = 화면 위 잠김 덮개 LockOverlay)
|
||||
}
|
||||
var sh = L("shade");
|
||||
var si = UiKit.At(inner.transform, "Shade", 0f, 0f, At(sh, 0, 560f), ih).gameObject.AddComponent<Image>();
|
||||
si.sprite = FadeH;
|
||||
si.color = Col(sh, 1, new Color(0.08f, 0.04f, 0.08f, 0.72f));
|
||||
si.raycastTarget = false;
|
||||
|
||||
// 값(Event) — 카드 안쪽 왼쪽 위 기준 · 카드 누름 = 상세 정보
|
||||
var box = UiKit.At(Info, "CardInfo_" + slot, x + bw, top + bw, iw, ih);
|
||||
var press = box.gameObject.AddComponent<Image>();
|
||||
press.color = new Color(1f, 1f, 1f, 0f);
|
||||
press.canvasRenderer.cullTransparentMesh = true; // 누름만 · 그리지 않음
|
||||
press.raycastTarget = true;
|
||||
var pb = box.gameObject.AddComponent<Button>();
|
||||
pb.transition = Selectable.Transition.None;
|
||||
string detailSlot = preview == 0 ? slot : null;
|
||||
pb.onClick.AddListener(() => Detail(b, detailSlot));
|
||||
var clk = UiKit.At(Clock, "CardClock_" + slot, x + bw, top + bw, iw, ih);
|
||||
|
||||
float ix = F(S_("info_x"), 70f);
|
||||
var tg = L("tag");
|
||||
float tx = ix, ty = At(tg, 0, 30f);
|
||||
if (isMain)
|
||||
{
|
||||
var tc = L(preview == 0 ? "tag_main" : "tag_future");
|
||||
tx += Tag(box, "Tag_" + slot, UiText.F(preview == 0 ? "raid_tag_main" : "raid_tag_future", new[] { preview.ToString(CultureInfo.InvariantCulture) }), tx, ty, Col(tc, 0, UiKit.Purple), Col(tc, 1, Color.white)) + At(tg, 6, 10f);
|
||||
float mult = RaidData.ScoreMult(slot);
|
||||
if (mult > 1.0001f)
|
||||
{
|
||||
var bc = L("tag_bonus");
|
||||
Tag(box, "Bonus_" + slot, UiText.F("raid_tag_bonus", new[] { Pct(mult) }), tx, ty, Col(bc, 0, UiKit.Coin), Col(bc, 1, UiKit.Ink));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var tc = L("tag_sub");
|
||||
Tag(box, "Tag_" + slot, UiText.T("raid_tag_sub"), tx, ty, Col(tc, 0, UiKit.Dark), Col(tc, 1, Color.white));
|
||||
}
|
||||
|
||||
// 이름 · 칭호 · 군령
|
||||
var nm = L("name"); // 위|글자|줄 높이|이름 색
|
||||
string name = "<color=" + Str(nm, 3) + ">" + b.nameKo + "</color>";
|
||||
Txt(box, "Name_" + slot, UiText.F("raid_name", new[] { name }), (int)At(nm, 1, 84f), Color.white, true, true, TextAnchor.MiddleLeft, ix, At(nm, 0, 78f), iw - ix, At(nm, 2, 105f));
|
||||
var ti = L("title");
|
||||
Txt(box, "Title_" + slot, b.titleKo, (int)At(ti, 1, 32f), Col(ti, 3, UiKit.Coin), true, false, TextAnchor.MiddleLeft, ix, At(ti, 0, 183f), iw - ix, At(ti, 2, 40f));
|
||||
var od = L("order"); // 위|칩 높이|칩 글자|군령 글자|칩 뒤 간격|칩 모서리|칩 테|칩 색|칩 글자색
|
||||
float oy = At(od, 0, 235f), oh = At(od, 1, 38f);
|
||||
float cw = Pill(box, "OrderChip_" + slot, UiText.T("raid_order_chip"), ix, oy, oh, At(tg, 2, 14f), At(od, 6, 4f), At(od, 5, 8f), (int)At(od, 2, 23f), Col(od, 7, UiKit.Coin), Col(od, 8, UiKit.Ink), Col(tg, 7, Color.black), true);
|
||||
Txt(box, "Order_" + slot, b.orderBuffKo, (int)At(od, 3, 30f), Color.white, true, true, TextAnchor.MiddleLeft, ix + cw + At(od, 4, 10f), oy, iw, oh);
|
||||
|
||||
// 교대(Clock 층 · 1초마다)
|
||||
var tm = L("time"); // 위|글자|줄 높이|색
|
||||
var clock = Txt(clk, "Time_" + slot, "", (int)At(tm, 1, 27f), Col(tm, 3, Color.white), true, true, TextAnchor.MiddleLeft, ix, At(tm, 0, 283f), iw - ix, At(tm, 2, 34f));
|
||||
if (isMain) mainClock = clock;
|
||||
else subClock = clock;
|
||||
|
||||
if (isMain)
|
||||
{
|
||||
Tiles(box, b, ix);
|
||||
if (preview == 0) Record(box, ix);
|
||||
if (bossCount > 1) Arrows(box, iw);
|
||||
}
|
||||
else
|
||||
{
|
||||
var sn = L("sub_note"); // 위|글자|줄 높이|색
|
||||
float mult = RaidData.ScoreMult(slot);
|
||||
string note = mult > 1.0001f ? UiText.F("raid_sub_bonus", new[] { Pct(mult) }) : UiText.T("raid_sub_no_bonus");
|
||||
Txt(box, "Note_" + slot, note, (int)At(sn, 1, 25f), Col(sn, 3, UiKit.InkSoft), true, true, TextAnchor.MiddleLeft, ix, At(sn, 0, 323f), iw - ix, At(sn, 2, 31f));
|
||||
}
|
||||
CardButtons(box, slot, b, preview, iw, ih);
|
||||
CardCount++;
|
||||
}
|
||||
|
||||
/// <summary>맹장 · 패턴 · 약점 칸 3(시안 tile · 열 폭 = max(칸 · 이름 폭)).</summary>
|
||||
void Tiles(RectTransform box, RaidData.Boss b, float ix)
|
||||
{
|
||||
var tl = L("tiles"); // 위|칸|모서리|테|칸 사이|이름 글자|이름 틈|이름 줄|테 색|이름 색
|
||||
float top = At(tl, 0, 331f), sz = At(tl, 1, 90f), rad = At(tl, 2, 18f), bw = At(tl, 3, 5f), gap = At(tl, 4, 16f);
|
||||
float lgap = At(tl, 6, 4f), lline = At(tl, 7, 26f);
|
||||
int lfs = (int)At(tl, 5, 21f);
|
||||
string[] row;
|
||||
bosses.TryGetValue(b.id, out row);
|
||||
var tb = L("tile_boss");
|
||||
var tp = L("tile_pattern");
|
||||
var tw = L("tile_weak");
|
||||
var items = new[]
|
||||
{
|
||||
new KeyValuePair<string, object[]>("boss", new object[] { Col(tb, 0, UiKit.Dark), UiKit.ArtSprite(b.art), At(tb, 1, 140f), UiText.T("raid_tile_boss") }),
|
||||
new KeyValuePair<string, object[]>("pattern", new object[] { Col(tp, 0, UiKit.Red), IconSprite(Str(row, 1)), At(tp, 1, 70f), UiText.T("raid_pat_" + b.id) }),
|
||||
new KeyValuePair<string, object[]>("weak", new object[] { Col(tw, 0, UiKit.Jade), IconSprite(Str(row, 2)), At(row, 3, At(tw, 1, 70f)), UiText.T("raid_weak_" + b.id) }),
|
||||
};
|
||||
float cx = ix;
|
||||
foreach (var it in items)
|
||||
{
|
||||
var v = it.Value;
|
||||
var lab = Txt(box, "TileText_" + it.Key, (string)v[3], lfs, Col(tl, 9, Color.white), false, false, TextAnchor.MiddleCenter, cx, top + sz + lgap, 10f, lline);
|
||||
float colW = Mathf.Max(sz, Mathf.Ceil(lab.preferredWidth));
|
||||
lab.rectTransform.sizeDelta = new Vector2(colW, lline);
|
||||
var cell = Boxed(box, "Tile_" + it.Key, cx + (colW - sz) * 0.5f, top, sz, sz, (Color)v[0], Col(tl, 8, Color.black), bw, rad, false);
|
||||
var fill = cell.Find("Fill");
|
||||
fill.gameObject.AddComponent<Mask>().showMaskGraphic = true;
|
||||
var sp = v[1] as Sprite;
|
||||
if (sp != null)
|
||||
{
|
||||
float imgW = (float)v[2];
|
||||
var r = sp.rect;
|
||||
var img = UiKit.Rect("Img", fill, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(imgW, imgW * r.height / Mathf.Max(1f, r.width))).gameObject.AddComponent<Image>();
|
||||
img.sprite = sp;
|
||||
img.raycastTarget = false;
|
||||
}
|
||||
cx += colW + gap;
|
||||
TileCount++;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>오늘 기록 칩(시안 .chip) — 게임 세이브에 하루 기록이 없어 표 example_record · 점수 = 기록 × 메인 배율.</summary>
|
||||
void Record(RectTransform box, float ix)
|
||||
{
|
||||
var rc = L("record"); // 위|높이|테|모서리|글자|좌우 여백|테 색|바탕
|
||||
long rec = (long)F(S_("example_record"));
|
||||
long score = (long)Math.Floor(rec * RaidData.ScoreMult(RaidData.Main) + 1e-6);
|
||||
Pill(box, "Record", UiText.F("raid_record", new[] { N(rec), N(score) }), ix, At(rc, 0, 463f), At(rc, 1, 50f), At(rc, 5, 18f), At(rc, 2, 4f), At(rc, 3, 25f), (int)At(rc, 4, 26f), Col(rc, 7, UiKit.Dark), Color.white, Col(rc, 6, Color.black), false);
|
||||
}
|
||||
|
||||
void Arrows(RectTransform box, float iw)
|
||||
{
|
||||
var ar = L("arrows"); // 가장자리|위|지름|바탕|왼 아이콘|오른 아이콘|아이콘 크기|왼 회전|오른 회전|왼 x 밀기|오른 x 밀기
|
||||
float edge = At(ar, 0, 10f), y = At(ar, 1, 286f), dd = At(ar, 2, 56f), isz = At(ar, 6, 30f);
|
||||
for (int s = 0; s < 2; s++)
|
||||
{
|
||||
bool left = s == 0;
|
||||
var rt = UiKit.At(box, left ? "Prev" : "Next", left ? edge : iw - edge - dd, y, dd, dd);
|
||||
var img = rt.gameObject.AddComponent<Image>();
|
||||
img.sprite = UiKit.Circle;
|
||||
img.color = Col(ar, 3, new Color(0.08f, 0.09f, 0.16f, 0.8f));
|
||||
img.raycastTarget = true;
|
||||
// 채운 삼각형(시안 ◀ ▶) = 테마 아이콘을 표의 각도만큼 돌림(팩 아래 삼각형 arrow_down · QA M 2026-11-18)
|
||||
var ic = UISkin.IconImage(rt, Str(ar, left ? 4 : 5), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(At(ar, left ? 9 : 10, 0f), 0f), new Vector2(isz, isz));
|
||||
if (ic != null) ic.rectTransform.localEulerAngles = new Vector3(0f, 0f, At(ar, left ? 7 : 8, 0f));
|
||||
else Txt(rt, left ? "PrevText" : "NextText", left ? "◀" : "▶", (int)isz, Color.white, true, false, TextAnchor.MiddleCenter, 0f, 0f, dd, dd);
|
||||
var b = rt.gameObject.AddComponent<Button>();
|
||||
b.targetGraphic = img;
|
||||
if (left) b.onClick.AddListener(PrevBoss);
|
||||
else b.onClick.AddListener(NextBoss);
|
||||
buttons[left ? "Prev" : "Next"] = b;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>카드 버튼 줄(오른쪽 아래 · 표 main_buttons / sub_buttons) — go = 오늘 도전 가능 · 다 씀(도전함) · 못 함(누르면 이유) · 잠김 · 미리 보기 = 상세 정보만.</summary>
|
||||
void CardButtons(RectTransform box, string slot, RaidData.Boss b, int preview, float iw, float ih)
|
||||
{
|
||||
var bt = L("buttons"); // 오른 여백|아래 여백|높이|사이|글자|글자 위로
|
||||
float h = At(bt, 2, 76f), y = ih - At(bt, 1, 20f) - h, gap = At(bt, 3, 12f);
|
||||
var ids = preview > 0 ? new[] { "detail" } : L(slot == RaidData.Main ? "main_buttons" : "sub_buttons");
|
||||
var d = S.Save;
|
||||
var now = S.Now;
|
||||
float right = iw - At(bt, 0, 22f);
|
||||
for (int i = ids.Length - 1; i >= 0; i--)
|
||||
{
|
||||
string id = ids[i].Trim();
|
||||
switch (id)
|
||||
{
|
||||
case "detail":
|
||||
right = Btn(box, "Detail_" + slot, "detail", right, y, h, () => Detail(b, preview == 0 ? slot : null), true);
|
||||
break;
|
||||
case "practice":
|
||||
right = Btn(box, "Practice_" + slot, "practice", right, y, h, () => screen.RaidGo(slot, true), true);
|
||||
break;
|
||||
case "go":
|
||||
{
|
||||
string why = RaidRules.Can(d, slot, false, now);
|
||||
int used = RaidRules.Used(d, slot, now), limit = RaidData.EntryLimit(slot);
|
||||
if (Locked) right = Btn(box, "Go_" + slot, "locked", right, y, h, null, false);
|
||||
else if (why == null) right = Btn(box, "Go_" + slot, "go", right, y, h, () => screen.RaidGo(slot, false), true);
|
||||
else if (limit > 0 && used >= limit) right = Btn(box, "Go_" + slot, "done", right, y, h, null, false);
|
||||
else right = Btn(box, "Go_" + slot, "go_off", right, y, h, () => screen.Root.Toast(why), true);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
right -= gap;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>상세 정보 창 = 군령 · 패턴 · 빈틈(게임 표 raid_rotation) · 이번 맹장이면 연습 버튼(메인 연습 = 여기).</summary>
|
||||
public void Detail(RaidData.Boss b, string slot)
|
||||
{
|
||||
if (b == null) return;
|
||||
LastDetail = b.id;
|
||||
var body = string.Join("\n\n", new[]
|
||||
{
|
||||
UiText.F("raid_detail_order", new[] { b.orderBuffKo }),
|
||||
UiText.F("raid_detail_pattern", new[] { b.patternKo }),
|
||||
UiText.F("raid_detail_weak", new[] { b.weakKo }),
|
||||
});
|
||||
var list = new List<OutGameRoot.ModalButton>();
|
||||
if (slot != null && !Locked) list.Add(new OutGameRoot.ModalButton(UiText.T("raid_practice"), UiKit.Red, () => screen.RaidGo(slot, true)));
|
||||
list.Add(new OutGameRoot.ModalButton(UiText.T("raid_close"), UiKit.Dark, null));
|
||||
screen.Root.Modal(UiText.F("raid_detail_title", new[] { b.nameKo }), body, list.ToArray());
|
||||
}
|
||||
|
||||
// ---------- 주간 점수 띠 ----------
|
||||
|
||||
void Strip(SaveData d)
|
||||
{
|
||||
var sp = L("strip"); // 왼|위|폭|높이|테|모서리|안쪽 여백|테 색|바탕
|
||||
float x = At(sp, 0, 24f), y = At(sp, 1, 1420f), w = At(sp, 2, 1032f), h = At(sp, 3, 104f), bw = At(sp, 4, 5f), rad = At(sp, 5, 26f), pad = At(sp, 6, 22f);
|
||||
Boxed(Art, "Strip", x, y, w, h, Col(sp, 8, UiKit.Dark), Col(sp, 7, Color.black), bw, rad, false);
|
||||
var box = UiKit.At(Info, "StripInfo", x, y, w, h);
|
||||
if (S.RankAvailable) // 서버 모드 = 띠를 누르면 순위 표
|
||||
{
|
||||
var pi = box.gameObject.AddComponent<Image>();
|
||||
pi.color = new Color(1f, 1f, 1f, 0f);
|
||||
pi.canvasRenderer.cullTransparentMesh = true;
|
||||
pi.raycastTarget = true;
|
||||
var pb = box.gameObject.AddComponent<Button>();
|
||||
pb.transition = Selectable.Transition.None;
|
||||
pb.onClick.AddListener(() => Net.RankPanel.Open(screen.Root, ArenaRules.Raid));
|
||||
}
|
||||
var rs = d.raid;
|
||||
var sl = L("strip_left"); // 위|이름 글자|이름 줄|이름 색|점수 글자|점수 줄|점수 색
|
||||
float ly = At(sl, 0, 14f), ll = At(sl, 2, 26f);
|
||||
Txt(box, "ScoreLabel", UiText.T("raid_score_label"), (int)At(sl, 1, 21f), Col(sl, 3, UiKit.InkSoft), false, false, TextAnchor.MiddleLeft, pad, ly, w * 0.5f, ll);
|
||||
Txt(box, "Score", N(rs.score), (int)At(sl, 4, 40f), Col(sl, 6, UiKit.Coin), true, false, TextAnchor.MiddleLeft, pad, ly + ll, w * 0.5f, At(sl, 5, 50f));
|
||||
|
||||
// 누적 단계 상자(오른쪽 끝) · 누르면 단계 창
|
||||
var ch = L("strip_chest"); // 칸|모서리|테|테 색|바탕|아이콘|아이콘 id
|
||||
float cs = At(ch, 0, 76f);
|
||||
float cx = w - pad - cs;
|
||||
var cb = Boxed(box, "Chest", cx, (h - cs) * 0.5f, cs, cs, Col(ch, 4, UiKit.Dark), Col(ch, 3, Color.black), At(ch, 2, 4f), At(ch, 1, 18f), true);
|
||||
UISkin.IconImage(cb, Str(ch, 6), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(At(ch, 5, 54f), At(ch, 5, 54f)));
|
||||
var chb = cb.gameObject.AddComponent<Button>();
|
||||
chb.targetGraphic = cb.GetComponent<Image>();
|
||||
chb.onClick.AddListener(Steps);
|
||||
buttons["Chest"] = chb;
|
||||
|
||||
// 순위 · 상위 % · 내역(오른쪽 맞춤)
|
||||
var sr = L("strip_right"); // 상자 앞 간격|순위 가운데 y|순위 글자|상위 % 글자|상위 % 색|내역 가운데 y|내역 글자|내역 색
|
||||
float rx = cx - At(sr, 0, 16f);
|
||||
string rank, top;
|
||||
if (rs.serverView && rs.rank > 0)
|
||||
{
|
||||
rank = N(rs.rank);
|
||||
top = N(Mathf.Max(1, Mathf.CeilToInt(rs.rank * 100f / Mathf.Max(1, rs.rankTotal))));
|
||||
}
|
||||
else
|
||||
{
|
||||
var ex = L("example_rank"); // 서버 순위가 없음 = 시안 예시 값
|
||||
rank = Str(ex, 0);
|
||||
top = Str(ex, 1);
|
||||
}
|
||||
int rfs = (int)At(sr, 2, 34f);
|
||||
string line = UiText.F("raid_rank", new[] { rank }) + " <size=" + (int)At(sr, 3, 24f) + "><color=" + Str(sr, 4) + ">" + UiText.F("raid_top", new[] { top }) + "</color></size>";
|
||||
float rl = rfs * 1.3f;
|
||||
Txt(box, "Rank", line, rfs, Color.white, true, false, TextAnchor.MiddleRight, rx - w * 0.6f, At(sr, 1, 37f) - rl * 0.5f, w * 0.6f, rl);
|
||||
int dfs = (int)At(sr, 6, 20f);
|
||||
float dl = dfs * 1.4f;
|
||||
string mult = RaidData.ScoreMult(RaidData.Main).ToString("0.##", CultureInfo.InvariantCulture);
|
||||
Txt(box, "Breakdown", UiText.F("raid_breakdown", new[] { N(rs.mainDamage), mult, N(rs.subDamage) }), dfs, Col(sr, 7, UiKit.InkSoft), false, false, TextAnchor.MiddleRight, rx - w * 0.6f, At(sr, 5, 73f) - dl * 0.5f, w * 0.6f, dl);
|
||||
}
|
||||
|
||||
/// <summary>누적 피해 단계 창(게임 표 raid_rewards milestone · 받은 단계 = 세이브 milestones).</summary>
|
||||
public void Steps()
|
||||
{
|
||||
var d = S.Save;
|
||||
var db = S.Db;
|
||||
var lines = new List<string> { UiText.F("raid_steps_score", new[] { N(d.raid.score) }) };
|
||||
foreach (var r in ContentTables.Rows(RaidData.Rewards))
|
||||
{
|
||||
if (r.S("e_kind") != "milestone") continue;
|
||||
bool got = d.raid.milestones.Contains(r.I("n_step"));
|
||||
lines.Add(UiText.F(got ? "raid_step_on" : "raid_step_off", new[] { r.S("s_band_ko"), N(r.I("n_score_min")), Prize(r, db) }));
|
||||
}
|
||||
screen.Root.Modal(UiText.T("raid_steps_title"), string.Join("\n", lines.ToArray()), new OutGameRoot.ModalButton(UiText.T("raid_close"), UiKit.Dark, null));
|
||||
}
|
||||
|
||||
static string Prize(ContentRow r, OutGameData db)
|
||||
{
|
||||
var got = new List<string>();
|
||||
int gem = r.I("n_gem"), coin = r.I("n_raid_coin");
|
||||
if (gem > 0) got.Add(UiText.F("raid_rw_gem", new[] { N(gem) }));
|
||||
if (coin > 0) got.Add(UiText.F("raid_rw_coin", new[] { N(coin) }));
|
||||
foreach (var kvp in ContentTables.ParseMap(r.S("s_chest")))
|
||||
{
|
||||
var c = db.Chests.Get(kvp.Key);
|
||||
got.Add(UiText.F("raid_rw_chest", new[] { c != null ? c.nameKo : kvp.Key, N(Mathf.RoundToInt(kvp.Value)) }));
|
||||
}
|
||||
return string.Join(" · ", got.ToArray());
|
||||
}
|
||||
|
||||
// ---------- 훈장 상점 탭(시안 없음 · 점수 띠와 같은 판) ----------
|
||||
|
||||
void Shop(SaveData d, DateTime now)
|
||||
{
|
||||
var rows = ContentTables.Rows(RaidData.Shop);
|
||||
var sh = L("shop"); // 위|머리 높이|줄 높이|아이템 칸|이름 글자|작은 글자|안쪽 여백|줄 사이
|
||||
var sp = L("strip");
|
||||
var sr = L("shop_row"); // 바탕|모서리|구매 버튼 폭|높이
|
||||
var ci = L("coin_icon"); // 아이콘|머리 크기|가격 크기
|
||||
float x = At(sp, 0, 24f), w = At(sp, 2, 1032f), top = At(sh, 0, 114f), headH = At(sh, 1, 96f), rowH = At(sh, 2, 176f), tile = At(sh, 3, 116f), pad = At(sh, 6, 16f), rg = At(sh, 7, 12f);
|
||||
int nfs = (int)At(sh, 4, 30f), sfs = (int)At(sh, 5, 22f);
|
||||
float H = headH + rows.Count * rowH + pad;
|
||||
Boxed(Art, "ShopPanel", x, top, w, H, Col(sp, 8, UiKit.Dark), Col(sp, 7, Color.black), At(sp, 4, 5f), At(sp, 5, 26f), false);
|
||||
var box = UiKit.At(Info, "Shop", x, top, w, H);
|
||||
float hs = At(ci, 1, 56f);
|
||||
UISkin.IconImage(box, Str(ci, 0), TopLeft, new Vector2(0f, 0.5f), new Vector2(pad + 12f, -headH * 0.5f), new Vector2(hs, hs));
|
||||
Txt(box, "Coins", UiText.F("raid_shop_coins", new[] { N(d.raid.coins) }), nfs + 2, Color.white, true, true, TextAnchor.MiddleLeft, pad + 24f + hs, 0f, w * 0.7f, headH);
|
||||
float bw = At(sr, 2, 200f), bh = At(sr, 3, 80f);
|
||||
var shopIcons = new Dictionary<string, string>();
|
||||
foreach (var p in L("shop_icons"))
|
||||
{
|
||||
var kvp = p.Split(':');
|
||||
if (kvp.Length == 2) shopIcons[kvp[0].Trim()] = kvp[1].Trim();
|
||||
}
|
||||
for (int i = 0; i < rows.Count; i++)
|
||||
{
|
||||
var r = rows[i];
|
||||
string item = r.S("s_item"), pick = r.S("e_pick");
|
||||
int bought = RaidRules.Bought(d, item, now), limit = r.I("n_weekly_limit");
|
||||
float ry = headH + i * rowH, rh = rowH - rg;
|
||||
RoundImg(Art, "ShopRow_" + item, x + pad, top + ry, w - 2f * pad, rh, Col(sr, 0, UiKit.Dark), At(sr, 1, 20f));
|
||||
string ic;
|
||||
shopIcons.TryGetValue(item, out ic);
|
||||
UiKit.RewardTile(box, "Item_" + item, pad + 20f, ry + (rh - tile) * 0.5f, tile, "gear_white_", ic ?? "", "×" + r.I("n_amount").ToString(CultureInfo.InvariantCulture), false);
|
||||
float tx = pad + 20f + tile + 28f;
|
||||
Txt(box, "ItemName_" + item, r.S("s_name_ko"), nfs, Color.white, true, true, TextAnchor.MiddleLeft, tx, ry + rh * 0.5f - nfs * 1.3f, w * 0.45f, nfs * 1.3f);
|
||||
Txt(box, "ItemLimit_" + item, UiText.F("raid_shop_limit", new[] { N(bought), N(limit) }), sfs, Col(L("strip_right"), 7, UiKit.InkSoft), false, false, TextAnchor.MiddleLeft, tx, ry + rh * 0.5f + 4f, w * 0.45f, sfs * 1.4f);
|
||||
// 가격(훈장 아이콘 + 수) · 구매(기존 처리 RaidBuyPick)
|
||||
float right = w - pad - 20f;
|
||||
bool can = bought < limit;
|
||||
string pk = pick;
|
||||
float bx = Btn(box, "Buy_" + item, can ? "buy" : "soldout", right, ry + (rh - bh) * 0.5f, bh, () => screen.RaidBuyPick(item, pk), can);
|
||||
float ps = At(ci, 2, 40f);
|
||||
var price = Txt(box, "ItemPrice_" + item, N(r.I("n_price")), nfs, UiKit.Col("coin", UiKit.Coin), true, true, TextAnchor.MiddleRight, bx - 24f - 200f, ry + (rh - nfs * 1.3f) * 0.5f, 200f, nfs * 1.3f);
|
||||
UISkin.IconImage(box, Str(ci, 0), TopLeft, new Vector2(1f, 0.5f), new Vector2(bx - 24f - Mathf.Ceil(price.preferredWidth) - 8f, -(ry + rh * 0.5f)), new Vector2(ps, ps));
|
||||
ShopRows++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>맹장 토벌전 교대 남은 시간(1초 단위 글자 · Clock 층 = Frame) — 0.5 초마다 ArenaRaid.Tick.</summary>
|
||||
public class RaidClock : MonoBehaviour
|
||||
{
|
||||
public ArenaRaid owner;
|
||||
float next;
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (owner == null || Time.unscaledTime < next) return;
|
||||
next = Time.unscaledTime + 0.5f;
|
||||
owner.Tick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 549fe75d428338b4cb2520bbad792aef
|
||||
|
|
@ -76,6 +76,11 @@ namespace TKS.OutGame
|
|||
tk = supply.S_("title_key");
|
||||
subText = supply.Subtitle; // 부제 = 던전 수 자리
|
||||
}
|
||||
if (page == 4 && RaidVisible)
|
||||
{
|
||||
tk = raid.S_("title_key");
|
||||
subText = raid.Subtitle; // 부제 = 메인 점수 보너스 % 자리
|
||||
}
|
||||
bool on = tk != null;
|
||||
string t = on ? UiText.T(tk) : headerTitle0;
|
||||
string sub = subText ?? (on ? UiText.T(sk) : headerSub0);
|
||||
|
|
@ -87,12 +92,19 @@ namespace TKS.OutGame
|
|||
headerSubText.rectTransform.anchoredPosition = new Vector2(headerTitleText.rectTransform.anchoredPosition.x + headerTitleText.preferredWidth + headerSubGap, p.y);
|
||||
}
|
||||
|
||||
/// <summary>투기장 쪽 = 아트 화면을 켜고 값을 다시 채움 · 잠김 · 표 없음 · 배경 없음 = false(호출 쪽 = 더미 UI).</summary>
|
||||
/// <summary>
|
||||
/// 투기장 쪽 = 아트 화면을 켜고 값을 다시 채움 · 해금 전 = 같은 화면 + 잠김 덮개(LockOverlay · PD 2026-11-18 「잠겨진 컨텐츠도 잠겨진 상태로 화면이 보여져야」) ·
|
||||
/// 표 없음 · 배경 없음 = false(호출 쪽 = 더미 UI).
|
||||
/// </summary>
|
||||
bool ShowLeagueView()
|
||||
{
|
||||
if (league == null || leagueSlot == null || !LeagueRules.Unlocked(S.Save)) return false;
|
||||
if (league == null || leagueSlot == null) return false;
|
||||
leagueSlot.gameObject.SetActive(true);
|
||||
if (league.Show(leagueSlot)) return true;
|
||||
if (league.Show(leagueSlot))
|
||||
{
|
||||
LockOverlay.Apply(leagueSlot, !LeagueRules.Unlocked(S.Save), LeagueRules.UnlockStage, BattleConfig); // 잠김 = 연무장에서 막음(SetPage · PD 2026-11-19) · 덮개 = 페이지에 있는 동안 잠긴 때만(방어)
|
||||
return true;
|
||||
}
|
||||
leagueSlot.gameObject.SetActive(false); // 배경 그림 없음 = 더미 UI(다시 시도하지 않음)
|
||||
league = null;
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -8,11 +8,51 @@ namespace TKS.OutGame
|
|||
/// 맹장 토벌전 화면(컨텐츠 모드 기획 10판 ③ · 2026-11-18) — **더미 UI**(개발 요청서 §G): 메인 맹장 전용 배너 자리 · 서브 띠 · 기록 도전 · 연습 · 주간 점수 · 누적 단계 · 훈장 상점.
|
||||
/// 배너 그림 = `Resources/ContentModes/Art/<아트 목록 id>`(raid_banner_<맹장> · 여포 = 지금 픽업 배너 사본) — 파일이 없으면 색 판 + 유닛 그림 + 글자.
|
||||
/// 그림이 납품되면 같은 이름의 파일만 넣으면 바뀐다.
|
||||
/// 표 Resources/UI/Raid 가 있으면 확정 아트 화면(ArenaRaid · PD 2026-11-18 「맹장 토벌전 메뉴가 제대로 보여지지 않고 있어 … 정상적으로 게임에서 확인할 수 있도록 반영해줘」 · 시안 mock_raid.png) — 더미는 표·배너가 없을 때만.
|
||||
/// </summary>
|
||||
public partial class ArenaScreen
|
||||
{
|
||||
public const string ContentArtRoot = "ContentModes/Art/";
|
||||
|
||||
ArenaRaid raid; // 확정 아트 화면(표 Resources/UI/Raid · 없으면 null = 더미 UI)
|
||||
RectTransform raidSlot;
|
||||
|
||||
/// <summary>맹장 토벌전 아트 화면(없으면 null · 테스트).</summary>
|
||||
public ArenaRaid Raid
|
||||
{
|
||||
get { return raid; }
|
||||
}
|
||||
|
||||
/// <summary>지금 맹장 토벌전 아트 화면이 보이는가(테스트).</summary>
|
||||
public bool RaidVisible
|
||||
{
|
||||
get { return raid != null && raid.Built && raidSlot != null && raidSlot.gameObject.activeInHierarchy; }
|
||||
}
|
||||
|
||||
/// <summary>Build 에서 제목 띠보다 먼저(화면 전체 · 제목 띠 · 본문 뒤) — 표만 읽음(그림은 처음 열 때).</summary>
|
||||
void LoadRaidView()
|
||||
{
|
||||
raid = ArenaRaid.Load(this);
|
||||
if (raid == null) return;
|
||||
raidSlot = UiKit.Fill("Raid", Rt);
|
||||
raidSlot.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
/// <summary>맹장 토벌전 쪽 = 아트 화면을 켜고 다시 채움 · 해금 전 = 같은 화면 + 잠김 덮개(LockOverlay) · 표 없음 · 배너 없음 = false(호출 쪽 = 더미 UI).</summary>
|
||||
bool ShowRaidView()
|
||||
{
|
||||
if (raid == null || raidSlot == null) return false;
|
||||
raidSlot.gameObject.SetActive(true);
|
||||
if (raid.Show(raidSlot))
|
||||
{
|
||||
LockOverlay.Apply(raidSlot, raid.Locked, RaidRules.UnlockStage, BattleConfig); // 잠김 = 연무장에서 막음(SetPage · PD 2026-11-19) · 덮개 = 페이지에 있는 동안 잠긴 때만(방어)
|
||||
return true;
|
||||
}
|
||||
raidSlot.gameObject.SetActive(false); // 배너 그림 없음 = 더미 UI(다시 시도하지 않음)
|
||||
raid = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
void BuildRaid2()
|
||||
{
|
||||
ContentTables.Reload();
|
||||
|
|
@ -125,8 +165,8 @@ namespace TKS.OutGame
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>고르는 물품(owned_choice) = 보유 중에서 고른다 — 더미: 보유 목록 앞쪽 4개를 버튼으로.</summary>
|
||||
void RaidBuyPick(string item, string pick)
|
||||
/// <summary>고르는 물품(owned_choice) = 보유 중에서 고른다 — 더미: 보유 목록 앞쪽 4개를 버튼으로(아트 화면 상점 구매도 이것).</summary>
|
||||
internal void RaidBuyPick(string item, string pick)
|
||||
{
|
||||
if (pick != "owned_choice")
|
||||
{
|
||||
|
|
@ -170,7 +210,8 @@ namespace TKS.OutGame
|
|||
});
|
||||
}
|
||||
|
||||
void RaidGo(string slot, bool practice)
|
||||
/// <summary>메인 · 서브 맹장 기록 도전 · 연습(입장 → 전투 시작 · 아트 화면 버튼도 이것).</summary>
|
||||
internal void RaidGo(string slot, bool practice)
|
||||
{
|
||||
var d = S.Save;
|
||||
string bossId = RaidRules.BossOf(d, slot, S.Now);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace TKS.OutGame
|
|||
else if (!ShowSupplyView()) BuildSupplyList();
|
||||
}
|
||||
|
||||
/// <summary>던전 목록 = 아트 목록(표 · 배너가 있으면) · 없으면 false(더미 목록).</summary>
|
||||
/// <summary>던전 목록 = 아트 목록(표 · 배너가 있으면 · 페이지는 늘 열림 · 잠긴 던전 = 그 카드만 잠김 판 LockOverlay.ApplyCard · PD 2026-11-19) · 없으면 false(더미 목록).</summary>
|
||||
bool ShowSupplyView()
|
||||
{
|
||||
if (supply == null || supplySlot == null) return false;
|
||||
|
|
@ -83,14 +83,15 @@ namespace TKS.OutGame
|
|||
string head = "오늘 = " + DayKo(SupplyRules.Weekday(now)) + "요일 · 오늘 완료 " + done + " / " + open + (s.doneBonus && s.doneDay == EconomyRules.DayKey(now) ? " (보너스 받음)" : "") +
|
||||
" · 주간 도장 " + stampDays + " / " + stampNeed + (s.stampClaimed ? " (받음)" : "");
|
||||
UiKit.Label(root, head, 30, UiKit.InkSoft, TextAnchor.MiddleCenter, new Vector2(0.5f, 1f), new Vector2(0.5f, 1f), new Vector2(0f, -116f), new Vector2(1032f, 50f), false);
|
||||
if (!SupplyRules.Unlocked(d))
|
||||
UiKit.Label(root, ContentTables.Str(SupplyData.Mode, "unlock_stage") + " 클리어 뒤 열립니다", 34, UiKit.Red, TextAnchor.MiddleCenter, new Vector2(0.5f, 1f), new Vector2(0.5f, 1f), new Vector2(0f, -166f), new Vector2(1000f, 50f), false);
|
||||
for (int i = 0; i < dungeons.Count; i++)
|
||||
{
|
||||
var dg = dungeons[i];
|
||||
bool isOpen = SupplyRules.OpenToday(dg, now);
|
||||
bool unlocked = SupplyRules.DungeonUnlocked(d, dg); // 던전마다 개방 조건(PD 2026-11-19)
|
||||
var box = Panel("Supply_" + dg.id, 220f + i * 300f, 284f);
|
||||
box.GetComponent<Image>().color = isOpen ? UiKit.Paper : UiKit.Slot;
|
||||
box.GetComponent<Image>().color = isOpen && unlocked ? UiKit.Paper : UiKit.Slot;
|
||||
if (!unlocked)
|
||||
UiKit.Label(box, LockOverlay.Condition(SupplyRules.UnlockStage(dg), BattleConfig), 26, UiKit.Red, TextAnchor.MiddleLeft, new Vector2(0f, 0f), new Vector2(0f, 0f), new Vector2(28f, 8f), new Vector2(680f, 40f), false);
|
||||
UiKit.Label(box, dg.nameKo + " <size=28>제한 " + dg.turnLimit + "턴</size>", 48, UiKit.Ink, TextAnchor.MiddleLeft, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(28f, -12f), new Vector2(680f, 70f));
|
||||
var days = new List<string>();
|
||||
string today = SupplyRules.Weekday(now);
|
||||
|
|
@ -106,7 +107,7 @@ namespace TKS.OutGame
|
|||
supplyPick = id;
|
||||
Refresh();
|
||||
});
|
||||
b.interactable = isOpen && SupplyRules.Unlocked(d);
|
||||
b.interactable = isOpen && unlocked;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ namespace TKS.OutGame
|
|||
LoadScenarioView(); // 연의 전기 아트 화면(PD 2026-11-18 · 표 Resources/UI/Scenario)
|
||||
LoadTowerView(); // 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · 표 Resources/UI/Tower)
|
||||
LoadSupplyView(); // 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · 표 Resources/UI/Supply)
|
||||
LoadRaidView(); // 맹장 토벌전 아트 화면(PD 2026-11-18 · 표 Resources/UI/Raid)
|
||||
hub = ArenaHub.Load(this); // 표만 읽음(그림·유닛은 처음 열 때)
|
||||
RectTransform headerBand;
|
||||
if (hub != null)
|
||||
|
|
@ -65,9 +66,28 @@ namespace TKS.OutGame
|
|||
// 쪽 번호 → 연무장 종류(0 = 카드 4장)
|
||||
static readonly string[] PageKinds = { null, ArenaRules.Tower, ArenaRules.Dungeon, ArenaRules.Arena, ArenaRules.Raid, null }; // 5 = 연의 전기
|
||||
|
||||
/// <summary>
|
||||
/// 들어가기 전에 막는 모드 페이지(PD 2026-11-19 「투기장, 맹장 토벌전의 경우, 진입 전 단계(연무장)에서 진입을 막도록」) — 3 투기장 · 4 맹장 토벌전 = 모드 해금 하나.
|
||||
/// 그 밖 = 막지 않음(보급전 = 페이지는 열고 던전마다 잠김 · 탑 · 연의 전기 = 자기 규칙). 잠김이면 true + 해금 스테이지 키.
|
||||
/// </summary>
|
||||
public bool PageLocked(int p, out string stageKey)
|
||||
{
|
||||
stageKey = null;
|
||||
if (p == 3 && !LeagueRules.Unlocked(S.Save)) stageKey = LeagueRules.UnlockStage;
|
||||
else if (p == 4 && !RaidRules.Unlocked(S.Save)) stageKey = RaidRules.UnlockStage;
|
||||
return stageKey != null;
|
||||
}
|
||||
|
||||
public void SetPage(int p)
|
||||
{
|
||||
p = Mathf.Clamp(p, 0, ScenarioPage);
|
||||
// 잠긴 투기장 · 맹장 토벌전 = 들어가지 않고 개방 조건 안내만(허브 · 예전 카드 공통 · 잠김 덮개와 같은 조건 문장)
|
||||
string lockStage;
|
||||
if (p > 0 && PageLocked(p, out lockStage))
|
||||
{
|
||||
LockOverlay.Notice(Root, lockStage, BattleConfig);
|
||||
p = 0;
|
||||
}
|
||||
// 주간 랭킹 정산 중에는 랭킹 관련 컨텐츠에 들어갈 수 없다 — 안내를 띄우고 카드 화면에 머문다(PD 2026-11-17)
|
||||
if (p > 0 && ArenaRules.Settling(S.Save, PageKinds[p], S.Now))
|
||||
{
|
||||
|
|
@ -79,6 +99,7 @@ namespace TKS.OutGame
|
|||
ScenarioPageChanged(prev, p); // 연의 전기 상세 닫기 · 처음 탭
|
||||
if (p == 3) S.LeagueRefreshView(() => { if (page == 3) Refresh(); });
|
||||
if (p == ScenarioPage) S.ScenarioRefresh(() => { if (page == ScenarioPage) Refresh(); });
|
||||
if (p == 4 && prev != 4 && raid != null) raid.ResetView(); // 맹장 토벌전 아트 화면 = 새로 열면 토벌 탭 · 이번 주 메인
|
||||
if (p == 4) S.RaidRefresh(() => { if (page == 4) Refresh(); }); // 맹장 토벌전 = 서버 모드면 이번 주 맹장 · 횟수 · 점수를 새로 받음
|
||||
if (p == 2) // 보급전 = 서버 모드면 화면 상태(횟수 · 판정 · 해금)를 새로 받은 뒤 다시 그림
|
||||
{
|
||||
|
|
@ -120,6 +141,7 @@ namespace TKS.OutGame
|
|||
if (scenarioSlot != null && page != ScenarioPage) scenarioSlot.gameObject.SetActive(false);
|
||||
if (towerSlot != null && page != 1) towerSlot.gameObject.SetActive(false);
|
||||
if (supplySlot != null && (page != 2 || supplyPick != null)) supplySlot.gameObject.SetActive(false); // 단계 고르기(더미)로 가면 목록 끔
|
||||
if (raidSlot != null && page != 4) raidSlot.gameObject.SetActive(false);
|
||||
if (headerSub != null) headerSub.gameObject.SetActive(page == 0);
|
||||
if (hubOn && !hub.Show(hubSlot))
|
||||
{
|
||||
|
|
@ -139,10 +161,12 @@ namespace TKS.OutGame
|
|||
if (!ShowTowerView()) BuildTower();
|
||||
break;
|
||||
case 2: BuildSupply(); break; // 보급전(컨텐츠 모드 ① · 옛 일일 던전 자리 · 2026-11-17)
|
||||
case 3: // 등급 투기장(컨텐츠 모드 ④ · 교대 조작 · 2026-11-18) — 아트 화면(PD 2026-11-18 「투기장 UI 완료」) · 표·그림이 없거나 잠김 = 더미 UI
|
||||
case 3: // 등급 투기장(컨텐츠 모드 ④ · 교대 조작 · 2026-11-18) — 아트 화면(PD 2026-11-18 「투기장 UI 완료」 · 해금 전 = 같은 화면 + 잠김 덮개) · 표·그림이 없으면 더미 UI
|
||||
if (!ShowLeagueView()) BuildLeague();
|
||||
break;
|
||||
case 4: BuildRaid2(); break;
|
||||
case 4: // 맹장 토벌전(컨텐츠 모드 ③) — 아트 화면(PD 2026-11-18 · 시안 mock_raid.png) · 표·배너가 없으면 더미 UI
|
||||
if (!ShowRaidView()) BuildRaid2();
|
||||
break;
|
||||
case ScenarioPage: // 연의 전기(컨텐츠 모드 ②) — 아트 화면(PD 2026-11-18 「연의 전기 통과」) · 표·그림이 없으면 더미 UI
|
||||
if (!ShowScenarioView()) BuildScenario();
|
||||
break;
|
||||
|
|
@ -306,6 +330,12 @@ namespace TKS.OutGame
|
|||
return string.Join(" · ", names.ToArray()) + " — 요일마다 열림";
|
||||
}
|
||||
|
||||
/// <summary>전투 설정(스테이지 표 · 잠김 덮개 조건 문장의 스테이지 제목) · 없으면 null.</summary>
|
||||
public BalanceConfig BattleConfig
|
||||
{
|
||||
get { return Root != null && Root.Battle != null ? Root.Battle.Config : null; }
|
||||
}
|
||||
|
||||
RectTransform Panel(string name, float top, float h)
|
||||
{
|
||||
var band = UiKit.TopBand(name, root, top, h, 24f, 24f);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace TKS.OutGame
|
|||
{
|
||||
/// <summary>
|
||||
/// 훈련장(보급전) 메뉴 화면(PD 2026-11-18 「위 내용으로 게임에 반영 · 매일 열림 = 요일 없음 · 정해진 요일 = 여는 요일만 · 「/」 판 더 왼쪽으로 짧게」 · 아트 시안 content_screens_2/supply/final/mock/mock_s_*.png · Fable QA r2 PASS) —
|
||||
/// 위 띠(오늘 요일 · 오늘 완료 · 주간 도장 · 하루 횟수 · 광고) + 배너 카드 목록(위아래 스크롤): 배너(배경 + 게임 유닛) · 메뉴 색 「/」 글자 판(이름 · 제한 턴 · 최고 단계 · 여는 요일 · 보상) · 오른쪽 = 남은 + 입장 / 닫힌 날 = 「오늘 닫힘 · 여는 요일」 + 닫힘 / 모드 잠김 = 붉은 띠 + 잠김.
|
||||
/// 위 띠(오늘 요일 · 오늘 완료 · 주간 도장 · 하루 횟수 · 광고) + 배너 카드 목록(위아래 스크롤): 배너(배경 + 게임 유닛) · 메뉴 색 「/」 글자 판(이름 · 제한 턴 · 최고 단계 · 여는 요일 · 보상) · 오른쪽 = 남은 + 입장 / 닫힌 날 = 「오늘 닫힘 · 여는 요일」 + 닫힘 / 잠긴 던전(던전마다 개방 조건 = 표 supply_dungeons.s_unlock_stage · PD 2026-11-19) = 잠김 버튼 + 그 카드만 잠김 판(LockOverlay.ApplyCard).
|
||||
/// 입장 = 예전과 같은 단계 고르기(ArenaScreen.OpenSupplyTiers) · 던전 · 이름 · 요일 · 제한 턴 · 보상 = 게임 표 supply_dungeons(SupplyData) · 이 화면 표 = 그림 · 색 · 배치(Resources/UI/Supply/supply_screen · C45) · 글자 = supply_text(UiText).
|
||||
/// 층(P41): 화면(Event) → Strip(위 띠 · Event) · 목록(UiKit.ScrollGrid = 보는 칸 RectMask2D + 내용 Frame · 레이캐스터 · 카드 = 배너 · 판 · 글자 · 버튼).
|
||||
/// </summary>
|
||||
|
|
@ -22,17 +22,34 @@ namespace TKS.OutGame
|
|||
readonly Dictionary<string, Text> texts = new Dictionary<string, Text>();
|
||||
readonly Dictionary<string, int> dayDots = new Dictionary<string, int>();
|
||||
readonly HashSet<string> closed = new HashSet<string>();
|
||||
readonly HashSet<string> locked = new HashSet<string>();
|
||||
|
||||
public RectTransform View { get; private set; }
|
||||
public RectTransform Strip { get; private set; }
|
||||
public RectTransform List { get; private set; }
|
||||
public ScrollRect Scroll { get; private set; }
|
||||
public bool Built { get; private set; }
|
||||
public bool Locked { get; private set; }
|
||||
|
||||
/// <summary>카드 수 · 카드마다 요일 점 수 · 오늘 닫힌 카드(테스트).</summary>
|
||||
/// <summary>카드 수 · 카드마다 요일 점 수 · 오늘 닫힌 카드 · 잠긴 카드(테스트).</summary>
|
||||
public int CardCount { get; private set; }
|
||||
|
||||
public int LockedCount
|
||||
{
|
||||
get { return locked.Count; }
|
||||
}
|
||||
|
||||
/// <summary>그 던전 카드가 잠겼는가(던전마다 개방 조건 · PD 2026-11-19).</summary>
|
||||
public bool IsLocked(string id)
|
||||
{
|
||||
return locked.Contains(id);
|
||||
}
|
||||
|
||||
/// <summary>그 던전 카드(테스트 · 없으면 null).</summary>
|
||||
public RectTransform CardOf(string id)
|
||||
{
|
||||
return List != null ? List.Find("Card_" + id) as RectTransform : null;
|
||||
}
|
||||
|
||||
public int DayDotsOf(string id)
|
||||
{
|
||||
int n;
|
||||
|
|
@ -174,13 +191,13 @@ namespace TKS.OutGame
|
|||
texts.Clear();
|
||||
dayDots.Clear();
|
||||
closed.Clear();
|
||||
locked.Clear();
|
||||
var r = View.rect;
|
||||
Z = Mathf.Min(r.width / 1080f, r.height / 1920f);
|
||||
if (Z <= 0f) Z = 1f;
|
||||
var db = S.Db;
|
||||
var d = S.Save;
|
||||
var now = S.Now;
|
||||
Locked = !SupplyRules.Unlocked(d);
|
||||
|
||||
// 위 띠(Event)
|
||||
Strip = UiLayer.Group("Strip", View, UiRate.Event);
|
||||
|
|
@ -190,8 +207,7 @@ namespace TKS.OutGame
|
|||
var cd = L("card");
|
||||
float cw = At(cd, 0, 1040f) * Z, ch = At(cd, 1, 360f) * Z, gap = At(cd, 2, 22f) * Z;
|
||||
float x0 = (r.width - cw) * 0.5f;
|
||||
if (Locked) LockStrip(x0, stTop, cw);
|
||||
else InfoStrip(db, d, now, x0, stTop, cw, stH);
|
||||
InfoStrip(db, d, now, x0, stTop, cw, stH); // 위 띠 = 늘 평소대로(잠김 = 던전 카드마다 · PD 2026-11-19)
|
||||
|
||||
// 카드 목록(UiKit.ScrollGrid = 내용 Frame + 레이캐스터 · RectMask2D)
|
||||
float listTop = OutGameRoot.TopBarH + OutGameRoot.HeaderH + (At(cd, 4, 316f) - 224f - 6f) * Z;
|
||||
|
|
@ -263,18 +279,6 @@ namespace TKS.OutGame
|
|||
if (er != null) er.anchoredPosition = new Vector2(x0 + w - ew - bw, -y);
|
||||
}
|
||||
|
||||
void LockStrip(float x0, float y, float w)
|
||||
{
|
||||
var ls = L("lock_strip");
|
||||
float h = At(ls, 2, 56f) * Z;
|
||||
var band = UiKit.Skin(UiKit.At(Strip, "Locked", x0, y, w, h), "chip", Alpha(Col(ls, 0, UiKit.Red), At(ls, 1, 0.92f)));
|
||||
UiKit.Border(band, UiKit.Col("line", UiKit.Line), 4f * Z);
|
||||
var t = Lab(band.transform, "LockText", UiText.F("supply_unlock", new[] { ContentTables.Str(SupplyData.Mode, "unlock_stage") }), At(ls, 3, 28f) * Z, Color.white, TextAnchor.MiddleCenter, 0f, 0f, w, h, true);
|
||||
float lsz = At(ls, 4, 40f) * Z;
|
||||
var ic = UiKit.Icon(band.transform, "lock", new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(w * 0.5f - t.preferredWidth * 0.5f - lsz * 0.7f, 0f), lsz);
|
||||
UiKit.DropShadow(ic, 2f);
|
||||
}
|
||||
|
||||
static readonly string[] Week = { "mon", "tue", "wed", "thu", "fri", "sat", "sun" };
|
||||
|
||||
void Card(SupplyData.Dungeon dg, string[] b, float cw, float ch, OutGameData db, SaveData d, DateTime now)
|
||||
|
|
@ -282,14 +286,16 @@ namespace TKS.OutGame
|
|||
string id = dg.id;
|
||||
bool isOpen = SupplyRules.OpenToday(dg, now);
|
||||
if (!isOpen) closed.Add(id);
|
||||
bool active = isOpen && !Locked;
|
||||
bool isLocked = !SupplyRules.DungeonUnlocked(d, dg); // 던전마다 개방 조건(표 supply_dungeons.s_unlock_stage · PD 2026-11-19)
|
||||
if (isLocked) locked.Add(id);
|
||||
bool active = isOpen && !isLocked; // 입장 버튼(잠긴 던전 = 잠김 버튼)
|
||||
var cell = new GameObject("Card_" + id, typeof(RectTransform)).GetComponent<RectTransform>();
|
||||
cell.SetParent(List, false);
|
||||
// 배너(둥근 모서리 · 테 굽기) · 닫힘 = 곱하기 색
|
||||
// 배너(둥근 모서리 · 테 굽기) · 닫힌 날 = 곱하기 색 · 잠긴 던전 = 평소 그림(어둡게 = 맨 위 카드 잠김 판)
|
||||
var bi = UiKit.Fill("Banner", cell).gameObject.AddComponent<Image>();
|
||||
bi.sprite = Resources.Load<Sprite>(Str(b, 1));
|
||||
bi.raycastTarget = true; // 카드 위 끌기 = 목록 스크롤(ScrollRect 가 받음)
|
||||
if (!active) bi.color = Col(L("closed_tint"), 0, new Color(0.55f, 0.55f, 0.58f));
|
||||
if (!isOpen) bi.color = Col(L("closed_tint"), 0, new Color(0.55f, 0.55f, 0.58f));
|
||||
// 「/」 글자 판 + 비스듬 선(흰 그림 틴트)
|
||||
var pn = L("panel");
|
||||
var cardCol = Col(b, 2, UiKit.Dark);
|
||||
|
|
@ -298,7 +304,7 @@ namespace TKS.OutGame
|
|||
{
|
||||
var pi = UiKit.At(cell, "Panel", 0f, 0f, pf.rect.width * ch / pf.rect.height, ch).gameObject.AddComponent<Image>();
|
||||
pi.sprite = pf;
|
||||
pi.color = Alpha(cardCol, active ? At(pn, 2, 0.84f) : At(pn, 3, 0.74f));
|
||||
pi.color = Alpha(cardCol, isOpen ? At(pn, 2, 0.84f) : At(pn, 3, 0.74f));
|
||||
pi.raycastTarget = false;
|
||||
}
|
||||
var pl = Resources.Load<Sprite>(Str(pn, 1));
|
||||
|
|
@ -400,14 +406,16 @@ namespace TKS.OutGame
|
|||
gb.interactable = false;
|
||||
var bl = gb.GetComponentInChildren<Text>();
|
||||
if (bl != null) bl.gameObject.SetActive(false);
|
||||
var gt = Lab(gb.transform, "GoText_" + id, UiText.T(Locked ? "supply_locked_btn" : "supply_closed_btn"), At(go, 2, 44f) * Z * 0.9f, UiKit.Col("text_soft", UiKit.InkSoft), TextAnchor.MiddleCenter, 0f, -2f * Z, bw, bh, true);
|
||||
if (Locked)
|
||||
var gt = Lab(gb.transform, "GoText_" + id, UiText.T(isLocked ? "supply_locked_btn" : "supply_closed_btn"), At(go, 2, 44f) * Z * 0.9f, UiKit.Col("text_soft", UiKit.InkSoft), TextAnchor.MiddleCenter, 0f, -2f * Z, bw, bh, true);
|
||||
if (isLocked)
|
||||
{
|
||||
float isz = At(L("closed"), 0, 40f) * Z;
|
||||
UiKit.Icon(gb.transform, "lock", new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(bw * 0.5f - gt.preferredWidth * 0.5f - isz * 0.6f, -bh * 0.5f), isz);
|
||||
}
|
||||
else ClosedPlate(cell, dg, bx + bw, by);
|
||||
}
|
||||
// 잠긴 던전 = 이 카드만 어둡게 + 자물쇠 + 개방 조건(LockOverlay 카드 판 · 표 lock_overlay card_* · 조건 = 그 던전 해금 스테이지)
|
||||
if (isLocked) LockOverlay.ApplyCard(cell, bi.sprite, SupplyRules.UnlockStage(dg), screen.BattleConfig, Z);
|
||||
}
|
||||
|
||||
/// <summary>닫힌 날 판 = 오른쪽 열(닫힘 버튼 위 · QA r1 B2) · 자물쇠 + 「오늘 닫힘」 + 여는 요일.</summary>
|
||||
|
|
|
|||
|
|
@ -87,11 +87,18 @@ namespace TKS.OutGame
|
|||
return Mathf.Max(0, ContentTables.Int(M, "entries_per_day") + d.league.bought - d.league.used);
|
||||
}
|
||||
|
||||
/// <summary>투기장 해금 스테이지 키(표 arena.unlock_stage · 연무장 잠김 안내 · 허브 이름표 조건).</summary>
|
||||
public static string UnlockStage
|
||||
{
|
||||
get { return ContentTables.Str(M, "unlock_stage"); }
|
||||
}
|
||||
|
||||
public static bool Unlocked(SaveData d)
|
||||
{
|
||||
if (d.league.serverView) return true;
|
||||
if (TestOptions.UnlockAllStages && !SaveStore.MemoryOnly) return true; // 플레이 테스트 「전 스테이지 열기」 = 컨텐츠 해금도 무시(연의 전기 ScenarioModeRules 와 같음 · 메모리 세이브 테스트 · 캡처는 원래 판정 · PD 2026-11-18 「맹장 토벌전 · 투기장이 제대로 안 보임」)
|
||||
int ch, st;
|
||||
if (!ArenaRules.ParseStageKey(ContentTables.Str(M, "unlock_stage"), out ch, out st)) return true;
|
||||
if (!ArenaRules.ParseStageKey(UnlockStage, out ch, out st)) return true;
|
||||
var s = d.Stage(ch, st, false);
|
||||
return s != null && s.clears > 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,231 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace TKS.OutGame
|
||||
{
|
||||
/// <summary>
|
||||
/// 잠긴 컨텐츠 표시(PD 2026-11-18 「잠겨진 컨텐츠는 설령 해당 조건에 도달하지 않았어도 잠겨진 상태로 화면이 보여져야 해 · 어둡게 암전 된 상태에서 자물쇠가 배치 된 상태에 개방 조건을 표시」 ·
|
||||
/// PD 2026-11-19 「투기장, 맹장 토벌전의 경우, 진입 전 단계(연무장)에서 진입을 막도록 · 보급전(훈련장)은 각 메뉴별로 각각 개방 조건」) — 세 가지:
|
||||
/// ① <see cref="Apply"/> = 아트 화면 슬롯 위 본문 칸(재화 바 · 제목 띠 아래 ~ 하단 탭 위) 덮개: 어둡게(누름 막음) + 가운데 자물쇠 + 「개방 조건」 + 조건 문장 · 자기 Event 캔버스 + 레이캐스터(P41) ·
|
||||
/// 지금 쓰는 곳 = 투기장 · 맹장 토벌전 페이지에 있는 동안 잠긴 때(방어 · 들어가기는 ArenaScreen.SetPage 가 막음).
|
||||
/// ② <see cref="ApplyCard"/> = 카드 하나 위(보급전 던전 카드): 카드 그림 모양 그대로 어둡게 + 같은 묶음(크기 = 표 card_* × 화면 배율) · 목록 내용 층 안(캔버스 없음).
|
||||
/// ③ <see cref="Notice"/> = 들어가기 막음 안내 팝업(제목 「개방 조건」 + 같은 조건 문장 + 확인).
|
||||
/// 표(C45) = Resources/UI/Lock/lock_overlay(어둡기 · 크기 · 색 · 글자 크기) · 글자 = lock_text(UiText) · 스테이지 제목 = 전투 설정 스테이지 표(BalanceConfig.stages · 못 찾으면 번호만).
|
||||
/// </summary>
|
||||
public static class LockOverlay
|
||||
{
|
||||
public const string Table = "UI/Lock/lock_overlay";
|
||||
public const string Name = "LockOverlay";
|
||||
public const string TitleName = "LockTitle";
|
||||
public const string CondName = "LockCond";
|
||||
|
||||
static readonly Vector2 TopLeft = new Vector2(0f, 1f);
|
||||
|
||||
static Dictionary<string, string> Load()
|
||||
{
|
||||
var kv = new Dictionary<string, string>();
|
||||
var rows = UiText.Rows(Table);
|
||||
if (rows == null)
|
||||
{
|
||||
Debug.LogWarning("[TKS] 잠김 덮개 표 없음: " + Table);
|
||||
return kv;
|
||||
}
|
||||
foreach (var r in rows)
|
||||
{
|
||||
string k, v;
|
||||
if (!r.TryGetValue("s_key", out k) || k.Length == 0 || kv.ContainsKey(k)) continue;
|
||||
r.TryGetValue("s_value", out v);
|
||||
kv[k] = v ?? "";
|
||||
}
|
||||
string texts;
|
||||
if (kv.TryGetValue("texts", out texts)) UiText.Use(texts);
|
||||
return kv;
|
||||
}
|
||||
|
||||
static string[] L(Dictionary<string, string> kv, string key)
|
||||
{
|
||||
string v;
|
||||
return kv.TryGetValue(key, out v) ? v.Split('|') : new string[0];
|
||||
}
|
||||
|
||||
static float At(string[] a, int i, float def)
|
||||
{
|
||||
float f;
|
||||
return a != null && i < a.Length && float.TryParse(a[i].Trim(), NumberStyles.Float, CultureInfo.InvariantCulture, out f) ? f : def;
|
||||
}
|
||||
|
||||
static string Str(string[] a, int i, string def)
|
||||
{
|
||||
return a != null && i < a.Length && a[i].Trim().Length > 0 ? a[i].Trim() : def;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>조건 문장 = 출정 장-번호 「스테이지 제목」 클리어(제목 = 스테이지 표 · 못 찾으면 번호만).</summary>
|
||||
public static string Condition(string stageKey, BalanceConfig cfg)
|
||||
{
|
||||
Load();
|
||||
var st = cfg != null ? ArenaRules.FindStage(cfg, stageKey) : null;
|
||||
if (st != null && !string.IsNullOrEmpty(st.title)) return UiText.F("lock_stage", new[] { stageKey, st.title });
|
||||
return UiText.F("lock_stage_no_title", new[] { stageKey ?? "" });
|
||||
}
|
||||
|
||||
/// <summary>들어가기 막음 안내(PD 2026-11-19 · 연무장 투기장 · 맹장 토벌전) = 팝업 제목 「개방 조건」 + 조건 문장(덮개와 같은 글자) + 확인.</summary>
|
||||
public static void Notice(OutGameRoot root, string stageKey, BalanceConfig cfg)
|
||||
{
|
||||
if (root == null) return;
|
||||
string cond = Condition(stageKey, cfg); // 표 · 글자 표를 먼저 읽음
|
||||
root.Modal(UiText.T("lock_title"), cond, new OutGameRoot.ModalButton(UiText.T("lock_ok"), UiKit.Dark, null));
|
||||
}
|
||||
|
||||
/// <summary>slot 의 덮개(없거나 걷혔으면 null · 테스트).</summary>
|
||||
public static RectTransform Find(Transform slot)
|
||||
{
|
||||
if (slot == null) return null;
|
||||
for (int i = 0; i < slot.childCount; i++)
|
||||
{
|
||||
var c = slot.GetChild(i);
|
||||
if (c.name == Name && c.gameObject.activeSelf) return (RectTransform)c;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>덮개 글자(테스트 · 이름 = LockTitle · LockCond · 덮개 없음 = null).</summary>
|
||||
public static string TextOf(Transform slot, string name)
|
||||
{
|
||||
var ov = Find(slot);
|
||||
if (ov == null) return null;
|
||||
foreach (var t in ov.GetComponentsInChildren<Text>(true))
|
||||
if (t.name == name)
|
||||
return t.text;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>덮개를 걷는다(이름을 바꿔 같은 프레임의 Find 에 걸리지 않게).</summary>
|
||||
public static void Remove(Transform slot)
|
||||
{
|
||||
if (slot == null) return;
|
||||
for (int i = slot.childCount - 1; i >= 0; i--)
|
||||
{
|
||||
var c = slot.GetChild(i);
|
||||
if (c.name != Name) continue;
|
||||
c.name = Name + "_old";
|
||||
c.gameObject.SetActive(false);
|
||||
Object.Destroy(c.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>locked = 덮개를 새로 씌움(맨 위 · 이미 있으면 바꿈) · false = 걷음. 반환 = 덮개(없으면 null).</summary>
|
||||
public static RectTransform Apply(RectTransform slot, bool locked, string stageKey, BalanceConfig cfg)
|
||||
{
|
||||
if (slot == null) return null;
|
||||
Remove(slot);
|
||||
if (!locked) return null;
|
||||
var kv = Load();
|
||||
|
||||
// 층 = 본문 칸만(제목 띠 · 하단 탭 밖) · 자기 Event 캔버스 + 레이캐스터
|
||||
var ov = UiLayer.Group(Name, slot, UiRate.Event, true);
|
||||
ov.offsetMin = new Vector2(0f, OutGameRoot.TabBarH);
|
||||
ov.offsetMax = new Vector2(0f, -(OutGameRoot.TopBarH + OutGameRoot.HeaderH));
|
||||
ov.SetAsLastSibling();
|
||||
var dm = L(kv, "dim");
|
||||
var dim = UiKit.Fill("Dim", ov).gameObject.AddComponent<Image>();
|
||||
var dc = Col(dm, 0, Color.black);
|
||||
dc.a = At(dm, 1, 0.68f);
|
||||
dim.color = dc;
|
||||
dim.raycastTarget = true; // 아래 화면 누름 · 끌기(목록 스크롤)를 막음
|
||||
|
||||
string cy;
|
||||
kv.TryGetValue("center_y", out cy);
|
||||
Center(ov, kv, "", 1f, new Vector2(0.5f, 1f - At(new[] { cy ?? "" }, 0, 0.46f)), stageKey, cfg);
|
||||
return ov;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 카드 하나만 잠김(PD 2026-11-19 보급전 던전 카드) — card 맨 위에 어둡게(shape = 카드 그림 · 둥근 모서리 그대로 · null 이면 네모) + 자물쇠 + 「개방 조건」 + 조건 문장.
|
||||
/// 크기 = 표 card_* × z(목록 화면 배율) · 캔버스를 따로 만들지 않음(목록 내용 층 안 · 끌기 = 목록 스크롤 그대로). 반환 = 판(이름 LockOverlay · Find · TextOf 그대로).
|
||||
/// </summary>
|
||||
public static RectTransform ApplyCard(RectTransform card, Sprite shape, string stageKey, BalanceConfig cfg, float z)
|
||||
{
|
||||
if (card == null) return null;
|
||||
Remove(card);
|
||||
var kv = Load();
|
||||
var ov = UiKit.Fill(Name, card);
|
||||
ov.SetAsLastSibling();
|
||||
var dm = L(kv, "card_dim");
|
||||
var dim = UiKit.Fill("Dim", ov).gameObject.AddComponent<Image>();
|
||||
dim.sprite = shape;
|
||||
var dc = Col(dm, 0, Color.black);
|
||||
dc.a = At(dm, 1, 0.62f);
|
||||
dim.color = dc;
|
||||
dim.raycastTarget = true; // 카드 누름은 막고 끌기는 목록 ScrollRect 로 올라감
|
||||
var cc = L(kv, "card_center");
|
||||
Center(ov, kv, "card_", z <= 0f ? 1f : z, new Vector2(At(cc, 0, 0.5f), 1f - At(cc, 1, 0.5f)), stageKey, cfg);
|
||||
return ov;
|
||||
}
|
||||
|
||||
/// <summary>가운데 묶음 = 자물쇠 → 글자 판(「개방 조건」 · 조건 문장) · 표 키 = pre + lock · plate · title · cond · lock_gap(stroke 공용) · 크기 × z.</summary>
|
||||
static void Center(RectTransform ov, Dictionary<string, string> kv, string pre, float z, Vector2 anchor, string stageKey, BalanceConfig cfg)
|
||||
{
|
||||
var lk = L(kv, pre + "lock");
|
||||
var pl = L(kv, pre + "plate");
|
||||
var ti = L(kv, pre + "title");
|
||||
var cd = L(kv, pre + "cond");
|
||||
var sk = L(kv, "stroke");
|
||||
var c = UiKit.Rect("Center", ov, anchor, new Vector2(0.5f, 0.5f), Vector2.zero, Vector2.zero);
|
||||
var pc = Col(pl, 1, UiKit.Dark);
|
||||
pc.a = At(pl, 2, 0.9f);
|
||||
var plate = UiKit.Skin(UiKit.At(c, "Plate", 0f, 0f, 10f, 10f), Str(pl, 0, "card"), pc);
|
||||
var sc = Col(sk, 0, UiKit.Stroke);
|
||||
float sw = At(sk, 1, 3f) * Mathf.Min(1f, z);
|
||||
var title = Txt(c, TitleName, UiText.T("lock_title"), Mathf.RoundToInt(At(ti, 0, 46f) * z), Col(ti, 1, UiKit.Coin), sc, sw);
|
||||
var cond = Txt(c, CondName, Condition(stageKey, cfg), Mathf.RoundToInt(At(cd, 0, 34f) * z), Col(cd, 1, Color.white), sc, sw);
|
||||
cond.horizontalOverflow = HorizontalWrapMode.Wrap;
|
||||
|
||||
// 크기 = 글자 폭(줄 폭 최대까지) · 조건 문장은 넘치면 줄바꿈
|
||||
float tw = Mathf.Min(At(cd, 2, 880f) * z, Mathf.Ceil(Mathf.Max(title.preferredWidth, cond.preferredWidth)) + 4f);
|
||||
cond.rectTransform.sizeDelta = new Vector2(tw, 10f);
|
||||
float th = Mathf.Ceil(title.fontSize * 1.3f);
|
||||
float ch = Mathf.Ceil(Mathf.Max(cond.preferredHeight, cond.fontSize * 1.3f));
|
||||
float padX = At(pl, 3, 56f) * z, padY = At(pl, 4, 26f) * z, gapT = At(cd, 3, 10f) * z;
|
||||
float pw = tw + 2f * padX, ph = 2f * padY + th + gapT + ch;
|
||||
float isz = At(lk, 1, 210f) * z;
|
||||
string lg;
|
||||
kv.TryGetValue(pre + "lock_gap", out lg);
|
||||
float gap = At(new[] { lg ?? "" }, 0, 14f) * z;
|
||||
float W = Mathf.Max(pw, isz), H = isz + gap + ph;
|
||||
c.sizeDelta = new Vector2(W, H);
|
||||
|
||||
var ic = UiKit.Icon(c, Str(lk, 0, "lock"), TopLeft, new Vector2(0.5f, 0.5f), new Vector2(W * 0.5f, -isz * 0.5f), isz);
|
||||
if (ic != null)
|
||||
{
|
||||
ic.name = "Lock";
|
||||
UiKit.DropShadow(ic, At(lk, 2, 4f) * z);
|
||||
}
|
||||
float py = isz + gap;
|
||||
plate.rectTransform.anchoredPosition = new Vector2((W - pw) * 0.5f, -py);
|
||||
plate.rectTransform.sizeDelta = new Vector2(pw, ph);
|
||||
title.rectTransform.anchoredPosition = new Vector2((W - tw) * 0.5f, -(py + padY));
|
||||
title.rectTransform.sizeDelta = new Vector2(tw, th);
|
||||
cond.rectTransform.anchoredPosition = new Vector2((W - tw) * 0.5f, -(py + padY + th + gapT));
|
||||
cond.rectTransform.sizeDelta = new Vector2(tw, ch);
|
||||
}
|
||||
|
||||
static Text Txt(Transform p, string name, string s, int size, Color c, Color stroke, float sw)
|
||||
{
|
||||
var t = UiKit.Label(p, s, size, c, name == CondName ? TextAnchor.UpperCenter : TextAnchor.MiddleCenter, TopLeft, TopLeft, Vector2.zero, new Vector2(10f, 10f));
|
||||
UISkin.UseTitle(t);
|
||||
UISkin.Stroke(t, stroke, sw);
|
||||
t.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
t.raycastTarget = false;
|
||||
t.name = name;
|
||||
return t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f0433122d61def143bdd7c985e9e16aa
|
||||
|
|
@ -66,11 +66,18 @@ namespace TKS.OutGame
|
|||
return slot == RaidData.Main ? d.raid.main : d.raid.sub;
|
||||
}
|
||||
|
||||
/// <summary>맹장 토벌전 해금 스테이지 키(표 raid.unlock_stage · 연무장 잠김 안내 · 허브 이름표 조건).</summary>
|
||||
public static string UnlockStage
|
||||
{
|
||||
get { return ContentTables.Str(RaidData.Mode, "unlock_stage"); }
|
||||
}
|
||||
|
||||
public static bool Unlocked(SaveData d)
|
||||
{
|
||||
if (d.raid.serverView) return true;
|
||||
if (TestOptions.UnlockAllStages && !SaveStore.MemoryOnly) return true; // 플레이 테스트 「전 스테이지 열기」 = 컨텐츠 해금도 무시(연의 전기 ScenarioModeRules 와 같음 · 메모리 세이브 테스트 · 캡처는 원래 판정 · PD 2026-11-18 「맹장 토벌전 · 투기장이 제대로 안 보임」)
|
||||
int ch, st;
|
||||
if (!ArenaRules.ParseStageKey(ContentTables.Str(RaidData.Mode, "unlock_stage"), out ch, out st)) return true;
|
||||
if (!ArenaRules.ParseStageKey(UnlockStage, out ch, out st)) return true;
|
||||
var s = d.Stage(ch, st, false);
|
||||
return s != null && s.clears > 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,11 +96,31 @@ namespace TKS.OutGame
|
|||
return s != null && s.clears > 0;
|
||||
}
|
||||
|
||||
/// <summary>보급전 해금(supply.unlock_stage 클리어).</summary>
|
||||
public static bool Unlocked(SaveData d)
|
||||
/// <summary>테스트 · 캡처 전용 = 던전 해금 스테이지를 잠깐 바꾼 것처럼(던전 id → 스테이지 키 · 화면이 표를 다시 읽어도 유지 · 게임 코드는 쓰지 않음 · 쓴 쪽이 비운다).</summary>
|
||||
public static readonly Dictionary<string, string> UnlockOverride = new Dictionary<string, string>();
|
||||
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||
static void ResetStatics()
|
||||
{
|
||||
if (d.supply.serverView) return true; // 서버 모드 = 서버가 판정(잠겼으면 입장 응답이 거절)
|
||||
return Cleared(d, ContentTables.Str(SupplyData.Mode, "unlock_stage"));
|
||||
UnlockOverride.Clear();
|
||||
}
|
||||
|
||||
/// <summary>던전 해금 스테이지 = 표 supply_dungeons.s_unlock_stage(PD 2026-11-19 「각 메뉴별로 각각 개방 조건」) · 비면 모드 기본 supply.unlock_stage.</summary>
|
||||
public static string UnlockStage(SupplyData.Dungeon dg)
|
||||
{
|
||||
string v;
|
||||
if (dg != null && UnlockOverride.TryGetValue(dg.id, out v) && !string.IsNullOrEmpty(v)) return v;
|
||||
if (dg != null && !string.IsNullOrEmpty(dg.unlockStage)) return dg.unlockStage;
|
||||
return ContentTables.Str(SupplyData.Mode, "unlock_stage");
|
||||
}
|
||||
|
||||
/// <summary>던전 해금(그 던전 해금 스테이지 클리어) — 보급전 페이지(연무장 → 훈련장)는 늘 들어가고 던전마다 잠긴다.</summary>
|
||||
public static bool DungeonUnlocked(SaveData d, SupplyData.Dungeon dg)
|
||||
{
|
||||
if (dg == null) return false;
|
||||
if (d.supply.serverView) return true; // 서버 모드 = 서버가 판정(잠겼으면 입장 응답이 거절 · 서버 규칙은 모드 해금 하나 — 던전별 값은 서버에 아직 없음)
|
||||
if (TestOptions.UnlockAllStages && !SaveStore.MemoryOnly) return true; // 플레이 테스트 「전 스테이지 열기」 = 컨텐츠 해금도 무시(연의 전기 ScenarioModeRules 와 같음 · 메모리 세이브 테스트 · 캡처는 원래 판정 · PD 2026-11-18 「맹장 토벌전 · 투기장이 제대로 안 보임」)
|
||||
return Cleared(d, UnlockStage(dg));
|
||||
}
|
||||
|
||||
public static bool TierOpen(SaveData d, SupplyData.Tier t)
|
||||
|
|
@ -147,7 +167,7 @@ namespace TKS.OutGame
|
|||
var t = SupplyData.GetTier(tier);
|
||||
if (dg == null) return "없는 던전";
|
||||
if (t == null) return "없는 단계";
|
||||
if (!Unlocked(d)) return ContentTables.Str(SupplyData.Mode, "unlock_stage") + " 클리어 뒤 열림";
|
||||
if (!DungeonUnlocked(d, dg)) return UnlockStage(dg) + " 클리어 뒤 열림";
|
||||
if (!OpenToday(dg, nowUtc)) return "오늘은 닫힘";
|
||||
if (!TierOpen(d, t)) return t.unlockStage + " 클리어 뒤 열림";
|
||||
if (Left(db, d, id, nowUtc) <= 0) return "오늘 입장 " + Limit(db, d, id, nowUtc) + "회 완료";
|
||||
|
|
|
|||
|
|
@ -225,10 +225,12 @@ namespace TKS.OutGame
|
|||
yield return AnimFrames(cam, "arena_anim_left", 30, 0.1f);
|
||||
root.Arena.Hub.Scroll.horizontalNormalizedPosition = 0.5f;
|
||||
}
|
||||
yield return LeagueShots(cam, root); // 투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료」 · -uiOnly arena_league,arena_league_tall)
|
||||
yield return HubLockShots(cam, root); // 연무장 잠김 이름표 · 마구간 안내(PD 2026-11-19 · -uiOnly arena_locked,arena_stable_notice)
|
||||
yield return LeagueShots(cam, root); // 투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료」 · -uiOnly arena_league,arena_league_tall,arena_league_locked)
|
||||
yield return ScenarioShots(cam, root); // 연의 전기 아트 화면(PD 2026-11-18 「연의 전기 통과」 · -uiOnly scn_*)
|
||||
yield return TowerShots(cam, root); // 천하제일 탑 아트 화면(PD 2026-11-18 「B안으로 진행해」 · -uiOnly arena_tower*)
|
||||
yield return SupplyShots(cam, root); // 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · -uiOnly supply_list,supply_list_bottom,supply_locked)
|
||||
yield return SupplyShots(cam, root); // 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · -uiOnly supply_list,supply_list_bottom,supply_locked,supply_one_locked)
|
||||
yield return RaidShots(cam, root); // 맹장 토벌전 아트 화면(PD 2026-11-18 · -uiOnly arena_raid,arena_raid_shop,arena_raid_locked)
|
||||
root.StaminaModal();
|
||||
yield return Shot(cam, "popup_stamina", W, H);
|
||||
root.CloseModal();
|
||||
|
|
@ -548,29 +550,125 @@ namespace TKS.OutGame
|
|||
yield return new WaitForSecondsRealtime(0.3f);
|
||||
}
|
||||
|
||||
/// <summary>떠 있는 팝업 글자(로그용 · 없으면 빈 글).</summary>
|
||||
static string ModalText()
|
||||
{
|
||||
var m = GameObject.Find("Modal");
|
||||
var texts = new List<string>();
|
||||
if (m != null)
|
||||
foreach (var t in m.GetComponentsInChildren<UnityEngine.UI.Text>(true))
|
||||
if (t.text.Length > 0) texts.Add(t.text);
|
||||
return string.Join(" | ", texts.ToArray());
|
||||
}
|
||||
|
||||
/// <summary>세이브의 스테이지 기록을 잠깐 바꾸고 되돌림(메모리 세이브 · 캡처용) — 없던 기록이면 지움.</summary>
|
||||
class StageTemp
|
||||
{
|
||||
StageState st;
|
||||
int clears0;
|
||||
bool created;
|
||||
SaveData d;
|
||||
|
||||
public StageTemp(SaveData d, string key)
|
||||
{
|
||||
int ch, sn;
|
||||
if (!ArenaRules.ParseStageKey(key, out ch, out sn)) return;
|
||||
this.d = d;
|
||||
created = d.Stage(ch, sn, false) == null;
|
||||
st = d.Stage(ch, sn, true);
|
||||
clears0 = st.clears;
|
||||
}
|
||||
|
||||
public void Set(bool cleared)
|
||||
{
|
||||
if (st != null) st.clears = cleared ? Mathf.Max(1, clears0) : 0;
|
||||
}
|
||||
|
||||
public void Restore()
|
||||
{
|
||||
if (st == null) return;
|
||||
st.clears = clears0;
|
||||
if (created) d.stages.Remove(st);
|
||||
st = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · 시안 mock_s_top · bottom · locked) — 해금 스테이지(supply.unlock_stage)를 잠깐 깬 것으로 바꿔 찍고 되돌림(메모리 세이브):
|
||||
/// supply_list = 위 · supply_list_bottom = 맨 아래로 스크롤 · supply_locked = 해금 전. 오늘 요일 = 실제 날짜(닫힌 카드는 그날 따라 다름). 로그 = 카드 수 · 닫힌 카드 · 요일 점 수.
|
||||
/// 연무장 잠김 이름표 · 마구간 안내(PD 2026-11-19) — arena_locked = 투기장 · 맹장 토벌전 해금 스테이지를 잠깐 안 깬 것으로(이름 앞 자물쇠 + 상태 줄 개방 조건) ·
|
||||
/// arena_stable_notice = 마구간(표 open update) 누름 안내 팝업. 로그 = 잠김 · 상태 줄 · 팝업 글자.
|
||||
/// </summary>
|
||||
IEnumerator HubLockShots(Camera cam, OutGameRoot root)
|
||||
{
|
||||
if (only != null && Match("arena_locked") == null && Match("arena_stable_notice") == null) yield break;
|
||||
var d = root.Session.Save;
|
||||
var lg = new StageTemp(d, LeagueRules.UnlockStage);
|
||||
var rd = new StageTemp(d, RaidRules.UnlockStage);
|
||||
lg.Set(false);
|
||||
rd.Set(false);
|
||||
root.Arena.SetPage(0);
|
||||
root.Show(root.Arena);
|
||||
var hub = root.Arena.Hub;
|
||||
yield return Shot(cam, "arena_locked", W, H);
|
||||
if (hub != null)
|
||||
foreach (var s in hub.Spots)
|
||||
if (s.open == "league" || s.open == "raid" || s.locked)
|
||||
Log("arena_locked " + s.id + " lock=" + hub.LockShown(s.id) + " status=" + hub.StatusOf(s.id));
|
||||
if (hub != null && (only == null || Match("arena_stable_notice") != null))
|
||||
{
|
||||
ArenaHub.Spot upd = null;
|
||||
foreach (var s in hub.Spots)
|
||||
if (s.open == "update") upd = s;
|
||||
if (upd != null)
|
||||
{
|
||||
hub.Press(upd.id);
|
||||
yield return Shot(cam, "arena_stable_notice", W, H);
|
||||
Log("arena_stable_notice spot=" + upd.id + " page=" + root.Arena.Page + " modal=" + ModalText());
|
||||
root.CloseModal();
|
||||
}
|
||||
}
|
||||
lg.Restore();
|
||||
rd.Restore();
|
||||
root.Arena.SetPage(0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · 시안 mock_s_top · bottom · locked) — 던전 해금 스테이지를 잠깐 깬 것으로 바꿔 찍고 되돌림(메모리 세이브):
|
||||
/// supply_list = 위 · supply_list_bottom = 맨 아래로 스크롤 · supply_locked = 모든 던전 해금 전 · supply_one_locked = 병법 훈련만 잠김(던전마다 개방 조건 · PD 2026-11-19 ·
|
||||
/// 그 던전 조건을 스테이지 표 맨 끝 스테이지로 잠깐 바꿈 = SupplyRules.UnlockOverride). 오늘 요일 = 실제 날짜(닫힌 카드는 그날 따라 다름). 로그 = 카드 수 · 닫힌 · 잠긴 카드 · 조건 문장 · 요일 점 수.
|
||||
/// </summary>
|
||||
IEnumerator SupplyShots(Camera cam, OutGameRoot root)
|
||||
{
|
||||
if (only != null && Match("supply_list") == null && Match("supply_list_bottom") == null && Match("supply_locked") == null) yield break;
|
||||
if (only != null && Match("supply_list") == null && Match("supply_list_bottom") == null && Match("supply_locked") == null && Match("supply_one_locked") == null) yield break;
|
||||
var d = root.Session.Save;
|
||||
int lc, ls;
|
||||
StageState st = null;
|
||||
int clears0 = 0;
|
||||
bool created = false;
|
||||
if (ArenaRules.ParseStageKey(ContentTables.Str(SupplyData.Mode, "unlock_stage"), out lc, out ls))
|
||||
var temps = new Dictionary<string, StageTemp>();
|
||||
foreach (var dg in SupplyData.AllDungeons())
|
||||
{
|
||||
created = d.Stage(lc, ls, false) == null;
|
||||
st = d.Stage(lc, ls, true);
|
||||
clears0 = st.clears;
|
||||
var k = SupplyRules.UnlockStage(dg);
|
||||
if (!temps.ContainsKey(k)) temps[k] = new StageTemp(d, k);
|
||||
}
|
||||
// 한 던전만 잠김 = 스테이지 표 맨 끝 스테이지(장 · 번호 최대)를 조건으로 · 그 기록을 잠깐 안 깬 것으로
|
||||
string lastKey = null;
|
||||
var cfg = root.Battle != null ? root.Battle.Config : null;
|
||||
if (cfg != null)
|
||||
{
|
||||
BalanceConfig.StageDef last = null;
|
||||
foreach (var sd in cfg.stages)
|
||||
if (last == null || sd.chapter > last.chapter || (sd.chapter == last.chapter && sd.stage > last.stage))
|
||||
last = sd;
|
||||
if (last != null) lastKey = last.chapter + "-" + last.stage;
|
||||
}
|
||||
StageTemp lastTemp = lastKey != null && !temps.ContainsKey(lastKey) ? new StageTemp(d, lastKey) : null;
|
||||
root.Show(root.Arena);
|
||||
foreach (var key in new[] { "supply_list", "supply_list_bottom", "supply_locked" })
|
||||
foreach (var key in new[] { "supply_list", "supply_list_bottom", "supply_locked", "supply_one_locked" })
|
||||
{
|
||||
if (only != null && Match(key) == null) continue;
|
||||
if (st != null) st.clears = key == "supply_locked" ? 0 : Mathf.Max(1, clears0);
|
||||
foreach (var t in temps.Values) t.Set(key != "supply_locked");
|
||||
SupplyRules.UnlockOverride.Clear();
|
||||
if (key == "supply_one_locked" && lastKey != null)
|
||||
{
|
||||
SupplyRules.UnlockOverride[SupplyData.Tactics] = lastKey;
|
||||
if (lastTemp != null) lastTemp.Set(false);
|
||||
}
|
||||
root.Arena.SetPage(0);
|
||||
root.Arena.SetPage(2);
|
||||
var sp = root.Arena.Supply;
|
||||
|
|
@ -583,16 +681,59 @@ namespace TKS.OutGame
|
|||
if (sp != null)
|
||||
{
|
||||
var info = new List<string>();
|
||||
foreach (var dg in SupplyData.AllDungeons()) info.Add(dg.id + ":" + sp.DayDotsOf(dg.id) + (sp.IsClosed(dg.id) ? "(닫힘)" : ""));
|
||||
Log(key + " visible=" + root.Arena.SupplyVisible + " cards=" + sp.CardCount + " locked=" + sp.Locked + " days=" + string.Join(",", info.ToArray()));
|
||||
foreach (var dg in SupplyData.AllDungeons())
|
||||
{
|
||||
var card = sp.CardOf(dg.id);
|
||||
info.Add(dg.id + ":" + sp.DayDotsOf(dg.id) + (sp.IsClosed(dg.id) ? "(닫힘)" : "") + (sp.IsLocked(dg.id) ? "(잠김 " + LockOverlay.TextOf(card, LockOverlay.CondName) + ")" : ""));
|
||||
}
|
||||
Log(key + " visible=" + root.Arena.SupplyVisible + " cards=" + sp.CardCount + " lockedCards=" + sp.LockedCount + " screenOverlay=" + (LockOverlay.Find(sp.View) != null) + " days=" + string.Join(",", info.ToArray()));
|
||||
}
|
||||
}
|
||||
SupplyRules.UnlockOverride.Clear();
|
||||
foreach (var t in temps.Values) t.Restore();
|
||||
if (lastTemp != null) lastTemp.Restore();
|
||||
root.Arena.SetPage(0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 맹장 토벌전 아트 화면(PD 2026-11-18 · 시안 raid_banner/final/mock_raid.png) — 해금 스테이지(raid.unlock_stage)를 잠깐 깬 것으로 바꿔 찍고 되돌림(메모리 세이브):
|
||||
/// arena_raid = 토벌 탭(메인 · 서브 카드 · 주간 점수 띠) · arena_raid_shop = 훈장 상점 탭 · arena_raid_locked = 해금 전(해금 스테이지를 잠깐 안 깬 것으로 · 들어가지 않고 허브 + 개방 조건 안내 팝업 · PD 2026-11-19). 이번 주 메인 · 오늘 서브 = 실제 날짜. 로그 = 메인 · 서브 · 카드 · 칸 · 상점 줄 수 · 팝업 글자.
|
||||
/// </summary>
|
||||
IEnumerator RaidShots(Camera cam, OutGameRoot root)
|
||||
{
|
||||
if (only != null && Match("arena_raid") == null && Match("arena_raid_shop") == null && Match("arena_raid_locked") == null) yield break;
|
||||
var d = root.Session.Save;
|
||||
int lc, ls;
|
||||
StageState st = null;
|
||||
int clears0 = 0;
|
||||
bool created = false;
|
||||
if (ArenaRules.ParseStageKey(ContentTables.Str(RaidData.Mode, "unlock_stage"), out lc, out ls))
|
||||
{
|
||||
created = d.Stage(lc, ls, false) == null;
|
||||
st = d.Stage(lc, ls, true);
|
||||
clears0 = st.clears;
|
||||
st.clears = Mathf.Max(1, st.clears);
|
||||
}
|
||||
root.Show(root.Arena);
|
||||
foreach (var key in new[] { "arena_raid", "arena_raid_shop", "arena_raid_locked" })
|
||||
{
|
||||
if (only != null && Match(key) == null) continue;
|
||||
if (st != null) st.clears = key == "arena_raid_locked" ? 0 : Mathf.Max(1, clears0); // 해금 전 = 잠김 덮개(PD 2026-11-18)
|
||||
root.Arena.SetPage(0);
|
||||
root.Arena.SetPage(4); // 해금 전 = 들어가지 않고 허브 + 개방 조건 안내 팝업(PD 2026-11-19)
|
||||
var rd = root.Arena.Raid;
|
||||
if (rd != null && key == "arena_raid_shop") rd.PressTab("shop");
|
||||
yield return Shot(cam, key, W, H);
|
||||
if (key == "arena_raid_locked") Log(key + " page=" + root.Arena.Page + " modal=" + ModalText());
|
||||
else if (rd != null) Log(key + " visible=" + root.Arena.RaidVisible + " main=" + rd.MainId + " sub=" + rd.SubId + " cards=" + rd.CardCount + " tiles=" + rd.TileCount + " shop=" + rd.ShopRows + " locked=" + rd.Locked);
|
||||
root.CloseModal();
|
||||
}
|
||||
root.Arena.SetPage(0);
|
||||
if (st != null)
|
||||
{
|
||||
st.clears = clears0;
|
||||
if (created) d.stages.Remove(st);
|
||||
}
|
||||
root.Arena.SetPage(0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -623,11 +764,11 @@ namespace TKS.OutGame
|
|||
|
||||
/// <summary>
|
||||
/// 투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료」) — 16:9(1080×1920) + 긴 화면(1080×2340) · 해금 스테이지(arena.unlock_stage)를 깬 것으로 잠깐 바꿔 찍고 되돌림(메모리 세이브 · 뒤 화면에 영향 없음).
|
||||
/// 로그 = 유닛 · NPC · 목패 · 이름표 수 · 화면 배율.
|
||||
/// arena_league_locked = 해금 전(해금 스테이지를 잠깐 안 깬 것으로 · 들어가지 않고 허브 + 개방 조건 안내 팝업 · PD 2026-11-19). 로그 = 유닛 · NPC · 목패 · 이름표 수 · 화면 배율 · 팝업 글자.
|
||||
/// </summary>
|
||||
IEnumerator LeagueShots(Camera cam, OutGameRoot root)
|
||||
{
|
||||
if (only != null && Match("arena_league") == null && Match("arena_league_tall") == null) yield break;
|
||||
if (only != null && Match("arena_league") == null && Match("arena_league_tall") == null && Match("arena_league_locked") == null) yield break;
|
||||
var d = root.Session.Save;
|
||||
int lc, ls;
|
||||
StageState st = null;
|
||||
|
|
@ -647,6 +788,15 @@ namespace TKS.OutGame
|
|||
if (lg != null) Log("arena_league visible=" + root.Arena.LeagueVisible + " units=" + lg.UnitCount + " npcs=" + lg.NpcCount + " plaques=" + lg.PlaqueCount + " tags=" + lg.TagCount + " zoom=" + (lg.Fitter != null ? lg.Fitter.Zoom.ToString("0.000") : "-"));
|
||||
yield return Shot(cam, "arena_league_tall", W, HTall);
|
||||
if (lg != null) Log("arena_league_tall zoom=" + (lg.Fitter != null ? lg.Fitter.Zoom.ToString("0.000") : "-"));
|
||||
if (st != null && (only == null || Match("arena_league_locked") != null)) // 해금 전 = 들어가지 않고 허브 + 개방 조건 안내 팝업(PD 2026-11-19)
|
||||
{
|
||||
st.clears = 0;
|
||||
root.Arena.SetPage(0);
|
||||
root.Arena.SetPage(3);
|
||||
yield return Shot(cam, "arena_league_locked", W, H);
|
||||
Log("arena_league_locked page=" + root.Arena.Page + " modal=" + ModalText());
|
||||
root.CloseModal();
|
||||
}
|
||||
root.Arena.SetPage(0);
|
||||
if (st != null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ namespace TKS
|
|||
/// <summary>more | less | star.</summary>
|
||||
public string gradeBy;
|
||||
public List<float> cuts;
|
||||
/// <summary>던전 해금 스테이지(표 s_unlock_stage · PD 2026-11-19 「각 메뉴별로 각각 개방 조건」 · 비면 모드 기본 supply.unlock_stage = SupplyRules.UnlockStage).</summary>
|
||||
public string unlockStage;
|
||||
}
|
||||
|
||||
public class Tier
|
||||
|
|
@ -73,7 +75,7 @@ namespace TKS
|
|||
{
|
||||
id = r.S("s_id"), nameKo = r.S("s_name_ko"), rewardKinds = r.L("l_reward_kind"), weekdays = r.L("l_open_weekday"),
|
||||
turnLimit = r.I("n_turn_limit"), ruleKo = r.S("s_rule_ko"), goodClassKo = r.S("s_good_class_ko"), gradeRuleKo = r.S("s_grade_rule_ko"),
|
||||
gradeBy = r.S("e_grade_by"), cuts = r.LF("l_grade_cut"),
|
||||
gradeBy = r.S("e_grade_by"), cuts = r.LF("l_grade_cut"), unlockStage = r.S("s_unlock_stage"),
|
||||
});
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ namespace TKS.Tests
|
|||
/// <summary>
|
||||
/// 연무장 첫 페이지 = 성 안 풍경 허브(PD 2026-11-18) — 장소 · 이름표 · 유닛 · 앞 층 수 = 표(Resources/UI/Yeonmu) · 글자 = 글자 표 키 ·
|
||||
/// 캔버스 층(배경 Static · 유닛 Frame · 이름표 Event + 레이캐스터 · 스크롤 내용 Frame) · 좌우 스크롤 범위 · 장소 누름 → 모드 페이지 · 뒤로 = 허브 · 다시 뒤로 = 로비.
|
||||
/// 기대값은 표에서 읽는다(C45) · 장소 → 모드 연결 기대 = 개발 요청서 §0 + 컨텐츠 모드 4종(2026-11-18 · 성문 = 맹장 토벌전 · 탑 · 마구간·훈련장 = 보급전 · 비무대 = 투기장 · 집현전 = 연의 전기 · 군막 = 잠김).
|
||||
/// 기대값은 표에서 읽는다(C45) · 장소 → 모드 연결 기대 = 개발 요청서 §0 + 컨텐츠 모드 4종(2026-11-18 · 성문 = 맹장 토벌전 · 탑 · 훈련장 = 보급전 · 비무대 = 투기장 · 집현전 = 연의 전기 · 군막 = 잠김) ·
|
||||
/// PD 2026-11-19: 잠긴 투기장 · 맹장 토벌전 = 허브에서 막음(페이지 그대로 + 개방 조건 안내 · 이름표 자물쇠 + 상태 줄 개방 조건) · 마구간 = 「업데이트 예정입니다.」 안내만.
|
||||
/// </summary>
|
||||
public class ArenaHubTests
|
||||
{
|
||||
|
|
@ -81,15 +82,25 @@ namespace TKS.Tests
|
|||
Assert.Greater(hub.LayerRows, 0, "앞 층 json");
|
||||
Assert.AreEqual(hub.LayerRows, hub.LayerCount, "앞 층 그림");
|
||||
|
||||
// ② 글자 = 글자 표(키가 그대로 보이지 않음 · 값 자리 {n} 이 남지 않음)
|
||||
// ② 글자 = 글자 표(키가 그대로 보이지 않음 · 값 자리 {n} 이 남지 않음) · 잠김(PD 2026-11-19) = 이름 앞 자물쇠 + 상태 줄 개방 조건(투기장 · 맹장 토벌전 = 모드 해금 전 · 천하 쟁패 = 늘)
|
||||
Assert.IsTrue(UiText.Has(hub.S("lock_status")), "허브 표 lock_status 글자 키");
|
||||
int lockedTags = 0;
|
||||
foreach (var s in hub.Spots)
|
||||
{
|
||||
if (!s.hasTag || s.nameKey.Length == 0) continue;
|
||||
Assert.IsTrue(UiText.Has(s.nameKey) && UiText.Has(s.statusKey), s.id + ": 글자 표 키");
|
||||
Assert.AreEqual(UiText.T(s.nameKey), hub.NameOf(s.id), s.id + " 이름");
|
||||
Assert.IsFalse(hub.StatusOf(s.id).Contains("{"), s.id + " 상태 줄 값 자리: " + hub.StatusOf(s.id));
|
||||
Assert.AreEqual(UiText.F(s.statusKey, hub.Args(s)), hub.StatusOf(s.id), s.id + " 상태 줄");
|
||||
string stage;
|
||||
int page = ArenaHub.PageOf(s.open);
|
||||
bool modeLocked = og.Arena.PageLocked(page, out stage);
|
||||
Assert.AreEqual(page == 3 ? !LeagueRules.Unlocked(og.Session.Save) : page == 4 ? !RaidRules.Unlocked(og.Session.Save) : false, modeLocked, s.id + " 모드 잠김 판정");
|
||||
string want = modeLocked ? UiText.F(hub.S("lock_status"), new[] { stage }) : UiText.F(s.statusKey, hub.Args(s));
|
||||
Assert.AreEqual(want, hub.StatusOf(s.id), s.id + " 상태 줄");
|
||||
Assert.AreEqual(modeLocked || s.locked, hub.LockShown(s.id), s.id + " 이름표 자물쇠");
|
||||
if (modeLocked) lockedTags++;
|
||||
}
|
||||
Assert.AreEqual(2, lockedTags, "새 세이브 = 투기장 · 맹장 토벌전 잠김");
|
||||
// 실제 값 자리: 탑 = 최고 층 · 투기장 = 남은/최대(arena.entries_per_day + 산 입장) · 맹장 토벌전 최대 = 메인 + 서브 기록 도전
|
||||
var save = og.Session.Save;
|
||||
var tower = FindOpen(hub, "tower");
|
||||
|
|
@ -144,15 +155,17 @@ namespace TKS.Tests
|
|||
Assert.Greater(hits.Count, 0, "이름표 위 레이캐스트 없음");
|
||||
Assert.IsTrue(hits[0].gameObject.transform.IsChildOf(trt), "이름표 위 첫 결과 = 이름표: " + hits[0].gameObject.name);
|
||||
|
||||
// ⑥ 장소 누름 → 모드 페이지 / 팝업 · 뒤로 = 허브
|
||||
int checkedN = 0;
|
||||
// ⑥ 장소 누름 → 모드 페이지 / 팝업 · 뒤로 = 허브 · 잠긴 투기장 · 맹장 토벌전 = 페이지 그대로(0) + 개방 조건 안내(PD 2026-11-19) · 마구간(update) = 「업데이트 예정입니다.」 만
|
||||
int checkedN = 0, notices = 0, updates = 0;
|
||||
foreach (var s in hub.Spots)
|
||||
{
|
||||
if (s.open.Length == 0) continue;
|
||||
int want = ExpectedPage(s.open);
|
||||
string stage;
|
||||
bool locked = og.Arena.PageLocked(want, out stage);
|
||||
hub.Press(s.id);
|
||||
yield return null;
|
||||
int want = ExpectedPage(s.open);
|
||||
if (want > 0)
|
||||
if (want > 0 && !locked)
|
||||
{
|
||||
Assert.AreEqual(want, og.Arena.Page, s.id + " → 모드 페이지");
|
||||
Assert.IsFalse(og.Arena.HubVisible, s.id + ": 모드 페이지에서 허브 숨김");
|
||||
|
|
@ -160,7 +173,20 @@ namespace TKS.Tests
|
|||
else
|
||||
{
|
||||
Assert.IsTrue(og.ModalVisible, s.id + " → 안내 팝업");
|
||||
Assert.AreEqual(0, og.Arena.Page);
|
||||
Assert.AreEqual(0, og.Arena.Page, s.id + ": 페이지 그대로(허브)");
|
||||
Assert.IsTrue(og.Arena.HubVisible, s.id + ": 허브 그대로");
|
||||
if (locked)
|
||||
{
|
||||
LockOverlayCheck.AssertNotice(og, stage, s.id + " 잠김 안내");
|
||||
notices++;
|
||||
}
|
||||
if (s.open == "update")
|
||||
{
|
||||
var texts = LockOverlayCheck.ModalTexts();
|
||||
Assert.Contains(UiText.T(hub.S("update_key")), texts, s.id + ": 안내 글자 = 허브 표 update_key");
|
||||
Assert.Contains(UiText.T(hub.S("ok_key")), texts, s.id + ": 확인 버튼 글자 = 허브 표 ok_key");
|
||||
updates++;
|
||||
}
|
||||
}
|
||||
og.Back();
|
||||
yield return null;
|
||||
|
|
@ -171,6 +197,50 @@ namespace TKS.Tests
|
|||
checkedN++;
|
||||
}
|
||||
Assert.AreEqual(7, checkedN, "연결된 장소 7곳(요청서 §0)");
|
||||
Assert.AreEqual(2, notices, "잠긴 투기장 · 맹장 토벌전 = 개방 조건 안내");
|
||||
Assert.AreEqual(1, updates, "마구간 = 업데이트 예정 안내(허브 표 open stable|update)");
|
||||
var stable = hub.SpotOf("stable");
|
||||
Assert.IsNotNull(stable, "마구간 장소");
|
||||
Assert.AreEqual("update", stable.open, "마구간 = update(PD 2026-11-19)");
|
||||
Assert.AreEqual(UiText.T(stable.statusKey), hub.StatusOf(stable.id), "마구간 상태 줄 = 글자 표");
|
||||
|
||||
// ⑦ 해금 = 자물쇠 · 개방 조건 걷힘 → 누르면 모드 페이지 → 다시 잠그면 다시 안내(예전 카드 길과 같은 SetPage 판정)
|
||||
var keys = new[] { LeagueRules.UnlockStage, RaidRules.UnlockStage };
|
||||
foreach (var k in keys)
|
||||
{
|
||||
int ch, st;
|
||||
Assert.IsTrue(ArenaRules.ParseStageKey(k, out ch, out st), "해금 스테이지 키: " + k);
|
||||
save.Stage(ch, st, true).clears = 1;
|
||||
}
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
foreach (var open in new[] { "league", "raid" })
|
||||
{
|
||||
var sp = FindOpen(hub, open);
|
||||
Assert.IsNotNull(sp, open + " 장소");
|
||||
Assert.IsFalse(hub.LockShown(sp.id), sp.id + ": 해금 = 자물쇠 끔");
|
||||
Assert.AreEqual(UiText.F(sp.statusKey, hub.Args(sp)), hub.StatusOf(sp.id), sp.id + ": 해금 = 평소 상태 줄");
|
||||
hub.Press(sp.id);
|
||||
yield return null;
|
||||
Assert.IsFalse(og.ModalVisible, sp.id + ": 해금 = 안내 없음");
|
||||
Assert.AreEqual(ExpectedPage(open), og.Arena.Page, sp.id + ": 해금 = 모드 페이지");
|
||||
og.Back();
|
||||
yield return null;
|
||||
Assert.AreEqual(0, og.Arena.Page);
|
||||
}
|
||||
foreach (var k in keys)
|
||||
{
|
||||
int ch, st;
|
||||
ArenaRules.ParseStageKey(k, out ch, out st);
|
||||
save.Stage(ch, st, true).clears = 0;
|
||||
}
|
||||
og.Arena.SetPage(4); // 허브 밖(예전 카드 · 결과 화면 복귀) 길도 같은 판정
|
||||
yield return null;
|
||||
Assert.AreEqual(0, og.Arena.Page, "잠김 = SetPage 도 막음");
|
||||
LockOverlayCheck.AssertNotice(og, RaidRules.UnlockStage, "SetPage(4) 잠김 안내");
|
||||
og.CloseModal();
|
||||
yield return null;
|
||||
Assert.IsTrue(hub.LockShown(FindOpen(hub, "raid").id), "다시 잠김 = 자물쇠");
|
||||
og.Back();
|
||||
yield return null;
|
||||
Assert.IsTrue(og.LobbyVisible, "허브 뒤로 = 로비");
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ namespace TKS.Tests
|
|||
/// <summary>
|
||||
/// 투기장 아트 화면(PD 2026-11-18 「투기장 UI 완료」 · ArenaLeague) — 표(Resources/UI/League) = 화면: 목패 수 = 상대 수 · 유닛 = 출전 편성 · NPC = 표 npc 줄 ·
|
||||
/// 값 = 게임 데이터(계급 이름 · 남은 도전 · 새로고침 무료) · 글자 = 글자 표 키(값 자리 {n} 이 남지 않음) · 제목 띠 = 투기장 ·
|
||||
/// 캔버스 층(P41: 배경 Static · 유닛 Frame · 값·이름표·목패 Event + 레이캐스터) · 도전을 다 쓰면 목패 = 입장 구매 창 · 뒤로 = 허브(제목 띠 되돌림).
|
||||
/// 캔버스 층(P41: 배경 Static · 유닛 Frame · 값·이름표·목패 Event + 레이캐스터) · 도전을 다 쓰면 목패 = 입장 구매 창 · 뒤로 = 허브(제목 띠 되돌림) ·
|
||||
/// 해금 전 = 연무장에서 막음(페이지 그대로 + 개방 조건 안내 · PD 2026-11-19) · 있는 동안 잠기면 = 같은 화면 + 잠김 덮개(LockOverlay · 방어).
|
||||
/// 기대값은 표·규칙에서 읽는다(C45).
|
||||
/// </summary>
|
||||
public class ArenaLeagueTests
|
||||
|
|
@ -125,6 +126,38 @@ namespace TKS.Tests
|
|||
Assert.IsFalse(og.Arena.LeagueVisible, "허브로 돌아가면 투기장 화면 꺼짐");
|
||||
foreach (var t in header.GetComponentsInChildren<Text>(true))
|
||||
Assert.AreNotEqual(UiText.T("league_title"), t.text, "제목 띠 되돌림");
|
||||
|
||||
// ⑥ 해금 전 = 연무장에서 막음(PD 2026-11-19 「진입 전 단계(연무장)에서 진입을 막도록」): 페이지 그대로(허브) + 개방 조건 안내 팝업(덮개와 같은 조건 문장) · 투기장 화면 안 켜짐
|
||||
LockOverlayCheck.AssertUnlocked(lg.View, "투기장(열림)");
|
||||
d.Stage(lc, ls, true).clears = 0;
|
||||
Assert.IsFalse(LeagueRules.Unlocked(d));
|
||||
og.Arena.SetPage(3);
|
||||
yield return null;
|
||||
Assert.AreEqual(0, og.Arena.Page, "해금 전 = 투기장에 들어가지 않음");
|
||||
Assert.IsFalse(og.Arena.LeagueVisible, "해금 전 = 투기장 화면 안 켜짐");
|
||||
LockOverlayCheck.AssertNotice(og, LeagueRules.UnlockStage, "투기장");
|
||||
og.CloseModal();
|
||||
yield return null;
|
||||
|
||||
// ⑦ 방어: 투기장에 있는 동안 잠기면(서버 · 세이브가 바뀜) 다시 그릴 때 같은 화면 + 잠김 덮개 → 다시 열림 = 덮개 걷힘
|
||||
d.Stage(lc, ls, true).clears = 1;
|
||||
og.Arena.SetPage(3);
|
||||
yield return null;
|
||||
Assert.AreEqual(3, og.Arena.Page);
|
||||
d.Stage(lc, ls, true).clears = 0;
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
Assert.IsTrue(og.Arena.LeagueVisible, "있는 동안 잠김 = 같은 아트 화면");
|
||||
Assert.IsNotNull(lg.TextOf("Tier"), "잠김 계급 판");
|
||||
bool lockedTitle = false;
|
||||
foreach (var t in header.GetComponentsInChildren<Text>(true))
|
||||
if (t.text == UiText.T("league_title")) lockedTitle = true;
|
||||
Assert.IsTrue(lockedTitle, "잠김 제목 띠 = 투기장");
|
||||
LockOverlayCheck.AssertLocked(og, lg.View, LeagueRules.UnlockStage, "투기장");
|
||||
d.Stage(lc, ls, true).clears = 1;
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
LockOverlayCheck.AssertUnlocked(lg.View, "투기장(다시 열림)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,231 @@
|
|||
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 · ArenaRaid · 시안 mock_raid.png) — 게임 표(raid_rotation · content_modes_config raid.*) = 카드:
|
||||
/// 메인 · 서브 = RaidRules.BossOf · 이름 · 칭호 · 군령 = 표 · 배너 = 맹장 id 그림 · 점수 보너스 태그 · 제목 띠 · 값 자리 남음 없음 · 도전 → 다 쓰면 「도전함」 ·
|
||||
/// 넘김 = 다음 주 메인 미리 보기(RaidData.Schedule) · 훈장 상점 탭 = 상점 표 줄 수 · 상세 정보 창 · 해금 전 = 연무장에서 막음(개방 조건 안내 · PD 2026-11-19) · 있는 동안 잠기면 = 같은 화면 + 잠김 덮개(방어) ·
|
||||
/// 연습 버튼 · 넘김 아이콘 = 표 · 캔버스 층(P41). 기대값은 표·규칙에서 읽는다(C45).
|
||||
/// </summary>
|
||||
public class ArenaRaidTests
|
||||
{
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
SaveStore.UseMemory(false);
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
public IEnumerator Raid_Cards_Header_Go_Preview_Shop_Locked_Layers()
|
||||
{
|
||||
WorldProgress.Reset();
|
||||
SaveStore.UseMemory(true);
|
||||
SceneManager.LoadScene("Battle");
|
||||
yield return null;
|
||||
yield return null;
|
||||
var og = OutGameRoot.Instance;
|
||||
Assert.IsNotNull(og);
|
||||
var s = og.Session;
|
||||
var d = s.Save;
|
||||
int lc, ls;
|
||||
Assert.IsTrue(ArenaRules.ParseStageKey(ContentTables.Str(RaidData.Mode, "unlock_stage"), out lc, out ls), "해금 스테이지 키");
|
||||
d.Stage(lc, ls, true).clears = 1;
|
||||
og.ShowLobby();
|
||||
og.Show(og.Arena);
|
||||
og.Arena.SetPage(4);
|
||||
yield return null;
|
||||
yield return null;
|
||||
var rd = og.Arena.Raid;
|
||||
Assert.IsNotNull(rd, "맹장 토벌전 표(Resources/UI/Raid/raid_screen) 없음");
|
||||
Assert.IsTrue(og.Arena.RaidVisible, "맹장 토벌전 쪽 = 아트 화면");
|
||||
Assert.IsFalse(rd.Locked);
|
||||
|
||||
// ① 메인 · 서브 = 규칙 · 표 값
|
||||
string mainId = RaidRules.BossOf(d, RaidData.Main, s.Now), subId = RaidRules.BossOf(d, RaidData.Sub, s.Now);
|
||||
Assert.AreEqual(mainId, rd.MainId, "메인 맹장");
|
||||
Assert.AreEqual(subId, rd.SubId, "서브 맹장");
|
||||
var main = RaidData.Get(mainId);
|
||||
Assert.IsNotNull(main, "메인 맹장 표 줄");
|
||||
StringAssert.Contains(main.nameKo, rd.TextOf("Name_main"), "메인 이름");
|
||||
Assert.AreEqual(main.titleKo, rd.TextOf("Title_main"), "메인 칭호");
|
||||
Assert.AreEqual(main.orderBuffKo, rd.TextOf("Order_main"), "메인 군령");
|
||||
int expectCards = 1;
|
||||
var sub = RaidData.Get(subId);
|
||||
if (sub != null)
|
||||
{
|
||||
expectCards = 2;
|
||||
StringAssert.Contains(sub.nameKo, rd.TextOf("Name_sub"), "서브 이름");
|
||||
Assert.AreEqual(sub.orderBuffKo, rd.TextOf("Order_sub"), "서브 군령");
|
||||
}
|
||||
Assert.AreEqual(expectCards, rd.CardCount, "카드 수");
|
||||
Assert.AreEqual(3, rd.TileCount, "맹장 · 패턴 · 약점 칸");
|
||||
float mult = RaidData.ScoreMult(RaidData.Main);
|
||||
if (mult > 1.0001f)
|
||||
Assert.AreEqual(UiText.F("raid_tag_bonus", new[] { Mathf.RoundToInt((mult - 1f) * 100f).ToString() }), rd.TextOf("Bonus_mainText"), "점수 보너스 태그");
|
||||
var banner = Resources.Load<Sprite>(rd.S_("banner") + mainId);
|
||||
Assert.IsNotNull(banner, "메인 배너 그림");
|
||||
bool bannerOn = false;
|
||||
foreach (var img in rd.Art.GetComponentsInChildren<Image>(true))
|
||||
if (img.sprite == banner) bannerOn = true;
|
||||
Assert.IsTrue(bannerOn, "메인 배너가 카드에 없음");
|
||||
foreach (var kv in rd.Texts)
|
||||
Assert.IsFalse(kv.Value.text.Contains("{"), kv.Key + " 값 자리 남음: " + kv.Value.text);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(rd.TextOf("Time_main")), "메인 교대 줄 비어 있음");
|
||||
|
||||
// ② 제목 띠 = 표 제목 · 부제(메인 보너스 %)
|
||||
bool title = false, subT = false;
|
||||
foreach (var t in og.Arena.Rt.GetComponentsInChildren<Text>(true))
|
||||
{
|
||||
if (t.text == UiText.T(rd.S_("title_key"))) title = true;
|
||||
if (t.text == rd.Subtitle) subT = true;
|
||||
}
|
||||
Assert.IsTrue(title && subT, "제목 띠");
|
||||
|
||||
// ③ 층(P41)
|
||||
Assert.AreEqual(UiRate.Static, rd.Art.GetComponent<UiLayerInfo>().rate, "카드 그림 = Static");
|
||||
Assert.AreEqual(UiRate.Event, rd.Info.GetComponent<UiLayerInfo>().rate, "값 = Event");
|
||||
Assert.IsNotNull(rd.Info.GetComponent<GraphicRaycaster>(), "값 층 = 레이캐스터(버튼)");
|
||||
Assert.IsNull(rd.Art.GetComponent<GraphicRaycaster>(), "그림 층 = 누름 없음");
|
||||
Assert.AreEqual(UiRate.Frame, rd.Clock.GetComponent<UiLayerInfo>().rate, "교대 시간 = 따로(Frame)");
|
||||
|
||||
// ③-2 서브 연습 = 표 스킨 · 남색 틴트(QA M 「회색이라 꺼진 것처럼 보임」) · 넘김 = 표 아이콘을 표 각도로 돌린 채운 삼각형(QA M 「꺾쇠」)
|
||||
if (sub != null)
|
||||
{
|
||||
var pr = BtnRow("practice");
|
||||
Assert.IsNotNull(pr, "표 btn practice 줄");
|
||||
var pb = rd.ButtonOf("Practice_sub");
|
||||
Assert.IsNotNull(pb, "서브 연습 버튼");
|
||||
Assert.IsTrue(pb.interactable, "연습 = 누를 수 있음");
|
||||
var pimg = pb.GetComponent<Image>();
|
||||
var skin = UISkin.Theme.Skin(pr[2]);
|
||||
Assert.IsNotNull(skin, "연습 스킨(테마): " + pr[2]);
|
||||
Assert.AreEqual(skin.Sprite, pimg.sprite, "연습 스킨 = 표");
|
||||
Color tint;
|
||||
Assert.IsTrue(ColorUtility.TryParseHtmlString(pr[3], out tint));
|
||||
Assert.AreEqual(tint, pimg.color, "연습 틴트 = 표");
|
||||
}
|
||||
if (RaidData.Bosses().Count > 1)
|
||||
{
|
||||
var ar = rd.S_("arrows").Split('|');
|
||||
for (int s2 = 0; s2 < 2; s2++)
|
||||
{
|
||||
var b = rd.ButtonOf(s2 == 0 ? "Prev" : "Next");
|
||||
Assert.IsNotNull(b, "넘김 버튼");
|
||||
var ic = b.transform.Find("Icon_" + ar[4 + s2]);
|
||||
Assert.IsNotNull(ic, "넘김 아이콘(표): " + ar[4 + s2]);
|
||||
Assert.AreEqual(float.Parse(ar[7 + s2], System.Globalization.CultureInfo.InvariantCulture), Mathf.DeltaAngle(0f, ic.localEulerAngles.z), 0.01f, "넘김 아이콘 회전 = 표");
|
||||
}
|
||||
}
|
||||
|
||||
// ④ 도전 = 오늘 가능하면 「도전」 · 다 쓰면 「도전함」(꺼짐)
|
||||
Assert.AreEqual(UiText.T("raid_go"), rd.TextOf("Go_mainText"), "메인 도전");
|
||||
Assert.IsTrue(rd.ButtonOf("Go_main").interactable);
|
||||
int limit = RaidData.EntryLimit(RaidData.Main);
|
||||
Assert.Greater(limit, 0, "메인 하루 횟수");
|
||||
Counts.Add(d.raid.entries, RaidData.Main, limit);
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
Assert.AreEqual(UiText.T("raid_done"), rd.TextOf("Go_mainText"), "다 쓰면 도전함");
|
||||
Assert.IsFalse(rd.ButtonOf("Go_main").interactable);
|
||||
|
||||
// ⑤ 점수 띠 = 세이브 점수 · 내역
|
||||
d.raid.score = 24560;
|
||||
d.raid.mainDamage = 13290;
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
Assert.AreEqual(24560L.ToString("N0", System.Globalization.CultureInfo.InvariantCulture), rd.TextOf("Score"), "주간 점수");
|
||||
StringAssert.Contains(13290L.ToString("N0", System.Globalization.CultureInfo.InvariantCulture), rd.TextOf("Breakdown"), "메인 피해 내역");
|
||||
|
||||
// ⑥ 상세 정보 창(군령 · 패턴 · 빈틈)
|
||||
rd.ButtonOf("Detail_main").onClick.Invoke();
|
||||
yield return null;
|
||||
Assert.AreEqual(mainId, rd.LastDetail, "상세 정보 = 메인 맹장");
|
||||
og.CloseModal();
|
||||
|
||||
// ⑦ 넘김 = 다음 주 메인 미리 보기 → 되돌림
|
||||
if (RaidData.Bosses().Count > 1)
|
||||
{
|
||||
int mainDays = Mathf.Max(1, ContentTables.Int(RaidData.Mode, "main_days"));
|
||||
int w0, w1;
|
||||
string m1, s1, m0, s0;
|
||||
RaidData.Schedule(s.Now, out w0, out m0, out s0);
|
||||
var day = s.Now.ToLocalTime().Date;
|
||||
string next = null;
|
||||
for (int k = 1; k <= mainDays + 1 && next == null; k++)
|
||||
{
|
||||
RaidData.Schedule(day.AddDays(k), out w1, out m1, out s1);
|
||||
if (w1 != w0) next = m1;
|
||||
}
|
||||
rd.ButtonOf("Next").onClick.Invoke();
|
||||
yield return null;
|
||||
Assert.AreEqual(1, rd.Preview);
|
||||
Assert.AreEqual(next, rd.ShownMainId, "다음 주 메인");
|
||||
StringAssert.Contains(RaidData.Get(next).nameKo, rd.TextOf("Name_main"));
|
||||
Assert.IsNull(rd.ButtonOf("Go_main"), "미리 보기 = 도전 없음");
|
||||
rd.ButtonOf("Prev").onClick.Invoke();
|
||||
yield return null;
|
||||
Assert.AreEqual(0, rd.Preview);
|
||||
Assert.AreEqual(mainId, rd.ShownMainId);
|
||||
}
|
||||
|
||||
// ⑧ 훈장 상점 탭 = 상점 표 줄 · 토벌 탭으로 돌아옴
|
||||
rd.PressTab("shop");
|
||||
yield return null;
|
||||
Assert.AreEqual("shop", rd.Tab);
|
||||
Assert.AreEqual(ContentTables.Rows(RaidData.Shop).Count, rd.ShopRows, "상점 줄 수");
|
||||
Assert.AreEqual(0, rd.CardCount, "상점 탭 = 카드 없음");
|
||||
rd.PressTab("raid");
|
||||
yield return null;
|
||||
Assert.AreEqual(expectCards, rd.CardCount);
|
||||
|
||||
// ⑨ 해금 전 = 연무장에서 막음(PD 2026-11-19 「진입 전 단계(연무장)에서 진입을 막도록」): 페이지 그대로(허브) + 개방 조건 안내 팝업 · 맹장 토벌전 화면 안 켜짐
|
||||
LockOverlayCheck.AssertUnlocked(rd.View, "맹장 토벌전(열림)");
|
||||
d.Stage(lc, ls, true).clears = 0;
|
||||
og.Arena.SetPage(0);
|
||||
og.Arena.SetPage(4);
|
||||
yield return null;
|
||||
Assert.AreEqual(0, og.Arena.Page, "해금 전 = 맹장 토벌전에 들어가지 않음");
|
||||
Assert.IsFalse(og.Arena.RaidVisible, "해금 전 = 맹장 토벌전 화면 안 켜짐");
|
||||
LockOverlayCheck.AssertNotice(og, RaidRules.UnlockStage, "맹장 토벌전");
|
||||
og.CloseModal();
|
||||
yield return null;
|
||||
|
||||
// ⑩ 방어: 있는 동안 잠기면 다시 그릴 때 같은 아트 화면(평소 점수 띠) + 잠김 덮개 · 도전 잠김 → 다시 열림 = 덮개 걷힘
|
||||
d.Stage(lc, ls, true).clears = 1;
|
||||
og.Arena.SetPage(4);
|
||||
yield return null;
|
||||
Assert.AreEqual(4, og.Arena.Page);
|
||||
d.Stage(lc, ls, true).clears = 0;
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
Assert.IsTrue(og.Arena.RaidVisible);
|
||||
Assert.IsTrue(rd.Locked, "잠김");
|
||||
Assert.AreEqual(expectCards, rd.CardCount, "해금 전에도 맹장 카드");
|
||||
Assert.IsNotNull(rd.TextOf("Score"), "해금 전 = 평소 점수 띠");
|
||||
Assert.AreEqual(UiText.T("raid_locked_btn"), rd.TextOf("Go_mainText"), "메인 잠김");
|
||||
Assert.IsFalse(rd.ButtonOf("Go_main").interactable);
|
||||
LockOverlayCheck.AssertLocked(og, rd.View, RaidRules.UnlockStage, "맹장 토벌전");
|
||||
d.Stage(lc, ls, true).clears = 1;
|
||||
og.Arena.Refresh();
|
||||
yield return null;
|
||||
Assert.IsFalse(rd.Locked);
|
||||
LockOverlayCheck.AssertUnlocked(rd.View, "맹장 토벌전(다시 열림)");
|
||||
}
|
||||
|
||||
/// <summary>표 btn 줄(id|폭|스킨|틴트|…) 중 id 줄.</summary>
|
||||
static string[] BtnRow(string id)
|
||||
{
|
||||
foreach (var r in UiText.Rows(ArenaRaid.Table))
|
||||
if (r["s_key"] == "btn" && r["s_value"].StartsWith(id + "|"))
|
||||
return r["s_value"].Split('|');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b90d56a756a863e4dbe9c55bbaeba5a3
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using NUnit.Framework;
|
||||
using TKS.OutGame;
|
||||
using UnityEngine;
|
||||
|
|
@ -11,16 +12,40 @@ namespace TKS.Tests
|
|||
/// <summary>
|
||||
/// 훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 · ArenaSupply) — 게임 표(supply_dungeons) = 카드:
|
||||
/// 카드 수 = 던전 수 · 이름 = 표 이름(「전술 훈련」 포함 · 「연병장 훈련」 없음) · 요일 점 = 매일 열림 0 / 정해진 요일 = 여는 요일 수 · 닫힌 카드 = 오늘 안 여는 던전 ·
|
||||
/// 입장 = 단계 고르기(목록 꺼짐) → 뒤로 = 목록 · 해금 전 = 잠김 띠 · 캔버스 층(P41: 위 띠 Event · 목록 내용 Frame + 레이캐스터). 기대값은 표·규칙에서 읽는다(C45).
|
||||
/// 입장 = 단계 고르기(목록 꺼짐) → 뒤로 = 목록 · 캔버스 층(P41: 위 띠 Event · 목록 내용 Frame + 레이캐스터) ·
|
||||
/// 던전마다 개방 조건(PD 2026-11-19 · 표 s_unlock_stage · 비면 모드 기본) = 페이지는 열리고 잠긴 카드만 잠김 판(LockOverlay.ApplyCard) + 잠김 버튼 · 입장 판정도 던전 기준. 기대값은 표·규칙에서 읽는다(C45).
|
||||
/// </summary>
|
||||
public class ArenaSupplyTests
|
||||
{
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
SupplyRules.UnlockOverride.Clear();
|
||||
SaveStore.UseMemory(false);
|
||||
}
|
||||
|
||||
/// <summary>던전들이 쓰는 해금 스테이지 키(중복 없이).</summary>
|
||||
static List<string> UnlockKeys(List<SupplyData.Dungeon> all)
|
||||
{
|
||||
var keys = new List<string>();
|
||||
foreach (var dg in all)
|
||||
{
|
||||
var k = SupplyRules.UnlockStage(dg);
|
||||
if (!keys.Contains(k)) keys.Add(k);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
static void SetCleared(SaveData d, IEnumerable<string> keys, int clears)
|
||||
{
|
||||
foreach (var k in keys)
|
||||
{
|
||||
int ch, st;
|
||||
Assert.IsTrue(ArenaRules.ParseStageKey(k, out ch, out st), "해금 스테이지 키: " + k);
|
||||
d.Stage(ch, st, true).clears = clears;
|
||||
}
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
public IEnumerator Supply_Cards_Days_Closed_Enter_Locked_Layers()
|
||||
{
|
||||
|
|
@ -33,9 +58,17 @@ namespace TKS.Tests
|
|||
Assert.IsNotNull(og);
|
||||
var s = og.Session;
|
||||
var d = s.Save;
|
||||
int lc, ls;
|
||||
Assert.IsTrue(ArenaRules.ParseStageKey(ContentTables.Str(SupplyData.Mode, "unlock_stage"), out lc, out ls), "해금 스테이지 키");
|
||||
d.Stage(lc, ls, true).clears = 1;
|
||||
var all = SupplyData.AllDungeons();
|
||||
|
||||
// ⓪ 표 = 던전마다 해금 스테이지 칸(s_unlock_stage) · 빈 칸 = 모드 기본(supply.unlock_stage)
|
||||
foreach (var dg in all)
|
||||
{
|
||||
Assert.IsFalse(string.IsNullOrEmpty(dg.unlockStage), dg.id + ": 표 s_unlock_stage 비어 있음");
|
||||
Assert.AreEqual(dg.unlockStage, SupplyRules.UnlockStage(dg), dg.id + " 해금 스테이지 = 표");
|
||||
}
|
||||
Assert.AreEqual(ContentTables.Str(SupplyData.Mode, "unlock_stage"), SupplyRules.UnlockStage(new SupplyData.Dungeon { id = "_empty", unlockStage = "" }), "빈 칸 = 모드 기본");
|
||||
var keys = UnlockKeys(all);
|
||||
SetCleared(d, keys, 1);
|
||||
og.ShowLobby();
|
||||
og.Show(og.Arena);
|
||||
og.Arena.SetPage(2);
|
||||
|
|
@ -44,10 +77,9 @@ namespace TKS.Tests
|
|||
var sp = og.Arena.Supply;
|
||||
Assert.IsNotNull(sp, "훈련장 표(Resources/UI/Supply/supply_screen) 없음");
|
||||
Assert.IsTrue(og.Arena.SupplyVisible, "보급전 쪽 = 아트 목록");
|
||||
Assert.IsFalse(sp.Locked);
|
||||
Assert.AreEqual(0, sp.LockedCount, "모두 열림");
|
||||
|
||||
// ① 카드 = 던전 · 이름 · 요일 점 · 닫힘
|
||||
var all = SupplyData.AllDungeons();
|
||||
Assert.AreEqual(all.Count, sp.CardCount, "카드 수 = 던전 수");
|
||||
foreach (var dg in all)
|
||||
{
|
||||
|
|
@ -59,6 +91,7 @@ namespace TKS.Tests
|
|||
var t = sp.TextOf("GoText_" + dg.id);
|
||||
Assert.IsNotNull(t, dg.id + " 버튼 글자");
|
||||
Assert.IsFalse(t.Contains("{"), dg.id + " 값 자리 남음: " + t);
|
||||
LockOverlayCheck.AssertUnlocked(sp.CardOf(dg.id), dg.id + "(열림)");
|
||||
}
|
||||
Assert.IsNotNull(all.Find(x => x.nameKo == "전술 훈련"), "「전술 훈련」 이름(PD 2026-11-18)");
|
||||
foreach (var n in new[] { "Today", "Done", "Stamp", "Entries" })
|
||||
|
|
@ -95,14 +128,73 @@ namespace TKS.Tests
|
|||
yield return null;
|
||||
Assert.IsTrue(og.Arena.SupplyVisible, "뒤로 = 목록");
|
||||
|
||||
// ⑤ 해금 전 = 잠김 띠 · 모든 버튼 잠김
|
||||
d.Stage(lc, ls, true).clears = 0;
|
||||
// ⑤ 던전마다 개방 조건(PD 2026-11-19): 한 던전만 다른 조건(아직 안 깬 스테이지)으로 → 페이지는 그대로 열리고 그 카드만 잠김 판 + 잠김 버튼 · 입장 판정도 그 던전만 잠김
|
||||
var target = all.Find(x => x.id == SupplyData.Tactics) ?? all[all.Count - 1];
|
||||
BalanceConfig.StageDef last = null;
|
||||
foreach (var sd in og.Battle.Config.stages)
|
||||
if (last == null || sd.chapter > last.chapter || (sd.chapter == last.chapter && sd.stage > last.stage))
|
||||
last = sd;
|
||||
Assert.IsNotNull(last, "스테이지 표");
|
||||
string otherKey = last.chapter + "-" + last.stage;
|
||||
Assert.IsFalse(keys.Contains(otherKey), "다른 조건 = 지금 던전 조건과 다른 스테이지");
|
||||
SetCleared(d, new[] { otherKey }, 0);
|
||||
SupplyRules.UnlockOverride[target.id] = otherKey;
|
||||
og.Arena.SetPage(0);
|
||||
og.Arena.SetPage(2);
|
||||
yield return null;
|
||||
Assert.IsTrue(sp.Locked, "해금 전");
|
||||
Assert.AreEqual(UiText.F("supply_unlock", new[] { ContentTables.Str(SupplyData.Mode, "unlock_stage") }), sp.TextOf("LockText"), "잠김 띠");
|
||||
foreach (var dg in all) Assert.AreEqual(UiText.T("supply_locked_btn"), sp.TextOf("GoText_" + dg.id), dg.id + " 잠김");
|
||||
Assert.AreEqual(2, og.Arena.Page, "보급전 페이지 = 늘 들어감");
|
||||
Assert.IsTrue(og.Arena.SupplyVisible, "한 던전 잠김에도 아트 목록");
|
||||
Assert.IsNull(LockOverlay.Find(sp.View), "화면 전체 덮개 없음(던전마다 잠김)");
|
||||
Assert.AreEqual(1, sp.LockedCount, "잠긴 카드 = 그 던전 하나");
|
||||
foreach (var dg in all)
|
||||
{
|
||||
var go = sp.List.Find("Card_" + dg.id + "/Go_" + dg.id);
|
||||
Assert.IsNotNull(go, dg.id + " 입장 버튼");
|
||||
if (dg.id == target.id)
|
||||
{
|
||||
Assert.IsTrue(sp.IsLocked(dg.id), dg.id + " 잠김");
|
||||
Assert.AreEqual(UiText.T("supply_locked_btn"), sp.TextOf("GoText_" + dg.id), dg.id + " 잠김 버튼 글자");
|
||||
Assert.IsFalse(go.GetComponent<Button>().interactable, dg.id + " 잠김 입장 버튼 = 못 누름");
|
||||
var card = sp.CardOf(dg.id);
|
||||
var banner = card.Find("Banner").GetComponent<Image>();
|
||||
LockOverlayCheck.AssertCardLocked(og, card, banner.sprite, otherKey, dg.id + " 카드");
|
||||
Assert.IsFalse(SupplyRules.DungeonUnlocked(d, dg), dg.id + " 던전 해금 판정");
|
||||
int used0 = SupplyRules.Used(s.Db, d, dg.id, s.Now);
|
||||
var why = SupplyRules.Enter(s.Db, d, dg.id, SupplyData.AllTiers()[0].tier, s.Now);
|
||||
Assert.IsNotNull(why, dg.id + " 잠긴 던전 입장 거절");
|
||||
StringAssert.Contains(otherKey, why, dg.id + " 거절 까닭 = 그 던전 조건");
|
||||
Assert.AreEqual(used0, SupplyRules.Used(s.Db, d, dg.id, s.Now), dg.id + " 거절 = 횟수 그대로");
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.IsFalse(sp.IsLocked(dg.id), dg.id + " 열림");
|
||||
Assert.IsTrue(SupplyRules.DungeonUnlocked(d, dg), dg.id + " 던전 해금 판정");
|
||||
LockOverlayCheck.AssertUnlocked(sp.CardOf(dg.id), dg.id + "(다른 던전 잠김 중)");
|
||||
Assert.AreEqual(SupplyRules.OpenToday(dg, s.Now), go.GetComponent<Button>().interactable, dg.id + " 입장 버튼 = 오늘 열림 그대로");
|
||||
}
|
||||
}
|
||||
|
||||
// ⑥ 모든 던전 조건 해금 전 = 페이지는 열리고 카드 모두 잠김(위 띠 평소 그대로) → 다시 열림 = 잠김 판 걷힘
|
||||
SupplyRules.UnlockOverride.Clear();
|
||||
SetCleared(d, keys, 0);
|
||||
og.Arena.SetPage(0);
|
||||
og.Arena.SetPage(2);
|
||||
yield return null;
|
||||
Assert.AreEqual(2, og.Arena.Page);
|
||||
Assert.IsTrue(og.Arena.SupplyVisible, "해금 전에도 아트 목록");
|
||||
Assert.AreEqual(sp.CardCount, sp.LockedCount, "카드 모두 잠김");
|
||||
foreach (var n in new[] { "Today", "Done", "Stamp", "Entries" }) Assert.IsNotNull(sp.TextOf(n), "해금 전 = 평소 위 띠: " + n);
|
||||
foreach (var dg in all)
|
||||
{
|
||||
Assert.AreEqual(UiText.T("supply_locked_btn"), sp.TextOf("GoText_" + dg.id), dg.id + " 잠김");
|
||||
LockOverlayCheck.AssertCardLocked(og, sp.CardOf(dg.id), sp.CardOf(dg.id).Find("Banner").GetComponent<Image>().sprite, SupplyRules.UnlockStage(dg), dg.id + " 카드(모두 잠김)");
|
||||
}
|
||||
SetCleared(d, keys, 1);
|
||||
og.Arena.SetPage(0);
|
||||
og.Arena.SetPage(2);
|
||||
yield return null;
|
||||
Assert.AreEqual(0, sp.LockedCount);
|
||||
foreach (var dg in all) LockOverlayCheck.AssertUnlocked(sp.CardOf(dg.id), dg.id + "(다시 열림)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,146 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using NUnit.Framework;
|
||||
using TKS.OutGame;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace TKS.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// 잠긴 컨텐츠 표시(LockOverlay · PD 2026-11-18 「잠겨진 컨텐츠도 잠겨진 상태로 화면이 보여져야 · 어둡게 + 자물쇠 + 개방 조건」 · PD 2026-11-19 연무장에서 막음 · 던전마다 개방 조건) 공용 검사 —
|
||||
/// 화면 덮개(투기장 · 맹장 토벌전) · 카드 판(보급전 던전) · 들어가기 막음 안내 팝업(연무장 허브 · 투기장 · 맹장 토벌전 테스트). 기대값 = 덮개 표(Resources/UI/Lock/lock_overlay) · 글자 표 · 스테이지 표(BalanceConfig.stages)에서 읽는다(C45).
|
||||
/// </summary>
|
||||
public static class LockOverlayCheck
|
||||
{
|
||||
static Dictionary<string, string> Table()
|
||||
{
|
||||
var kv = new Dictionary<string, string>();
|
||||
var rows = UiText.Rows(LockOverlay.Table);
|
||||
Assert.IsNotNull(rows, "덮개 표 없음: " + LockOverlay.Table);
|
||||
foreach (var r in rows)
|
||||
if (!kv.ContainsKey(r["s_key"]))
|
||||
kv[r["s_key"]] = r["s_value"];
|
||||
return kv;
|
||||
}
|
||||
|
||||
static GameObject TopHit(Vector2 screen)
|
||||
{
|
||||
var hits = new List<RaycastResult>();
|
||||
EventSystem.current.RaycastAll(new PointerEventData(EventSystem.current) { position = screen }, hits);
|
||||
return hits.Count > 0 ? hits[0].gameObject : null;
|
||||
}
|
||||
|
||||
/// <summary>잠김: 덮개가 슬롯 맨 위 · 본문 칸만 · 자기 Event 층 + 레이캐스터 · 어둡기 = 표 · 자물쇠 · 「개방 조건」 · 조건 문장 = 스테이지 표 · 본문 누름은 덮개 · 제목 띠 누름은 덮개 밖.</summary>
|
||||
public static void AssertLocked(OutGameRoot og, Transform slot, string stageKey, string what)
|
||||
{
|
||||
var ov = LockOverlay.Find(slot);
|
||||
Assert.IsNotNull(ov, what + ": 잠김 덮개 없음");
|
||||
Assert.AreEqual(slot.childCount - 1, ov.GetSiblingIndex(), what + ": 덮개 = 화면 맨 위");
|
||||
Assert.AreEqual(OutGameRoot.TabBarH, ov.offsetMin.y, 0.01f, what + ": 덮개 아래끝 = 하단 탭 위");
|
||||
Assert.AreEqual(-(OutGameRoot.TopBarH + OutGameRoot.HeaderH), ov.offsetMax.y, 0.01f, what + ": 덮개 위끝 = 제목 띠 아래");
|
||||
|
||||
// 층(P41) = 자기 Event 캔버스 + 레이캐스터
|
||||
var c = ov.GetComponent<Canvas>();
|
||||
Assert.IsNotNull(c, what + ": 덮개 캔버스");
|
||||
Assert.IsFalse(c.overrideSorting, what + ": overrideSorting 끔");
|
||||
Assert.AreEqual(UiRate.Event, c.GetComponent<UiLayerInfo>().rate, what + ": 덮개 = Event");
|
||||
Assert.IsNotNull(ov.GetComponent<GraphicRaycaster>(), what + ": 덮개 레이캐스터(누름 막음)");
|
||||
|
||||
// 어둡기 · 자물쇠 = 표
|
||||
var kv = Table();
|
||||
var dm = kv["dim"].Split('|');
|
||||
var dim = ov.Find("Dim").GetComponent<Image>();
|
||||
Assert.IsTrue(dim.raycastTarget, what + ": 어둡게 판이 누름을 받음");
|
||||
Assert.AreEqual(float.Parse(dm[1], CultureInfo.InvariantCulture), dim.color.a, 0.001f, what + ": 어둡기 = 표");
|
||||
var lockSp = UISkin.Icon(kv["lock"].Split('|')[0]);
|
||||
Assert.IsNotNull(lockSp, what + ": 테마 자물쇠 아이콘");
|
||||
bool hasLock = false;
|
||||
foreach (var img in ov.GetComponentsInChildren<Image>(true))
|
||||
if (img.sprite == lockSp)
|
||||
hasLock = true;
|
||||
Assert.IsTrue(hasLock, what + ": 자물쇠 없음");
|
||||
|
||||
// 글자 = 글자 표 · 조건 = 스테이지 표 제목(못 찾으면 번호만)
|
||||
Assert.AreEqual(UiText.T("lock_title"), LockOverlay.TextOf(slot, LockOverlay.TitleName), what + ": 「개방 조건」");
|
||||
string want = Condition(og, stageKey);
|
||||
string got = LockOverlay.TextOf(slot, LockOverlay.CondName);
|
||||
Assert.AreEqual(want, got, what + ": 조건 문장");
|
||||
Assert.IsFalse(got.Contains("{"), what + ": 값 자리 남음: " + got);
|
||||
StringAssert.Contains(stageKey, got, what + ": 조건에 해금 스테이지 번호");
|
||||
|
||||
// 누름: 본문 가운데 = 덮개 · 제목 띠 = 덮개 밖(뒤로 버튼 그대로)
|
||||
var mid = RectTransformUtility.WorldToScreenPoint(og.Cam, ov.TransformPoint(ov.rect.center));
|
||||
var hit = TopHit(mid);
|
||||
Assert.IsNotNull(hit, what + ": 본문 가운데 레이캐스트 없음");
|
||||
Assert.IsTrue(hit.transform.IsChildOf(ov), what + ": 덮개가 아래 화면 누름을 막아야 함(맞은 것 = " + hit.name + ")");
|
||||
var header = og.Arena.Rt.Find("Header") as RectTransform;
|
||||
if (header != null)
|
||||
{
|
||||
var hp = RectTransformUtility.WorldToScreenPoint(og.Cam, header.TransformPoint(header.rect.center));
|
||||
var hh = TopHit(hp);
|
||||
Assert.IsTrue(hh == null || !hh.transform.IsChildOf(ov), what + ": 제목 띠 위가 덮개에 가림");
|
||||
}
|
||||
}
|
||||
|
||||
public static void AssertUnlocked(Transform slot, string what)
|
||||
{
|
||||
Assert.IsNull(LockOverlay.Find(slot), what + ": 열렸는데 잠김 덮개 남음");
|
||||
}
|
||||
|
||||
/// <summary>조건 문장 기대값 = 글자 표 + 스테이지 표 제목(못 찾으면 번호만).</summary>
|
||||
public static string Condition(OutGameRoot og, string stageKey)
|
||||
{
|
||||
var st = ArenaRules.FindStage(og.Battle.Config, stageKey);
|
||||
return st != null && !string.IsNullOrEmpty(st.title) ? UiText.F("lock_stage", new[] { stageKey, st.title }) : UiText.F("lock_stage_no_title", new[] { stageKey });
|
||||
}
|
||||
|
||||
/// <summary>떠 있는 팝업의 글자 전부(없으면 빈 목록).</summary>
|
||||
public static List<string> ModalTexts()
|
||||
{
|
||||
var list = new List<string>();
|
||||
var m = GameObject.Find("Modal");
|
||||
if (m != null)
|
||||
foreach (var t in m.GetComponentsInChildren<Text>(true))
|
||||
list.Add(t.text);
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>들어가기 막음 안내(PD 2026-11-19): 팝업 = 제목 「개방 조건」 + 조건 문장(덮개와 같은 글자 · 해금 스테이지 번호 포함) + 확인(글자 표).</summary>
|
||||
public static void AssertNotice(OutGameRoot og, string stageKey, string what)
|
||||
{
|
||||
Assert.IsTrue(og.ModalVisible, what + ": 개방 조건 안내 팝업 없음");
|
||||
var texts = ModalTexts();
|
||||
string want = Condition(og, stageKey);
|
||||
Assert.Contains(UiText.T("lock_title"), texts, what + ": 팝업 제목 = 「개방 조건」");
|
||||
Assert.Contains(want, texts, what + ": 팝업 조건 문장");
|
||||
Assert.Contains(UiText.T("lock_ok"), texts, what + ": 팝업 확인 버튼");
|
||||
StringAssert.Contains(stageKey, want, what + ": 조건에 해금 스테이지 번호");
|
||||
}
|
||||
|
||||
/// <summary>카드 하나만 잠김(PD 2026-11-19 보급전 던전): 판 = 카드 맨 위 · 어둡기 = 표 card_dim · 카드 그림 모양 · 누름 받음 · 자물쇠 · 「개방 조건」 · 조건 문장.</summary>
|
||||
public static void AssertCardLocked(OutGameRoot og, RectTransform card, Sprite shape, string stageKey, string what)
|
||||
{
|
||||
Assert.IsNotNull(card, what + ": 카드 없음");
|
||||
var ov = LockOverlay.Find(card);
|
||||
Assert.IsNotNull(ov, what + ": 카드 잠김 판 없음");
|
||||
Assert.AreEqual(card.childCount - 1, ov.GetSiblingIndex(), what + ": 잠김 판 = 카드 맨 위");
|
||||
var kv = Table();
|
||||
var dm = kv["card_dim"].Split('|');
|
||||
var dim = ov.Find("Dim").GetComponent<Image>();
|
||||
Assert.IsTrue(dim.raycastTarget, what + ": 어둡게 판이 누름을 받음");
|
||||
Assert.AreEqual(float.Parse(dm[1], CultureInfo.InvariantCulture), dim.color.a, 0.001f, what + ": 어둡기 = 표");
|
||||
Assert.AreEqual(shape, dim.sprite, what + ": 어둡게 = 카드 그림 모양");
|
||||
var lockSp = UISkin.Icon(kv["card_lock"].Split('|')[0]);
|
||||
Assert.IsNotNull(lockSp, what + ": 테마 자물쇠 아이콘");
|
||||
bool hasLock = false;
|
||||
foreach (var img in ov.GetComponentsInChildren<Image>(true))
|
||||
if (img.sprite == lockSp)
|
||||
hasLock = true;
|
||||
Assert.IsTrue(hasLock, what + ": 자물쇠 없음");
|
||||
Assert.AreEqual(UiText.T("lock_title"), LockOverlay.TextOf(card, LockOverlay.TitleName), what + ": 「개방 조건」");
|
||||
Assert.AreEqual(Condition(og, stageKey), LockOverlay.TextOf(card, LockOverlay.CondName), what + ": 조건 문장");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 77389d6324747ba46a99b1c26eb98d75
|
||||
|
|
@ -50,12 +50,14 @@ Unity.exe -projectPath <proj> -executeMethod TKS.EditorTools.ProjectSetup.AutoPl
|
|||
- **아웃게임 SOT = `Assets/Data/OutGame/*.csv`(12장 · 기획 `공유/기획팀_산출물/삼국지슬링샷/tables/` 사본 · utf-8-sig · 2026-11-05 #1093 A)** — 영웅·병사(`heroes.csv` · 구 `BalanceConfig.heroes[]` 대체) · 레벨·승급·진화·장비·뽑기·보상·재화·신규 유저 초기값(`economy.csv` start_*). 고친 뒤 메뉴 `TKS/Import OutGame Data (아웃게임 데이터 임포트)`(`Editor/DataImporter` · 오류 시 자산 불변) → `Resources/OutGame/` 9 자산. 표를 바꾸면 기획 `tables/` 도 같이.
|
||||
- **스킬(2026-11-10 #1112 전면 개편 · PD 엑셀 「장수 목록」 새 기획 144개)** — 수치 SOT = **`Assets/Data/OutGame/skill_effects.csv`(효과 1줄 = `skill_id · key · target · cond · dur · p1~p3` + 한글 주석 열 `effect_ko · p1_ko~p3_ko` = 밸런싱용 · 게임은 안 읽음)** · `skills.csv` = 이름·발동(next_action|instant|always)·쿨·설명 · `effect_key` = 효과 키 목록(p 칸 비움) · `heroes.csv gender`(m|f = 남성·여성 조건). 원본 = 기획 `tables/`(생성기 `_tables_t1.py` SKILL_EFFECTS · KEY_DOC 주석 사전 · 이름·설명 = `영웅_리스트_스킬.md` · 실행 뒤 `economy.csv`·`gacha.csv` 는 git 되돌림 = 생성기보다 손으로 늘린 판이 최신). 처리기 = `Runtime/Skills/`: `SkillKeys`(121종 · 레벨 계수 칸) · `SkillMods`(대상 칸 자신/allies/camp/radius/range/aura · 조건 칸 crit/vs_*/turn_le/armed · 공격·피해·치명타·반격·슬링 질의) · `SkillSystem`(쿨·예약 · 시한 효과 = 라운드(주인 진영 턴 시작마다 −1) · 피해 적용 `Hit(d, dmg, by, HitKind)` = 무적→무효화→호위→부활→흡혈·명중 상태 이상→처치 보상 · 재행동 `ReactCredits` · 즉시형 · `TurnBegin(side)` = 상대 턴 끝 회복·정화 + 중독·화상·회복·지대 · 행동 중 탭 `WaitTap`(조조·하후돈 · 테스트 `AutoTap`) · 지대 `SkillZone`) · `SkillStatus`(혼란·출혈·중독·화상 · 기절 = 기믹 `GimmickLayer.Stun` 재사용) · 특수 이동 = `ActionResolver`(관통·핀볼·복귀·교환·끌어오기·난동·반복) · 특수 사격 = `ActionResolver.Skills.cs`. 가상 실행 = `SkillSystem.TakeState/RestoreState`(Sim). PD 결정 18건(2026-11-10 · 대화로그 `2026-11-10_스킬구현.md`): 「1 m」 = 전장 1 칸 · 「행동 반경」 = 기본 슬링 거리 · 기획에 없는 지속 턴 = 1 · 출혈 = 슬링 최대 거리 이동 시 최대 HP 50 % · 망령 = 다음 자기 턴 시작에 1번 공격 후 소멸 · 육손 불 장벽 = 아군도 · 손건 화친 = 피해 없이 회복만 · 보병 목표점 추가 이동 제거. 테스트 = `Tests/PlayMode/SkillTests`(효과 묶음 26 · PD 결정·Fable 검토 반영 포함). 캡처 = `-executeMethod TKS.EditorTools.DataImporter.CaptureSkills -skillDir <dir>`.
|
||||
- **아웃게임 2차(2026-11-05~06 #1093 C)** — 표 10장 추가(`training` · `training_ranks` · `patrol` · `dev_tree` · `treasures` · `treasure_sets` · `chests`(+ iron/buy 열) · `tower` · `dungeons`(+ reward_amount) · `arena`(+ 상점 키)) + `economy.csv` C 키 24 → 임포트 자산 18(A 9 + C 9 · `OutGameTables.C.cs` 검증). 코드 = `OutGame/Domestic/`(`TrainingRules` 훈련 · `PatrolRules` 순찰 · `DevRules` 개발 효과 키 → 적용 지점 · `DomesticScreen`) · `OutGame/Treasure/`(`TreasureRules` 보유·세트·강화·조건 카운터·상자 · `TreasureScreen`) · `OutGame/Arena/`(`ArenaRules` 탑·던전·투기장·적장 · `ArenaScreen`). 스탯 = §3-2 × (1 + 훈련(병종·항목)) × (1 + 보물(항목)) = `HeroRules.Compute(…, save)` · 보물 crit/range/splash = `BattleManager.SideEffectsProvider` → `SkillMods.Get` 진영 효과(`side_crit_pct` · `range_mult` · `splash_radius_mult`) · 조건 효과 카운터 = `Runtime/BattleEvents.Raise`(전투 코드 1줄씩 · 아군만) · 연무장 전투 = `BattleManager.StartMode(BattleMode)`(적 편성 · 제한 턴 · 결과 탭 = `onExit`) → `OutGameSession.OnModeEnd`. 테스트 = `Tests/PlayMode/OutGameCTests`. 캡처 = `-executeMethod TKS.EditorTools.DataImporter.CaptureC -cDir <dir>`(사본 · 10장).
|
||||
- **연무장 허브(PD 2026-11-18 「게임 내 연무장 메뉴에 해당 리소스를 반영」 · 컨텐츠 모드 4종 위에 다시 얹음)** — 연무장 첫 페이지 = 성 안 풍경(`OutGame/Arena/ArenaHub` · 화면 맞춤 `ArenaHubView` = 기준 칸(16:9 1080×1920)이 다 담기는 최대 배율 · 좌우 끌기 스크롤 · 표·그림이 없으면 예전 모드 카드 + 연의 전기 입구). 표 = `Resources/UI/Yeonmu/`: `yeonmu_hub.csv`(키·값 · 장소 → 페이지 `open` = tower · supply(보급전 첫 화면) · league(투기장) · raid(맹장 토벌전) · scenario(연의 전기) · later(천하 쟁패 잠김) · 그림자 · 명패 · 고삐 · 안내 띠) · `yeonmu_actors.csv`(아트 시안 `mk_mock.py` UNITS) · `yeonmu_spots.csv`·`yeonmu_text.csv`·`bg_yeonmu.png`·`layers/*.png+json` = 아트 납품 그대로(새 그림 = 이 폴더 파일만 바꿔 끼움). 상태 줄 실제 값 = `ArenaHub.Args`(탑 최고 층 · 맹장 오늘 기록 도전 메인+서브 / 하루 최대 · 투기장 남은 / 하루 최대 · 맹장 주간 순위 = 서버 순위가 있을 때만 · 연의 전기 = 열린 편 중 연의 못 이긴 첫 편 · 없으면 장소 표 예시 값 · 마구간·훈련장 = 글자 키에 값 자리 없음). 글자 = `OutGame/UI/UiText`(가장 작은 로컬라이징 · 키 → 언어 칸 · 한글 하드코딩 금지). 층 = `Content`(Frame) → `Art`(Static) · `Scene`(Frame · 유닛·앞 층·고삐 `UiRope`) · `Tags`(Event · 레이캐스터 · 명패 `tre_plaque`·칩·점·자물쇠 = 아틀라스). 새 유닛 = `Units/horse_eat·horse_up·npc_repair·npc_rest·npc_doze`. 배경 임포트 = `UnitArtImporter` UI 풍경 분기(최대 4096 · Compressed). 테스트 = `Tests/PlayMode/ArenaHubTests`.
|
||||
- **연무장 허브(PD 2026-11-18 「게임 내 연무장 메뉴에 해당 리소스를 반영」 · 컨텐츠 모드 4종 위에 다시 얹음)** — 연무장 첫 페이지 = 성 안 풍경(`OutGame/Arena/ArenaHub` · 화면 맞춤 `ArenaHubView` = 기준 칸(16:9 1080×1920)이 다 담기는 최대 배율 · 좌우 끌기 스크롤 · 표·그림이 없으면 예전 모드 카드 + 연의 전기 입구). 표 = `Resources/UI/Yeonmu/`: `yeonmu_hub.csv`(키·값 · 장소 → 페이지 `open` = tower · supply(보급전 첫 화면 · 훈련장) · league(투기장) · raid(맹장 토벌전) · scenario(연의 전기) · later(천하 쟁패 잠김) · update(마구간 · `update_key` 글자 「업데이트 예정입니다.」 팝업만 · PD 2026-11-19) · 그림자 · 명패 · 고삐 · 안내 띠) · `yeonmu_actors.csv`(아트 시안 `mk_mock.py` UNITS) · `yeonmu_spots.csv`·`yeonmu_text.csv`·`bg_yeonmu.png`·`layers/*.png+json` = 아트 납품 그대로(새 그림 = 이 폴더 파일만 바꿔 끼움). 상태 줄 실제 값 = `ArenaHub.Args`(탑 최고 층 · 맹장 오늘 기록 도전 메인+서브 / 하루 최대 · 투기장 남은 / 하루 최대 · 맹장 주간 순위 = 서버 순위가 있을 때만 · 연의 전기 = 열린 편 중 연의 못 이긴 첫 편 · 없으면 장소 표 예시 값 · 마구간(「업데이트 예정」)·훈련장 = 글자 키에 값 자리 없음). **잠긴 모드 = 연무장에서 막음(PD 2026-11-19 「투기장, 맹장 토벌전의 경우, 진입 전 단계(연무장)에서 진입을 막도록」)** — `ArenaScreen.SetPage`(허브 누름 · 예전 카드 · 정산 차단과 같은 자리) → `PageLocked`(3 투기장 `LeagueRules.UnlockStage` · 4 맹장 `RaidRules.UnlockStage`)면 페이지 그대로 + `LockOverlay.Notice` 팝업(「개방 조건」 + 덮개와 같은 조건 문장 + 확인 · 글자 `lock_text`) · 이름표 = 이름 앞 자물쇠(천하 쟁패와 같은 모양) + 상태 줄 허브 표 `lock_status`(「출정 {0} 클리어 시 열림」) · 새 소식 점 끔 · 해금되면 `RefreshStatus` 가 걷음(`ArenaHub.IsLocked` · `LockStage` · `StatusText` · `LockShown`). 캡처 `arena_locked` · `arena_stable_notice`. 글자 = `OutGame/UI/UiText`(가장 작은 로컬라이징 · 키 → 언어 칸 · 한글 하드코딩 금지). 층 = `Content`(Frame) → `Art`(Static) · `Scene`(Frame · 유닛·앞 층·고삐 `UiRope`) · `Tags`(Event · 레이캐스터 · 명패 `tre_plaque`·칩·점·자물쇠 = 아틀라스). 새 유닛 = `Units/horse_eat·horse_up·npc_repair·npc_rest·npc_doze`. 배경 임포트 = `UnitArtImporter` UI 풍경 분기(최대 4096 · Compressed). 테스트 = `Tests/PlayMode/ArenaHubTests`.
|
||||
- **연무장 허브 연출(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 「투기장 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-19 · 페이지 그대로 + 개방 조건 안내 팝업 · 캡처 `arena_league_locked` = 허브 + 팝업) · 잠김 덮개(PD 2026-11-18) = 투기장에 있는 동안 잠긴 때만(방어) 같은 아트 화면 위에 `LockOverlay`(본문 칸만 어둡게 · 누름 막음 · 자물쇠 · 「개방 조건」 · 출정 장-번호 「스테이지 제목」 클리어 = `content_modes_config` arena.unlock_stage + 스테이지 표 · 표 `Resources/UI/Lock/`).
|
||||
- **연의 전기 아트 화면(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`.
|
||||
- **훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 「위 내용으로 게임에 반영 · 매일 열림 = 요일 없음 · 정해진 요일 = 여는 요일만 · 「/」 판 더 왼쪽으로 짧게 · 버튼과 유닛 안 겹치게」 · 시안 `content_screens_2/supply/final/mock/mock_s_*.png` · 레시피 R33)** — 연무장 보급전 쪽(page 2) 던전 목록 = `OutGame/Arena/ArenaSupply`(+ `ArenaScreen.Supply` 의 `LoadSupplyView` · `ShowSupplyView` · `OpenSupplyTiers` · 표·배너가 없으면 예전 더미 목록 `BuildSupplyList` · 입장 뒤 단계 고르기 = 예전 `BuildSupplyTiers` 그대로). 던전 · 이름 · 요일 · 제한 턴 · 보상 = 게임 표 `ContentModes/supply_dungeons`(「연병장 훈련」 → 「전술 훈련」 · PD 2026-11-18) · 화면 표 = `Resources/UI/Supply/`: `supply_screen.csv`(키·값 · 던전 id → 배너 · 글자 판 색 · 판 알파 · 위 띠 · 카드 · 칩 · 요일 점 · 보상 아이콘 · 입장 · 닫힘 판 배치) · `supply_text.csv`(UiText) · 배너 `banners/banner_<id>.png`(1040×360 · 둥근 모서리 · 테 굽기 · 단독 텍스처) · 「/」 판 `parts/panel_fill · panel_line`(흰 · 틴트 · 아틀라스 `UI_Supply`) · 그림 = 아트 폴더 `export_game.py`. 카드 = 배너(닫힌 날 · 해금 전 = 곱하기 색) · 판(이름 · 제한 턴 · 최고 단계 = 세이브 최고 기록 단계 · 요일 점 = 매일 열림이면 없음 · 정해진 요일이면 여는 요일만 · 오늘 = 금 고리 · 보상 칸(1개면 이름 글자)) · 오른쪽 열 = 남은 칩 + 입장(`btn_l_red` + 붉은 틴트) / 닫힌 날 = 「오늘 닫힘 · 여는 요일」 판 + 닫힘 / 해금 전 = 위 붉은 띠 + 잠김. 위 띠(고정) = 오늘 요일 · 오늘 완료 · 주간 도장 · 하루 횟수 · 광고. 층 = 화면 → Strip(Event) · 목록 `UiKit.ScrollGrid`(보는 칸 RectMask2D + 내용 Frame · 레이캐스터). 캡처 = `-uiOnly supply_list,supply_list_bottom,supply_locked`(해금 스테이지를 잠깐 바꿔 찍고 되돌림 · 오늘 요일 = 실제 날짜) · 테스트 = `ArenaSupplyTests`.
|
||||
- **훈련장(보급전) 메뉴 아트 목록(PD 2026-11-18 「위 내용으로 게임에 반영 · 매일 열림 = 요일 없음 · 정해진 요일 = 여는 요일만 · 「/」 판 더 왼쪽으로 짧게 · 버튼과 유닛 안 겹치게」 · 시안 `content_screens_2/supply/final/mock/mock_s_*.png` · 레시피 R33)** — 연무장 보급전 쪽(page 2) 던전 목록 = `OutGame/Arena/ArenaSupply`(+ `ArenaScreen.Supply` 의 `LoadSupplyView` · `ShowSupplyView` · `OpenSupplyTiers` · 표·배너가 없으면 예전 더미 목록 `BuildSupplyList` · 입장 뒤 단계 고르기 = 예전 `BuildSupplyTiers` 그대로). 던전 · 이름 · 요일 · 제한 턴 · 보상 = 게임 표 `ContentModes/supply_dungeons`(「연병장 훈련」 → 「전술 훈련」 · PD 2026-11-18) · 화면 표 = `Resources/UI/Supply/`: `supply_screen.csv`(키·값 · 던전 id → 배너 · 글자 판 색 · 판 알파 · 위 띠 · 카드 · 칩 · 요일 점 · 보상 아이콘 · 입장 · 닫힘 판 배치) · `supply_text.csv`(UiText) · 배너 `banners/banner_<id>.png`(1040×360 · 둥근 모서리 · 테 굽기 · 단독 텍스처) · 「/」 판 `parts/panel_fill · panel_line`(흰 · 틴트 · 아틀라스 `UI_Supply`) · 그림 = 아트 폴더 `export_game.py`. 카드 = 배너(닫힌 날 = 곱하기 색) · 판(이름 · 제한 턴 · 최고 단계 = 세이브 최고 기록 단계 · 요일 점 = 매일 열림이면 없음 · 정해진 요일이면 여는 요일만 · 오늘 = 금 고리 · 보상 칸(1개면 이름 글자)) · 오른쪽 열 = 남은 칩 + 입장(`btn_l_red` + 붉은 틴트) / 닫힌 날 = 「오늘 닫힘 · 여는 요일」 판 + 닫힘 / 잠긴 던전 = 잠김 버튼(못 누름) + 그 카드만 잠김 판. 위 띠(고정) = 오늘 요일 · 오늘 완료 · 주간 도장 · 하루 횟수 · 광고. 층 = 화면 → Strip(Event) · 목록 `UiKit.ScrollGrid`(보는 칸 RectMask2D + 내용 Frame · 레이캐스터). 캡처 = `-uiOnly supply_list,supply_list_bottom,supply_locked,supply_one_locked`(해금 스테이지를 잠깐 바꿔 찍고 되돌림 · 오늘 요일 = 실제 날짜) · 테스트 = `ArenaSupplyTests`. **던전마다 개방 조건(PD 2026-11-19 「보급전(훈련장)의 경우, 각 메뉴별로 각각 개방 조건 · 열리는 시점을 다르게 구성할 예정」)** = 표 `supply_dungeons.s_unlock_stage`(게임 표 + 기획 표 + 생성기 `_content_modes_gen.py` SUPPLY_DUNGEON_UNLOCK · 지금 4곳 모두 1-10 = 모드 기본과 같음 · 비면 모드 기본 supply.unlock_stage) → `SupplyRules.UnlockStage(dg)` · `DungeonUnlocked(d, dg)`(입장 `Can`/`Enter` 도 던전 기준 · 모드 하나짜리 `Unlocked(d)` 폐지 · 서버 모드 = 서버 판정 그대로 · 테스트·캡처 전용 `UnlockOverride`). 페이지(연무장 → 훈련장)는 늘 들어가고 화면 전체 덮개 없음 · 잠긴 카드만 `LockOverlay.ApplyCard`(카드 그림 모양 그대로 어둡게 + 자물쇠 + 「개방 조건」 + 그 던전 조건 문장 · 표 `lock_overlay` card_* × 화면 배율) · 캡처 `supply_locked`(모두) · `supply_one_locked`(병법 훈련만 · 스테이지 표 맨 끝 스테이지로 잠깐).
|
||||
- **맹장 토벌전 아트 화면(PD 2026-11-18 · 시안 `content_screens_2/raid_banner/final/mock_raid.png`)** — `OutGame/Arena/ArenaRaid.cs` · 표 `Resources/UI/Raid/` · 테스트 `ArenaRaidTests` · 캡처 `-uiOnly arena_raid,arena_raid_shop,arena_raid_locked`. 해금 전 = 연무장에서 막음(PD 2026-11-19 · 페이지 그대로 + 개방 조건 안내 팝업 · 캡처 `arena_raid_locked` = 허브 + 팝업) · 잠김 덮개 = 맹장 토벌전에 있는 동안 잠긴 때만(방어) 같은 카드 · 점수 띠(도전 = 잠김 버튼) + `LockOverlay`(raid.unlock_stage + 스테이지 제목) · 서브 「연습」 = 남색(흰 바탕 버튼 + 틴트 · 표 btn practice) · 넘김 = 채운 삼각형(테마 `arrow_down` 을 표 각도로 돌림 · 표 arrows).
|
||||
- **연무장 진입 막기 · 던전별 개방 · 마구간(PD 2026-11-19)** — 투기장 · 맹장 토벌전 = 해금 전이면 허브 장소(비무대 · 성문)를 눌러도 페이지로 안 가고 「개방 조건 · 출정 x-x 「스테이지」 클리어」 창만(이름표 = 자물쇠 + 「출정 x-x 클리어 시 열림」 · 표 `yeonmu_hub.csv` `lock_status` · `ArenaScreen.SetPage` 에서도 막음) · 보급전 = 페이지는 늘 열림 · 던전마다 개방 조건 `supply_dungeons.csv` `s_unlock_stage`(지금 4곳 모두 1-10 · 비면 모드 기본 `supply,unlock_stage` · 기획 표 · 생성기도 같은 칸) → 잠긴 카드만 그 카드 위에 어둡게 + 자물쇠 + 개방 조건 · 입장 판정도 던전별 · 마구간 = `open,stable|update` → 「업데이트 예정입니다.」 창만 · 캡처 `-uiOnly arena,arena_stable_notice,supply_one_locked` · 테스트 = ArenaHubTests · ArenaSupplyTests · ArenaLeagueTests · ArenaRaidTests.
|
||||
- **영웅 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`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue