qinglongserecttreasure commit
After Width: | Height: | Size: 540 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 909e965ce6faba24389d9a5bc5818d26
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 8d7d5773e020e8941b7113f788bfdf95
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9947a9def7df04047807a840a30d82b1
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: b358ea5c058dfeb40801acb11814897f
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 13 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: eaa24b195ff35dd4abf78a5478d14991
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: fc98cf96f4d601b409cb602d51116647
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 5.6 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 548b5611fdd01fe46ae94b657f5424df
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 54ece6705bf9253469ab4aeea1d1bd49
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 550 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 141559a361e21ae45b1c5acd1a6690bb
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5ebc453e50193174285553582f3e588b
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 32 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1144aac02180acd459ccb1acdd344c02
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 4a0a4f90c06984e43b6d8a8baead60b9
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 770 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aa6d51e09125b11469a29a303af4aa18
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: e8b8a5e77cfe61f469a93ab2f24d9919
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 1.2 MiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cf3e270a104770a4c8d0f6e01d844b2f
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 815909a0d231f914b80b5cd69702962d
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
After Width: | Height: | Size: 614 KiB |
|
@ -0,0 +1,88 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3ecd17b813efe2646ac05ad36b83bfa4
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
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
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 2
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 10ec439a1051bd7469fb6a53e00f07c0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ActivityAltas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -785,7 +785,10 @@ RedPointType = {
|
|||
Buddhist_Mirror = 10004, --佛禅宝镜
|
||||
Taoist_Mirror = 10005 , --道玄宝镜
|
||||
|
||||
Vientiane = 10005 , --万象境
|
||||
Vientiane = 10006 , --万象境
|
||||
|
||||
QinglongSerectTreasure = 10007,
|
||||
QinglongSerectTreasureTrail = 10008,
|
||||
}
|
||||
|
||||
RedPointStatus = {
|
||||
|
@ -1394,7 +1397,7 @@ HELP_TYPE = {
|
|||
TreasureResolve=60, --宝物分解
|
||||
HeroReplacement=61,--神将置换
|
||||
HeroCompound=62,--神将合成
|
||||
XuanYuanMirror=63,--轩辕宝镜
|
||||
XuanYuanMirror=66,--轩辕宝镜
|
||||
|
||||
}
|
||||
|
||||
|
@ -1783,6 +1786,7 @@ GENERAL_POPUP_TYPE={
|
|||
TalismanResolve=20,--法宝回归
|
||||
XuanYuanBuyTimes=21,--轩辕宝镜购买次数确认
|
||||
QinglongSerectTreasureBuyLevel = 22,--青龙秘宝购买等级
|
||||
HeavenUnlockExtraRewardPanel = 23, --青龙秘宝解锁
|
||||
}
|
||||
|
||||
--抽卡类型
|
||||
|
|
|
@ -167,7 +167,8 @@ local ManagerNames = {
|
|||
--天宫秘宝管理器
|
||||
"TreasureOfHeaven/TreasureOfHeavenManager",
|
||||
"Carbon/XuanYuanMirrorManager",
|
||||
|
||||
"Mission/QinglongSerectTreasureManager",
|
||||
|
||||
--!!!!红点管理(尽量放在最后)!!!!--
|
||||
"Player/RedpotManager",
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ ConfigName = {
|
|||
MainLevelConfig = "MainLevelConfig",
|
||||
MainLevelSettingConfig = "MainLevelSettingConfig",
|
||||
HeroReturn = "HeroReturn",
|
||||
TreasureSunLongConfig = "TreasureSunlongConfig",
|
||||
TreasureSunlongConfig = "TreasureSunlongConfig",
|
||||
TreasureSunLongTaskConfig = "TreasureSunlongTaskConfig",
|
||||
DialRewardSetting="DialRewardSetting",
|
||||
DialRewardConfig="DialRewardConfig",
|
||||
|
|
|
@ -386,7 +386,10 @@ GameEvent = {
|
|||
GetAllGift="GrowGift.GetAllGift"
|
||||
},
|
||||
TreasureOfHeaven={
|
||||
RechargeSuccess="TreasureOfHeaven.RechargeSuccess"
|
||||
RechargeSuccess="TreasureOfHeaven.RechargeSuccess",
|
||||
BuyQinglongSerectLevelSuccess="TreasureOfHeaven.BuyQinglongSerectLevelSuccess",
|
||||
RechargeQinglongSerectSuccess="TreasureOfHeaven.RechargeQinglongSerectSuccess",
|
||||
TaskRefresh = "TreasureOfHeaven.TaskRefresh",
|
||||
},
|
||||
CloseUI={
|
||||
OnClose="CloseUI.OnClose"
|
||||
|
|
|
@ -133,7 +133,7 @@ function this.InitActivityServerData(msg, isUpdate)
|
|||
for i, v in ipairs(msg.activityInfo) do
|
||||
this.mission[v.activityId] = v
|
||||
--LogGreen("刷新活动数据activityId:" .. v.activityId .. " value:" .. v.value)
|
||||
--LogGreen("v.activityId "..v.activityId)
|
||||
LogGreen("v.activityId "..v.activityId)
|
||||
for n, m in ipairs(v.mission) do
|
||||
--LogGreen(" 刷新活动数据missionId:" .. m.missionId .. " state:" .. m.state .. " progress:" .. m.progress)
|
||||
if (v.activityId == ActivityTypeDef.OnlineGift) then
|
||||
|
@ -236,6 +236,19 @@ function this.GetActivityTypeInfo(type)
|
|||
return missionData
|
||||
end
|
||||
|
||||
function this.GetActivityIdByType(type)
|
||||
local globalActConfigs = ConfigManager.GetAllConfigsDataByKey(ConfigName.GlobalActivity, "Type", type)
|
||||
local id = 0
|
||||
local missionData = nil
|
||||
table.walk(globalActConfigs, function(actConfigInfo)
|
||||
if this.mission[actConfigInfo.Id] then
|
||||
--LogError("actConfigInfo.Id "..actConfigInfo.Id)
|
||||
id = actConfigInfo.Id
|
||||
end
|
||||
end)
|
||||
return id
|
||||
end
|
||||
|
||||
function this.GetActivityValueInfo(type, Id)
|
||||
if this.mission[type] then
|
||||
-- LogBlue("this.mission[type].value:"..this.mission[type].value)
|
||||
|
@ -254,6 +267,12 @@ function this.GetActivityInfo(type, Id)
|
|||
return nil,0
|
||||
end
|
||||
end
|
||||
|
||||
function this.GetActivityInfoByType(type)
|
||||
if this.mission[type] then
|
||||
return this.mission[type]
|
||||
end
|
||||
end
|
||||
function this.SetActivityInfo(type, Id, state)
|
||||
for _, missInfo in pairs(this.mission[type].mission) do
|
||||
if missInfo.missionId == Id then
|
||||
|
@ -265,6 +284,7 @@ end
|
|||
|
||||
function this.GetActivityOpenStatus(type)
|
||||
if this.mission[type] then
|
||||
LogGreen(this.mission[type].reallyOpen)
|
||||
return this.mission[type].reallyOpen == 1
|
||||
else
|
||||
Log(string.format(Language[10002], type))
|
||||
|
@ -907,7 +927,6 @@ end
|
|||
--获取活动结束时间
|
||||
function this.GetTaskEndTime(activityType)
|
||||
local activityInfo = ActivityGiftManager.GetActivityTypeInfo(activityType)
|
||||
|
||||
local endTime = 0
|
||||
if activityInfo then
|
||||
endTime = activityInfo.endTime
|
||||
|
|
|
@ -442,7 +442,8 @@ function this.ExecuteLoading()
|
|||
[30] = function() NetManager.TreasureOfHeavenScoreRequest(LoadingPanel.OnStep) end, -- 天宫秘宝积分
|
||||
[31] = function() NetManager.RankFirstRequest({3,22,20,4,21},{0,0,0,0,20},LoadingPanel.OnStep) end, -- 排行榜数据
|
||||
[32] = function() NetManager.GetSituationInfoRequest(LoadingPanel.OnStep) end,
|
||||
[33] = function() -- 登录请求最终接口,所有请求放在此接口之前
|
||||
[33] = function() NetManager.RefreshTimeSLRequest(LoadingPanel.OnStep) end,
|
||||
[34] = function() -- 登录请求最终接口,所有请求放在此接口之前
|
||||
if AppConst.isGuide then
|
||||
if GuideManager.GetCurId(GuideType.Force) == 1 and PlayerManager.nickName == tostring(PlayerManager.uid) then
|
||||
--创号阶段先进入剧情对话,进入假战斗,然后对话起名,最后进入主界面
|
||||
|
|
|
@ -31,11 +31,7 @@ function MissionDailyTipPanel:BindEvent()
|
|||
PopupTipPanel.ShowTip(Language[11347])
|
||||
return
|
||||
end
|
||||
if showType == 1 then
|
||||
UIManager.OpenPanel(UIName.MissionDailyPanel,1)
|
||||
else
|
||||
UIManager.OpenPanel(UIName.MissionDailyPanel,2)
|
||||
end
|
||||
UIManager.OpenPanel(UIName.MissionDailyPanel,showType)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
|
|
|
@ -4,13 +4,17 @@ local this = MissionDailyPanel
|
|||
--子模块脚本
|
||||
local contentScripts = {
|
||||
--日常
|
||||
[1] = {view = require("Modules/Mission/MissionDailyPanel_Daily"), panelName = "MissionDailyPanel_Daily",type=1},
|
||||
[1] = {view = require("Modules/Mission/MissionDailyPanel_Daily"), panelName = "MissionDailyPanel_Daily",type=1},
|
||||
[2] = {view = require("Modules/Mission/MissionDailyPanel_QingLongSecretTreasure"), panelName = "MissionDailyPanel_QingLongSecretTreasure",type=2},
|
||||
[3] = {view = require("Modules/Mission/MissionDailyPanel_SecretTreasureTrail"), panelName = "MissionDailyPanel_SecretTreasureTrail",type=3} ,
|
||||
--成就
|
||||
[2] = {view = require("Modules/Mission/MissionDailyPanel_Achievement"), panelName = "MissionDailyPanel_Achievement",type=2},
|
||||
[4] = {view = require("Modules/Mission/MissionDailyPanel_Achievement"), panelName = "MissionDailyPanel_Achievement",type=4},
|
||||
}
|
||||
local TabBox = require("Modules/Common/TabBox")
|
||||
local _TabData={ [1] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = Language[11358] },
|
||||
[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = Language[11359] }, }
|
||||
[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "青龙秘宝" },
|
||||
[3] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "秘宝试炼" },
|
||||
[4] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = Language[11359]}, }
|
||||
local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
|
||||
select = Color.New(243 / 255, 235 / 255, 202 / 255, 1)}
|
||||
--子模块预设
|
||||
|
@ -67,16 +71,14 @@ function MissionDailyPanel:OnOpen(popupType,...)
|
|||
index = 1
|
||||
if RedPointManager.GetRedPointMissionDaily() then
|
||||
index = 1
|
||||
elseif TaskManager.GetAchievementState() then
|
||||
elseif QinglongSerectTreasureManager.GetQinglongSerectTreasureRedPot() then
|
||||
index = 2
|
||||
elseif QinglongSerectTreasureManager.GetSerectTreasureTrailRedPot() then
|
||||
index = 3
|
||||
elseif TaskManager.GetAchievementState() then
|
||||
index = 4
|
||||
end
|
||||
end
|
||||
--for i,v in pairs(contentScripts) do
|
||||
-- if popupType==v.type then
|
||||
-- index=i
|
||||
-- break
|
||||
-- end
|
||||
--end
|
||||
for i=1,#contentPrefabs do
|
||||
contentPrefabs[i].gameObject:SetActive(false)
|
||||
end
|
||||
|
@ -94,9 +96,11 @@ function MissionDailyPanel:OnShow()
|
|||
redPointList[i] =Util.GetGameObject(Util.GetGameObject(this.tabBox,"box").transform:GetChild(i-1).gameObject,"Redpot")
|
||||
redPointList[i]:SetActive(false)
|
||||
end
|
||||
if redPointList[1] and redPointList[2] then
|
||||
if redPointList[1] and redPointList[2] and redPointList[3] and redPointList[4] then
|
||||
BindRedPointObject(RedPointType.DailyTask, redPointList[1])
|
||||
BindRedPointObject(RedPointType.Achievement_Main, redPointList[2])
|
||||
BindRedPointObject(RedPointType.QinglongSerectTreasure, redPointList[2])
|
||||
BindRedPointObject(RedPointType.QinglongSerectTreasureTrail, redPointList[3])
|
||||
BindRedPointObject(RedPointType.Achievement_Main, redPointList[4])
|
||||
end
|
||||
end
|
||||
function MissionDailyPanel:OnSortingOrderChange()
|
||||
|
@ -113,6 +117,13 @@ function this.TabAdapter(tab, index, status)
|
|||
end
|
||||
--切换视图
|
||||
function this.SwitchView(_index)
|
||||
if _index == 2 or _index == 3 then
|
||||
local id =ActivityGiftManager.GetActivityIdByType(8)
|
||||
if not ActivityGiftManager.GetActivityOpenStatus(id) then
|
||||
PopupTipPanel.ShowTip("未在活动时间范围内")
|
||||
return
|
||||
end
|
||||
end
|
||||
--先执行上一面板关闭逻辑
|
||||
local oldSelect
|
||||
oldSelect, index = index, _index
|
||||
|
@ -127,7 +138,11 @@ function this.SwitchView(_index)
|
|||
contentScripts[index].view:OnShow(this)
|
||||
if index == 1 then
|
||||
this.titleText.text = Language[11358]
|
||||
else
|
||||
elseif index == 2 then
|
||||
this.titleText.text = "青龙秘宝"
|
||||
elseif index == 3 then
|
||||
this.titleText.text = "秘宝试炼"
|
||||
elseif index == 4 then
|
||||
this.titleText.text = Language[11360]
|
||||
end
|
||||
end
|
||||
|
@ -138,6 +153,8 @@ function MissionDailyPanel:OnClose()
|
|||
end
|
||||
ClearRedPointObject(RedPointType.DailyTask)
|
||||
ClearRedPointObject(RedPointType.Achievement_Main)
|
||||
ClearRedPointObject(RedPointType.QinglongSerectTreasure)
|
||||
ClearRedPointObject(RedPointType.QinglongSerectTreasureTrail)
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
|
@ -251,7 +251,7 @@ function this.SetDailyMissionBox(_missionDatas)
|
|||
Util.GetGameObject(boxList[i], "UI_Effect_BaoXiang_KaiQi/KaiQi"):SetActive(v.state==SingleDailyMissionState.GetFinish)
|
||||
Util.GetGameObject(boxList[i], "getFinish"):SetActive(false)
|
||||
|
||||
Util.GetGameObject(boxList[i], "redPoint"):SetActive(v.state==SingleDailyMissionState.Finish)
|
||||
Util.GetGameObject(boxList[i], "redPoint"):SetActive(false)
|
||||
Util.GetGameObject(boxList[i], "UI_Effect_BaoXiang_KeKaiQi"):SetActive(v.state==SingleDailyMissionState.Finish)
|
||||
|
||||
Util.AddOnceClick(boxList[i], function()
|
||||
|
|
|
@ -0,0 +1,297 @@
|
|||
----- 日常任务弹窗 -----
|
||||
local this = {}
|
||||
--传入父脚本模块
|
||||
local parent
|
||||
--传入特效层级
|
||||
local sortingOrder=0
|
||||
|
||||
local curScore = 0--当前分数
|
||||
local treasureState = 0
|
||||
local itemsList={}
|
||||
function this:InitComponent(gameObject)
|
||||
--topBar/btnBack
|
||||
this.gameObject = gameObject
|
||||
this.quesBtn = Util.GetGameObject(this.gameObject, "bg/topBar/quesBtn")
|
||||
this.helpPosition= this.quesBtn:GetComponent("RectTransform").localPosition
|
||||
this.tips = Util.GetGameObject(this.gameObject, "bg/topBar/tips"):GetComponent("Text")
|
||||
this.time = Util.GetGameObject(this.gameObject, "bg/topBar/time/Text"):GetComponent("Text")
|
||||
|
||||
this.buyBtn = Util.GetGameObject(this.gameObject, "bg/topBar/button/buyBtn")
|
||||
this.buyBtnText = Util.GetGameObject(this.buyBtn, "Text"):GetComponent("Text")
|
||||
this.jiesuoBtn = Util.GetGameObject(this.gameObject, "bg/topBar/button/jiesuoBtn")
|
||||
this.jiesuoBtnText = Util.GetGameObject(this.jiesuoBtn, "Text"):GetComponent("Text")
|
||||
|
||||
this.lv = Util.GetGameObject(this.gameObject, "bg/topBar/Image/lv"):GetComponent("Text")
|
||||
|
||||
--Content
|
||||
this.progress = Util.GetGameObject(this.gameObject, "bg/topBar/progress/Image"):GetComponent("Image")
|
||||
this.scoreText = Util.GetGameObject(this.gameObject, "bg/topBar/progress/Text"):GetComponent("Text")
|
||||
|
||||
this.remainTime = Util.GetGameObject(this.gameObject, "bg/topBar/remainTime/Text"):GetComponent("Text")
|
||||
this.box = Util.GetGameObject(this.gameObject, "topBar/box")
|
||||
this.extra = Util.GetGameObject(this.gameObject, "topBar/extraBox")
|
||||
this.canOpenExtra = Util.GetGameObject(this.gameObject, "topBar/UI_Effect_BaoXiang_KeKaiQi")
|
||||
this.canOpenExtra.gameObject:SetActive(false)
|
||||
this.openExtra = Util.GetGameObject(this.gameObject, "topBar/UI_Effect_BaoXiang_KaiQi")
|
||||
this.openExtra.gameObject:SetActive(false)
|
||||
|
||||
this.treasureList = Util.GetGameObject(this.gameObject, "bg/pageContent/treasureList")
|
||||
local v2 = this.treasureList:GetComponent("RectTransform").sizeDelta
|
||||
this.itemPre = Util.GetGameObject(this.treasureList, "itemPro")
|
||||
|
||||
--设置滚动条
|
||||
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView,this.treasureList.transform,
|
||||
this.itemPre,nil,Vector2.New(v2.x, v2.y),1,1,Vector2.New(100,3.5))
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").anchoredPosition = Vector2.New(0, 0)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").anchorMin = Vector2.New(0.5, 0.5)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").anchorMax = Vector2.New(0.5, 0.5)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").pivot = Vector2.New(0.5, 0.5)
|
||||
this.ScrollView.moveTween.MomentumAmount = 1
|
||||
this.ScrollView.moveTween.Strength = 2
|
||||
end
|
||||
|
||||
function this:BindEvent()
|
||||
Util.AddClick(this.quesBtn,function()
|
||||
LogGreen(this.helpPosition.x.."+"..this.helpPosition.y)
|
||||
UIManager.OpenPanel(UIName.HelpPopup,99999,this.helpPosition.x,this.helpPosition.y)
|
||||
end)
|
||||
end
|
||||
function this:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.BuyQinglongSerectLevelSuccess, this.refresh)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityOpenOrClose,this.CloseFunction)
|
||||
end
|
||||
|
||||
function this:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.BuyQinglongSerectLevelSuccess, this.refresh)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClose,this.Closefunction)
|
||||
end
|
||||
this.Closefunction = function()
|
||||
Timer.New(function()
|
||||
local id = ActivityGiftManager.GetActivityIdByType(8)
|
||||
LogBlue("收到了关闭活动的消息,id:"..id)
|
||||
if not ActivityGiftManager.GetActivityOpenStatus(id) then
|
||||
parent.SwitchView(1)
|
||||
return
|
||||
else
|
||||
this.refresh()
|
||||
end
|
||||
end,1):Start()
|
||||
end
|
||||
function this:OnShow(_parent,...)
|
||||
parent=_parent
|
||||
sortingOrder = _parent.sortingOrder
|
||||
|
||||
this.tips.text = "完成日常任务和秘宝试炼以提升秘宝等级,领取对应奖励,解锁秘宝可领取额外奖励"
|
||||
local startTime,endTime,endTimeScale = QinglongSerectTreasureManager.GetTimeStartToEnd()
|
||||
this.time.text = "活动时间:"..startTime.."-"..endTime
|
||||
this.remainTime.text = "剩余时间:"..TimeToDHMS(tonumber(endTimeScale) - GetTimeStamp())
|
||||
this:ShowTime(endTimeScale)
|
||||
this.refresh()
|
||||
|
||||
end
|
||||
function this:OnSortingOrderChange(sortingOrder)
|
||||
Util.SetParticleSortLayer(this.canOpenExtra, sortingOrder)
|
||||
Util.SetParticleSortLayer(this.openExtra, sortingOrder)
|
||||
end
|
||||
|
||||
function this:OnClose()
|
||||
if self.localTimer then
|
||||
self.localTimer:Stop()
|
||||
self.localTimer = nil
|
||||
end
|
||||
end
|
||||
function this:OnDestroy()
|
||||
itemsList={}
|
||||
end
|
||||
|
||||
this.refresh = function()
|
||||
this:topBar()
|
||||
this:showTaskList()
|
||||
end
|
||||
|
||||
--topBar按钮状态
|
||||
function this:topBar()
|
||||
--设置礼包购买按钮状态
|
||||
treasureState = QinglongSerectTreasureManager.GetTreasureState()--秘宝礼包状态 0:可购买 1:已购买
|
||||
curScore = QinglongSerectTreasureManager.GetScore()
|
||||
local lv = QinglongSerectTreasureManager.GetLevel()
|
||||
this.lv.text = lv
|
||||
local rewardData = QinglongSerectTreasureManager.GetRewardData(lv)
|
||||
local lastRewardData = QinglongSerectTreasureManager.GetRewardData(lv)
|
||||
if lv ~= 0 then
|
||||
lastRewardData = QinglongSerectTreasureManager.GetRewardData(lv - 1)
|
||||
end
|
||||
if rewardData.needScore ~= 0 then
|
||||
this.scoreText.text = curScore .."/"..rewardData.needScore - lastRewardData.needScore
|
||||
this.progress.fillAmount = curScore/(rewardData.needScore - lastRewardData.needScore)
|
||||
else
|
||||
this.scoreText.text = "最大等级"
|
||||
this.progress.fillAmount = 1
|
||||
end
|
||||
this.jiesuoBtn:GetComponent("Button").enabled = (treasureState == 0)
|
||||
this.jiesuoBtnText.text = ((treasureState == 0) and "解锁秘宝" or "已解锁")
|
||||
Util.AddOnceClick(this.jiesuoBtn,function()
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.HeavenUnlockExtraRewardPanel,2)
|
||||
end)
|
||||
this.buyBtn:GetComponent("Button").enabled = (rewardData.needScore ~= 0)
|
||||
this.buyBtnText.text = ((rewardData.needScore == 0) and "最大等级" or "购买等级")
|
||||
Util.AddOnceClick(this.buyBtn,function()
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.QinglongSerectTreasureBuyLevel)
|
||||
end)
|
||||
local times = PrivilegeManager.GetPrivilegeRemainValue(1007)
|
||||
this.box :GetComponent("Image").enabled = ((not (treasureState == 0)) and (times > 0))
|
||||
this.extra:GetComponent("Button").enabled = ((not (treasureState == 0)) and (times > 0))
|
||||
this.canOpenExtra.gameObject:SetActive((not (treasureState == 0)) and (times > 0))
|
||||
this.openExtra:GetComponent("Animator").enabled = false
|
||||
this.openExtra.gameObject:SetActive((not (treasureState == 0)) and (times <= 0))
|
||||
Util.GetGameObject(this.openExtra,"MeiKaiQi"):SetActive(false)
|
||||
Util.GetGameObject(this.openExtra,"KaiQi"):SetActive(true)
|
||||
Util.AddOnceClick(this.extra,function()
|
||||
this.extra:GetComponent("Button").enabled = false
|
||||
this.canOpenExtra.gameObject:SetActive(false)
|
||||
this.openExtra.gameObject:SetActive(true)
|
||||
Util.GetGameObject(this.openExtra,"KaiQi"):SetActive(false)
|
||||
Util.GetGameObject(this.openExtra,"MeiKaiQi"):SetActive(true)
|
||||
this.openExtra:GetComponent("Animator").enabled = true
|
||||
Timer.New(function()
|
||||
local id = ActivityGiftManager.GetActivityIdByType(8)
|
||||
NetManager.GetActivityRewardRequest(-2,id,function(msg)
|
||||
PrivilegeManager.RefreshPrivilegeUsedTimes(1007, 1)
|
||||
this.refresh(curType)
|
||||
end)
|
||||
end,1.5):Start()
|
||||
end)
|
||||
end
|
||||
|
||||
--任务列表
|
||||
function this:showTaskList()
|
||||
local rewardData = QinglongSerectTreasureManager.GetAllRewardData()
|
||||
this.ScrollView:SetData(rewardData,function(index, rewardItem)
|
||||
this:SingleTask(rewardItem, rewardData[index])
|
||||
end)
|
||||
|
||||
-- --定位打开界面时位置
|
||||
-- local t = 0
|
||||
-- if treasureState == 0 then
|
||||
-- for i = 1, #rewardStateData do
|
||||
-- if rewardStateData[i].state == 0 then
|
||||
-- t = i
|
||||
-- break
|
||||
-- end
|
||||
-- end
|
||||
-- elseif treasureState == 1 then
|
||||
-- for i = 1, #rewardStateData do
|
||||
-- if rewardStateData[i].state == 1 or rewardStateData[i].state == 0 then
|
||||
-- t = i
|
||||
-- breakPopupTipPanel
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
--this.ScrollView:SetIndex(t-2)
|
||||
end
|
||||
|
||||
|
||||
--单个任务
|
||||
function this:SingleTask(rewardItem, rewardSingleData)
|
||||
local scoreLevel = Util.GetGameObject(rewardItem, "scoreLevel"):GetComponent("Text")
|
||||
local pos1 = Util.GetGameObject(rewardItem, "itemPos_1")
|
||||
local pos3 = Util.GetGameObject(rewardItem, "itemPos_3")
|
||||
local pos4 = Util.GetGameObject(rewardItem, "itemPos_4")
|
||||
|
||||
if not itemsList[rewardItem] then
|
||||
local item1 = SubUIManager.Open(SubUIConfig.ItemView, pos1.transform)
|
||||
local item3 = SubUIManager.Open(SubUIConfig.ItemView, pos3.transform)
|
||||
local item4 = SubUIManager.Open(SubUIConfig.ItemView, pos4.transform)
|
||||
itemsList[rewardItem] ={item1,item3,item4}
|
||||
end
|
||||
|
||||
scoreLevel.text = rewardSingleData.level
|
||||
itemsList[rewardItem][1]:OnOpen(false, rewardSingleData.Reward[1].item, 0.8, false)
|
||||
itemsList[rewardItem][2]:OnOpen(false, rewardSingleData.Reward[2].item, 0.8, false)
|
||||
if rewardSingleData.Reward[3] then
|
||||
itemsList[rewardItem][3]:OnOpen(false, rewardSingleData.Reward[3].item, 0.8, false)
|
||||
else
|
||||
itemsList[rewardItem][3].gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
--初始化按钮状态
|
||||
this:InitButtonState(rewardItem, rewardSingleData)
|
||||
end
|
||||
local type={
|
||||
[-2]={sprite = "s_slbz_1anniuhuise",text = "未达成"},
|
||||
[-1]={sprite = "t_tequan_yidacheng",text = ""},
|
||||
[0]={sprite = "s_slbz_1anniuongse",text = "领取"},
|
||||
[1]={sprite = "s_slbz_1anniuhuangse",text = "再次领取"}
|
||||
}
|
||||
--初始化按钮状态
|
||||
function this:InitButtonState(rewardItem, rewardSingleData)
|
||||
|
||||
local btnDeal = Util.GetGameObject(rewardItem, "btnDeal")
|
||||
|
||||
local get = Util.GetGameObject(rewardItem, "btnDeal/get"):GetComponent("Image")
|
||||
local text = Util.GetGameObject(get.gameObject, "Text"):GetComponent("Text")
|
||||
local redPoint = Util.GetGameObject(rewardItem, "btnDeal/redPoint")
|
||||
--当前任务领取情况
|
||||
local state = rewardSingleData.state
|
||||
Util.GetGameObject(get.gameObject, "Image"):SetActive(state == -1)
|
||||
redPoint:SetActive(state == 0 or (state == 1 and treasureState > 0))
|
||||
get.sprite = Util.LoadSprite(type[state].sprite)
|
||||
get.enabled = true
|
||||
text.text = type[state].text
|
||||
if state == -1 then
|
||||
btnDeal:GetComponent("Button").enabled = false
|
||||
get.enabled = false
|
||||
else
|
||||
btnDeal:GetComponent("Button").enabled = true
|
||||
Util.AddOnceClick(btnDeal,function()
|
||||
this:OnBtnDealClicked(rewardItem,rewardSingleData)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
--按钮事件
|
||||
function this:OnBtnDealClicked(rewardItem,rewardSingleData)
|
||||
if rewardSingleData.state ~= -2 then--分数达到要求
|
||||
if (rewardSingleData.state == 0) or--任务未领取
|
||||
(rewardSingleData.state == 1 and treasureState > 0) then--任务未领取+礼包已购买
|
||||
local id = ActivityGiftManager.GetActivityIdByType(8)
|
||||
LogBlue("activityId:"..id)
|
||||
NetManager.GetActivityRewardRequest(rewardSingleData.level,id,function(msg)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup,msg,1)
|
||||
--需要刷新界面
|
||||
if treasureState == 0 then--判断是否已经购买了礼包
|
||||
QinglongSerectTreasureManager.SetSingleRewardState(rewardSingleData.level,1)
|
||||
else
|
||||
QinglongSerectTreasureManager.SetSingleRewardState(rewardSingleData.level,-1)
|
||||
end
|
||||
this.refresh()--刷新界面
|
||||
end)
|
||||
elseif rewardSingleData.state == 1 and treasureState == 0 then----任务已领取+礼包未购买(弹出购买界面)
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.HeavenUnlockExtraRewardPanel,2)
|
||||
end
|
||||
else--分数未达到要求
|
||||
PopupTipPanel.ShowTip(Language[11989])
|
||||
end
|
||||
end
|
||||
|
||||
function this:ShowTime(endtime)
|
||||
if self.timer then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
end
|
||||
local timeDown= endtime - GetTimeStamp()
|
||||
this.remainTime.text = "剩余时间:"..TimeToDHMS(timeDown)
|
||||
self.timer = Timer.New(function()
|
||||
if timeDown < 1 then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
return
|
||||
end
|
||||
timeDown = timeDown - 1
|
||||
this.remainTime.text = "剩余时间:"..TimeToDHMS(timeDown)
|
||||
end, 1, -1, true)
|
||||
self.timer:Start()
|
||||
end
|
||||
return this
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a07db0bf332d2144d82702b4de348961
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,265 @@
|
|||
----- 日常任务弹窗 -----
|
||||
local this = {}
|
||||
--传入父脚本模块
|
||||
local parent
|
||||
--传入特效层级
|
||||
local sortingOrder=0
|
||||
local curType = 1
|
||||
local treasureState
|
||||
local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
function this:InitComponent(gameObject)
|
||||
this.gameObject = gameObject
|
||||
this.jiesuoBtn = Util.GetGameObject(this.gameObject, "topBar/jiesuoBtn")
|
||||
this.jiesuoBtnText = Util.GetGameObject(this.jiesuoBtn, "Text"):GetComponent("Text")
|
||||
this.select = Util.GetGameObject(this.gameObject, "topBar/select")
|
||||
this.weekTrailBtn = Util.GetGameObject(this.gameObject, "topBar/button/weekTrail")
|
||||
this.finalTrailBtn = Util.GetGameObject(this.gameObject, "topBar/button/finalTrail")
|
||||
|
||||
this.remainTime = Util.GetGameObject(this.gameObject, "topBar/remainTime/Text"):GetComponent("Text")
|
||||
|
||||
this.treasureList = Util.GetGameObject(this.gameObject, "itemList")
|
||||
local v2 = this.treasureList:GetComponent("RectTransform").sizeDelta
|
||||
this.itemPre = Util.GetGameObject(this.gameObject, "rewardPre")
|
||||
this.box = Util.GetGameObject(this.gameObject, "topBar/box")
|
||||
this.extra = Util.GetGameObject(this.gameObject, "topBar/extraBox")
|
||||
this.canOpenExtra = Util.GetGameObject(this.gameObject, "topBar/UI_Effect_BaoXiang_KeKaiQi")
|
||||
this.canOpenExtra.gameObject:SetActive(false)
|
||||
this.openExtra = Util.GetGameObject(this.gameObject, "topBar/UI_Effect_BaoXiang_KaiQi")
|
||||
this.openExtra.gameObject:SetActive(false)
|
||||
|
||||
--设置滚动条
|
||||
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView,this.treasureList.transform,
|
||||
this.itemPre,nil,Vector2.New(v2.x, v2.y),1,1,Vector2.New(100,0))
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").anchoredPosition = Vector2.New(0, 0)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").anchorMin = Vector2.New(0.5, 0.5)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").anchorMax = Vector2.New(0.5, 0.5)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").pivot = Vector2.New(0.5, 0.5)
|
||||
this.ScrollView.moveTween.MomentumAmount = 1
|
||||
this.ScrollView.moveTween.Strength = 2
|
||||
curType = 1
|
||||
end
|
||||
|
||||
function this:BindEvent()
|
||||
Util.AddClick(this.weekTrailBtn,function()
|
||||
curType = 1
|
||||
this.refresh(curType)
|
||||
end)
|
||||
Util.AddClick(this.finalTrailBtn,function()
|
||||
curType = 2
|
||||
this.refresh(curType)
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
function this:SetSelect()
|
||||
local temp
|
||||
if curType == 1 then
|
||||
temp = this.weekTrailBtn.transform
|
||||
else
|
||||
temp = this.finalTrailBtn.transform
|
||||
end
|
||||
this.select.transform:SetParent(temp)
|
||||
this.select:GetComponent("RectTransform").anchoredPosition = Vector3.zero
|
||||
this.select.transform:SetAsFirstSibling()
|
||||
end
|
||||
|
||||
function this:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh,curType)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.TaskRefresh, this.refresh,curType)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityOpenOrClose,this.CloseFunction)
|
||||
end
|
||||
|
||||
function this:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess,this.refresh,curType)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.TaskRefresh, this.refresh,curType)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClose,this.Closefunction)
|
||||
end
|
||||
|
||||
this.Closefunction = function()
|
||||
Timer.New(function()
|
||||
local id = ActivityGiftManager.GetActivityIdByType(8)
|
||||
LogBlue("收到了关闭活动的消息,id:"..id)
|
||||
if not ActivityGiftManager.GetActivityOpenStatus(id) then
|
||||
parent.SwitchView(1)
|
||||
return
|
||||
else
|
||||
this.refresh(curType)
|
||||
end
|
||||
end,1):Start()
|
||||
end
|
||||
|
||||
function this:OnShow(_parent,...)
|
||||
parent=_parent
|
||||
sortingOrder = _parent.sortingOrder
|
||||
this.refresh(curType)
|
||||
end
|
||||
|
||||
--topBar按钮状态
|
||||
function this:SetTopBar()
|
||||
treasureState = QinglongSerectTreasureManager.GetTreasureState()--秘宝礼包状态 0:可购买 1:已购买
|
||||
this.jiesuoBtn:GetComponent("Button").enabled = (treasureState == 0)
|
||||
this.jiesuoBtnText.text = ((treasureState == 0) and "解锁秘宝" or "已解锁")
|
||||
Util.AddOnceClick(this.jiesuoBtn,function()
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.HeavenUnlockExtraRewardPanel,2)
|
||||
end)
|
||||
local times = PrivilegeManager.GetPrivilegeRemainValue(1007)
|
||||
this.box:GetComponent("Image").enabled = (treasureState == 0)
|
||||
this.extra:GetComponent("Button").enabled = ((not (treasureState == 0)) and (times > 0))
|
||||
this.canOpenExtra.gameObject:SetActive((not (treasureState == 0)) and (times > 0))
|
||||
this.openExtra:GetComponent("Animator").enabled = false
|
||||
this.openExtra.gameObject:SetActive((not (treasureState == 0)) and (times <= 0))
|
||||
Util.GetGameObject(this.openExtra,"MeiKaiQi"):SetActive(false)
|
||||
Util.GetGameObject(this.openExtra,"KaiQi"):SetActive(true)
|
||||
Util.AddOnceClick(this.extra,function()
|
||||
this.extra:GetComponent("Button").enabled = false
|
||||
this.canOpenExtra.gameObject:SetActive(false)
|
||||
this.openExtra.gameObject:SetActive(true)
|
||||
Util.GetGameObject(this.openExtra,"KaiQi"):SetActive(false)
|
||||
Util.GetGameObject(this.openExtra,"MeiKaiQi"):SetActive(true)
|
||||
this.openExtra:GetComponent("Animator").enabled = true
|
||||
Timer.New(function()
|
||||
local id = ActivityGiftManager.GetActivityIdByType(8)
|
||||
NetManager.GetActivityRewardRequest(-2,id,function(msg)
|
||||
PrivilegeManager.RefreshPrivilegeUsedTimes(1007, 1)
|
||||
this.refresh(curType)
|
||||
end)
|
||||
end,1.5):Start()
|
||||
end)
|
||||
end
|
||||
|
||||
function this:OnSortingOrderChange(sortingOrder)
|
||||
Util.SetParticleSortLayer(this.canOpenExtra, sortingOrder)
|
||||
Util.SetParticleSortLayer(this.openExtra, sortingOrder)
|
||||
end
|
||||
|
||||
function this:OnClose()
|
||||
if self.localTimer then
|
||||
self.localTimer:Stop()
|
||||
self.localTimer = nil
|
||||
end
|
||||
end
|
||||
function this:OnDestroy()
|
||||
|
||||
end
|
||||
function this.refresh(type)
|
||||
this:SetTopBar()
|
||||
this:SetSelect()
|
||||
this:ShowTime(type)
|
||||
this:showTaskList(type)
|
||||
end
|
||||
|
||||
|
||||
--任务列表
|
||||
function this:showTaskList(type)
|
||||
local rewardData = QinglongSerectTreasureManager.GetQinglongTaskData(type)
|
||||
this.ScrollView:SetData(rewardData,function(index, rewardItem)
|
||||
this:SingleTask(rewardItem, rewardData[index])
|
||||
end)
|
||||
end
|
||||
local type={
|
||||
[0]={sprite = "s_slbz_1anniuhuangse",text = "前往"},
|
||||
[1]={sprite = "s_slbz_1anniuongse",text = "领取"},
|
||||
[2]={sprite = "s_slbz_1anniuhuise",text = "已领取"},
|
||||
}
|
||||
--单个任务
|
||||
function this:SingleTask(go, rewardSingleData)
|
||||
local activityRewardGo = go
|
||||
activityRewardGo:SetActive(true)
|
||||
local sConFigData = rewardSingleData
|
||||
local titleText = Util.GetGameObject(activityRewardGo, "content"):GetComponent("Text")
|
||||
titleText.text = sConFigData.show
|
||||
local rewardText = Util.GetGameObject(activityRewardGo, "reward"):GetComponent("Text")
|
||||
rewardText.text = sConFigData.integral[1][2]..itemConfig[tonumber(sConFigData.integral[1][1])] .."/次"
|
||||
local getRewardProgress = Util.GetGameObject(activityRewardGo.gameObject, "getRewardProgress"):GetComponent("Text")
|
||||
local state = sConFigData.state
|
||||
local value = sConFigData.taskValue[2][1]
|
||||
getRewardProgress.gameObject:SetActive(state == 0)
|
||||
getRewardProgress.text ="("..(math.abs(sConFigData.progress) > math.abs(value) and math.abs(value) or math.abs(sConFigData.progress)) .."/"..math.abs(value)..")"
|
||||
|
||||
local lingquButton = Util.GetGameObject(activityRewardGo.gameObject, "lingquButton")
|
||||
local red = Util.GetGameObject(lingquButton.gameObject, "redPoint")
|
||||
red:SetActive(state == 1)
|
||||
local text = Util.GetGameObject(lingquButton.gameObject, "Text") :GetComponent("Text")
|
||||
lingquButton:GetComponent("Image").sprite = Util.LoadSprite(type[state].sprite)
|
||||
text.text = type[state].text
|
||||
if state == 1 then
|
||||
text.text = sConFigData.integral[1][2]..itemConfig[tonumber(sConFigData.integral[1][1])]
|
||||
end
|
||||
Util.AddOnceClick(lingquButton, function()
|
||||
if state == 1 then
|
||||
NetManager.TakeMissionRewardRequest(TaskTypeDef.TreasureOfSomeBody,sConFigData.id, function(msg)
|
||||
Timer.New(function()
|
||||
this.refresh(curType)
|
||||
end,1):Start()
|
||||
end)
|
||||
elseif state == 0 then
|
||||
if sConFigData.jump then
|
||||
JumpManager.GoJump(sConFigData.jump[1])
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
function this:ShowTime(curType)
|
||||
if self.timer then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
end
|
||||
local endtime = curType == 1
|
||||
and QinglongSerectTreasureManager.GetTrailWeekTime()
|
||||
or ActivityGiftManager.GetTaskEndTime(8)
|
||||
LogBlue("endtime:"..endtime)
|
||||
local timeDown = endtime - GetTimeStamp()
|
||||
this.remainTime.text = "剩余时间:"..TimeToDHMS(timeDown)
|
||||
self.timer = Timer.New(function()
|
||||
if timeDown < 1 then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
return
|
||||
end
|
||||
timeDown = timeDown - 1
|
||||
this.remainTime.text = "剩余时间:"..TimeToDHMS(timeDown)
|
||||
end, 1, -1, true)
|
||||
self.timer:Start()
|
||||
end
|
||||
|
||||
function this:NewItemView(config, gameObject, ...)
|
||||
local view = reimport(config.script)
|
||||
if gameObject then
|
||||
this:playUIAnimsOnStart(gameObject)
|
||||
end
|
||||
local sub = view:New(gameObject)
|
||||
sub.assetName = config.assetName
|
||||
if sub.Awake then
|
||||
sub:Awake()
|
||||
end
|
||||
if sub.InitComponent then
|
||||
sub:InitComponent()
|
||||
end
|
||||
if sub.BindEvent then
|
||||
sub:BindEvent()
|
||||
end
|
||||
if sub.AddListener then
|
||||
sub:AddListener()
|
||||
end
|
||||
if sub.Update then
|
||||
UpdateBeat:Add(sub.Update, sub)
|
||||
end
|
||||
if sub.OnOpen then
|
||||
sub:OnOpen(...)
|
||||
end
|
||||
return sub
|
||||
end
|
||||
function this:playUIAnimsOnStart(gameObject)
|
||||
local anims = gameObject:GetComponentsInChildren(typeof(PlayFlyAnim))
|
||||
if anims.Length > 0 then
|
||||
for i = 0, anims.Length - 1 do
|
||||
local anim = anims[i]
|
||||
if anim.isPlayOnOpen then
|
||||
anim:PlayAnim(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return this
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 586f2105a7ad84e49a1d636f1a23a2aa
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,174 @@
|
|||
QinglongSerectTreasureManager = {}
|
||||
local this = QinglongSerectTreasureManager
|
||||
local TreasureSunlongConfig = ConfigManager.GetConfig(ConfigName.TreasureSunlongConfig)
|
||||
local TreasureSunLongTaskConfig = ConfigManager.GetConfig(ConfigName.TreasureSunLongTaskConfig)
|
||||
local rewardData = {}--表内活动任务数据
|
||||
local taskData = {}
|
||||
this.scoreId = 0
|
||||
this.score = 0
|
||||
this.traiWeekTime = 0
|
||||
local level = 0
|
||||
function this.Initialize()
|
||||
rewardData = {}
|
||||
taskData = {}
|
||||
this.scoreId = TreasureSunlongConfig[1].Integral[1][1]
|
||||
for i, v in ConfigPairs(TreasureSunlongConfig) do
|
||||
rewardData[v.Level] = {}
|
||||
rewardData[v.Level].level = v.Level
|
||||
if v.Integral then
|
||||
rewardData[v.Level].needScore = v.Integral[1][2]
|
||||
else
|
||||
rewardData[v.Level].needScore = 0
|
||||
end
|
||||
rewardData[v.Level].Reward = {}
|
||||
local temp = {}
|
||||
if v.Reward then
|
||||
for n,m in ipairs(v.Reward) do
|
||||
table.insert(temp,{ type = 1,item = { m[1] , m[2] } })
|
||||
end
|
||||
end
|
||||
if v.TreasureReward then
|
||||
for n,m in ipairs(v.TreasureReward) do
|
||||
table.insert(temp,{ type = 2,item = { m[1] , m[2] } })
|
||||
end
|
||||
end
|
||||
rewardData[v.Level].Reward = temp
|
||||
end
|
||||
for i, v in ConfigPairs(TreasureSunLongTaskConfig) do
|
||||
if not taskData[v.Type] then
|
||||
taskData[v.Type] = {}
|
||||
end
|
||||
taskData[v.Type][v.Id] = {}
|
||||
taskData[v.Type][v.Id].id = v.Id
|
||||
taskData[v.Type][v.Id].show = v.Show
|
||||
taskData[v.Type][v.Id].taskValue = v.TaskValue
|
||||
taskData[v.Type][v.Id].integral = v.Integral
|
||||
taskData[v.Type][v.Id].jump = v.Jump
|
||||
taskData[v.Type][v.Id].ActivityId = v.ActivityId
|
||||
end
|
||||
end
|
||||
|
||||
function this.UpdateTreasureState()
|
||||
local level = this.GetLevel()
|
||||
for k,v in pairs(rewardData) do
|
||||
if level > k then
|
||||
v.state = -2
|
||||
else
|
||||
v.state = 0
|
||||
end
|
||||
end
|
||||
local TreasureRewardState = ActivityGiftManager.GetActivityTypeInfo(8)
|
||||
--state -2 未达成 -1 普通和额外全部领取 0未领取 1激活秘宝,可以再次领取
|
||||
if TreasureRewardState.mission then
|
||||
for k,v in ipairs(TreasureRewardState.mission) do
|
||||
if level >= v.missionId then
|
||||
rewardData[v.missionId].state = v.state
|
||||
else
|
||||
rewardData[v.missionId].state = -2
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function this.UpdateTrailWeekTime(msg)
|
||||
LogRed("msg.weekTime:"..msg.weekTime)
|
||||
this.traiWeekTime = msg.weekTime
|
||||
end
|
||||
|
||||
function this.GetTrailWeekTime(msg)
|
||||
return this.traiWeekTime
|
||||
end
|
||||
|
||||
function this.GetTimeStartToEnd()
|
||||
local info= ActivityGiftManager.GetActivityInfoByType(801)
|
||||
if info then
|
||||
local startTime= this.GetTimeShow(info.startTime)
|
||||
local endtime= this.GetTimeShow(info.endTime)
|
||||
return startTime,endtime,info.endTime
|
||||
end
|
||||
end
|
||||
|
||||
---时间格式化接口
|
||||
function this.GetTimeShow(data)
|
||||
local year = math.floor(os.date("%Y", data))
|
||||
local month = math.floor(os.date("%m", data))
|
||||
local day = math.floor(os.date("%d", data))
|
||||
local time = year .. "年" .. month .. "月" .. day .. "日"
|
||||
return time
|
||||
end
|
||||
|
||||
function this.GetTreasureState()
|
||||
this.TreasrueState = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.FindBaby,5001)
|
||||
return this.TreasrueState
|
||||
end
|
||||
|
||||
function this.GetScore()
|
||||
return BagManager.GetItemCountById(this.scoreId)
|
||||
end
|
||||
|
||||
function this.SetSingleRewardState(id,state)
|
||||
rewardData[id].state = state
|
||||
end
|
||||
|
||||
function this.GetAllRewardData()
|
||||
local temp ={}
|
||||
for i, v in pairs(rewardData) do
|
||||
if i ~= 0 then
|
||||
table.insert(temp,v)
|
||||
end
|
||||
end
|
||||
return temp
|
||||
end
|
||||
|
||||
function this.GetRewardData(lv)
|
||||
return rewardData[lv]
|
||||
end
|
||||
|
||||
function this.SetLevel(_level)
|
||||
level = _level
|
||||
end
|
||||
|
||||
function this.GetLevel()
|
||||
return level
|
||||
end
|
||||
|
||||
function this.GetQinglongTaskData(_curtype)
|
||||
local id = ActivityGiftManager.GetActivityIdByType(8)
|
||||
local curtype = _curtype + 1
|
||||
local temp = TaskManager.GetTypeTaskList(TaskTypeDef.TreasureOfSomeBody)
|
||||
local task = {}
|
||||
for k,v in ipairs(temp) do
|
||||
if taskData[curtype][v.missionId] and taskData[curtype][v.missionId].ActivityId == id then
|
||||
taskData[curtype][v.missionId].progress = v.progress
|
||||
taskData[curtype][v.missionId].state = v.state
|
||||
table.insert(task, taskData[curtype][v.missionId])
|
||||
end
|
||||
end
|
||||
LogBlue("每周任务个数:"..#task)
|
||||
return task
|
||||
end
|
||||
|
||||
function this.GetQinglongSerectTreasureRedPot()
|
||||
local state = this.GetTreasureState()
|
||||
for i, v in pairs(rewardData) do
|
||||
if i ~= 0 then
|
||||
if v.state == 0 or (v.state == 1 and state > 0) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function this.GetSerectTreasureTrailRedPot()
|
||||
for i = 1,2 do
|
||||
local task = this.GetQinglongTaskData(i)
|
||||
for i, v in pairs(task) do
|
||||
if v.state == 1 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
return this
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2db60d4aa41b16749a84d6bbde12d4c5
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -211,7 +211,9 @@ function this.RefreshMissionList(buffer)
|
|||
local data = buffer:DataByte()
|
||||
local msg = PlayerInfoProto_pb.MissionUpdateListIndication()
|
||||
msg:ParseFromString(data)
|
||||
LogBlue("收到了服务器的刷新数据")
|
||||
TaskManager.RefreshTypeTaskInfo(msg.userMissionInfo)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.TaskRefresh)
|
||||
end
|
||||
|
||||
-- 接收服务器数据
|
||||
|
@ -633,8 +635,9 @@ function this.RefreshTreasureLevel(buffer)
|
|||
local data = buffer:DataByte()
|
||||
local msg = PlayerInfoProto_pb.TreasureLevelUpIndication()
|
||||
msg:ParseFromString(data)
|
||||
TreasureOfSomebodyManagerV2.SetCurrentLevel(msg.level)
|
||||
CheckRedPointStatus(RedPointType.TreasureOfSl)
|
||||
LogGreen("青龙秘宝等级更新了:"..msg.level)
|
||||
QinglongSerectTreasureManager.SetLevel(msg.level)
|
||||
QinglongSerectTreasureManager.UpdateTreasureState()
|
||||
end
|
||||
|
||||
--幸运转盘
|
||||
|
|
|
@ -177,7 +177,6 @@ function this.PlayerInfoRequest(func)
|
|||
|
||||
TreasureOfSomebodyManagerV2.SetCurrentLevel(msg.treasureLevel)
|
||||
TreasureOfSomebodyManagerV2.SetTreasureBuyStatus(msg.hadBuyTreasure)
|
||||
|
||||
-- 当前波次
|
||||
MonsterCampManager.monsterWave = msg.monsterAttackTime
|
||||
OperatingManager.SetSignInData(msg.SignInInfo)
|
||||
|
@ -204,6 +203,8 @@ function this.PlayerInfoRequest(func)
|
|||
Log(Language[11425]..type)
|
||||
end
|
||||
LuckyTurnTableManager.SetTimes(msg.hadLuckTime,msg.hadAdvanceLuckyTime)
|
||||
LogGreen("GetPlayerInfoResponse.treasureLevel:"..msg.treasureLevel)
|
||||
QinglongSerectTreasureManager.SetLevel(msg.treasureLevel)
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
@ -483,6 +484,8 @@ function this.TakeMissionRewardRequest(type, taskId, func)
|
|||
local data = buffer:DataByte()
|
||||
local msg = PlayerInfoProto_pb.TakeMissionRewardResponse()
|
||||
msg:ParseFromString(data)
|
||||
LogGreen("TakeMissionRewardResponse.treasureScore:"..msg.treasureScore)
|
||||
QinglongSerectTreasureManager.SetLevel(msg.treasureScore)
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
@ -499,6 +502,7 @@ function this.GetActivityAllRewardRequest(func)
|
|||
ActivityGiftManager.InitActivityServerData(msg)
|
||||
SevenDayCarnivalManager.InitSevenDayScore()
|
||||
DailyRechargeManager.InitRechargeStatus()
|
||||
QinglongSerectTreasureManager.UpdateTreasureState()
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
@ -3748,6 +3752,7 @@ function NetManager.RefreshTimeSLRequest(func)
|
|||
local data = buffer:DataByte()
|
||||
local msg = PlayerInfoProto_pb.TreasureRefreshTimeResponse()
|
||||
msg:ParseFromString(data)
|
||||
QinglongSerectTreasureManager.UpdateTrailWeekTime(msg)
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
|
|
@ -150,6 +150,8 @@ function this.InitRedPointAllRelate()
|
|||
RPData:SetParent(RedPointType.CourtesyDress_Chapter, RedPointType.SecretTer)
|
||||
RPData:SetParent(RedPointType.SecretTer_FindTreasure, RedPointType.SecretTer)
|
||||
RPData:SetParent(RedPointType.DailyTask, RedPointType.DailyTaskMain)
|
||||
RPData:SetParent(RedPointType.QinglongSerectTreasure, RedPointType.DailyTaskMain)
|
||||
RPData:SetParent(RedPointType.QinglongSerectTreasureTrail, RedPointType.DailyTaskMain)
|
||||
RPData:SetParent(RedPointType.SecretTer_MaxBoxReward, RedPointType.SecretTer)
|
||||
RPData:SetParent(RedPointType.SecretTer_HaveFreeTime, RedPointType.SecretTer)
|
||||
RPData:SetParent(RedPointType.SecretTer_IsCanFight, RedPointType.SecretTer)
|
||||
|
@ -390,6 +392,9 @@ function this.RegisterRedCheckFunc()
|
|||
RPData:AddCheckFunc(RedPointType.LegendExplore, CarbonManager.CarbonRedCheck,FUNCTION_OPEN_TYPE.CARDELAY)
|
||||
|
||||
RPData:AddCheckFunc(RedPointType.People_Mirror, XuanYuanMirrorManager.CarbonRedCheck)
|
||||
|
||||
RPData:SetParent(RedPointType.QinglongSerectTreasure, QinglongSerectTreasureManager.GetQinglongSerectTreasureRedPot)
|
||||
RPData:SetParent(RedPointType.QinglongSerectTreasureTrail, QinglongSerectTreasureManager.GetSerectTreasureTrailRedPot)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -46,7 +46,9 @@ local contentScripts = {
|
|||
--法宝回归
|
||||
[20] = {view = require("Modules/Popup/View/GeneralPopup_TalismanResolve"), panelName = "GeneralPopup_TalismanResolve",type=GENERAL_POPUP_TYPE.TalismanResolve},
|
||||
[21] = {view = require("Modules/Popup/View/GeneralPopup_BuyXuanYuanMirrorTims"), panelName = "GeneralPopup_BuyXuanYuanMirrorTims",type=GENERAL_POPUP_TYPE.XuanYuanBuyTimes},
|
||||
}
|
||||
[22] = {view = require("Modules/Popup/View/GeneralPopup_QinglongSerectTreasureBuyLevel"), panelName = "GeneralPopup_QinglongSerectTreasureBuyLevel",type=GENERAL_POPUP_TYPE.QinglongSerectTreasureBuyLevel},
|
||||
[23] = {view = require("Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel"), panelName = "GeneralPopup_HeavenUnlockExtraRewardPanel",type=GENERAL_POPUP_TYPE.HeavenUnlockExtraRewardPanel},
|
||||
}
|
||||
--子模块预设
|
||||
local contentPrefabs={}
|
||||
--打开弹窗类型
|
||||
|
|
|
@ -0,0 +1,210 @@
|
|||
----- 装备批量出售 -----
|
||||
local this = {}
|
||||
--传入父脚本模块
|
||||
local parent
|
||||
--传入特效层级
|
||||
local sortingOrder=0
|
||||
local itemConfig=ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
local count = 0
|
||||
|
||||
local rewardStateData = {}
|
||||
local treasureState--礼包状态
|
||||
local rewardData--表内活动数据
|
||||
local curType = 0
|
||||
local type = {
|
||||
[1] = {name="天宫秘宝",id = 106,goodsType = GoodsTypeDef.TreasureOfHeaven},
|
||||
[2] = {name="青龙秘宝",id = 5001,goodsType = GoodsTypeDef.FindBaby},
|
||||
}
|
||||
|
||||
--初始化组件(用于子类重写)
|
||||
function this:InitComponent(gameObject)
|
||||
this.btnBack = Util.GetGameObject(gameObject, "frame/bg/closeBtn")
|
||||
this.dealBtn = Util.GetGameObject(gameObject, "frame/bg/dealBtn")
|
||||
this.Content = Util.GetGameObject(gameObject, "rewardPart/Viewport/Content")
|
||||
this.box1 = Util.GetGameObject(this.Content, "scroll/box")
|
||||
this.box2 = Util.GetGameObject(this.Content, "scroll2/box")
|
||||
this.tip = Util.GetGameObject(this.Content, "Text"):GetComponent("Text")
|
||||
this.taskList = {}
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function this:BindEvent()
|
||||
Util.AddClick(this.btnBack, function()
|
||||
parent:ClosePanel()
|
||||
end)
|
||||
Util.AddOnceClick(this.dealBtn,function()
|
||||
if AppConst.isSDKLogin then
|
||||
PayManager.Pay({Id = type[curType].id})
|
||||
else
|
||||
NetManager.RequestBuyGiftGoods(type[curType].id,function()
|
||||
this.RechargeSuccessFunc()
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
function this:OnSortingOrderChange()
|
||||
end
|
||||
|
||||
-- 打开,重新打开时回调
|
||||
function this:OnShow(_parent,...)
|
||||
parent=_parent
|
||||
sortingOrder =_parent.sortingOrder
|
||||
parent.BG:SetActive(false)
|
||||
local temp = {...}
|
||||
curType = temp[1]
|
||||
if curType == 1 then
|
||||
rewardStateData = TreasureOfHeavenManger.GetState()
|
||||
rewardData = TreasureOfHeavenManger.GetAllRewardData()
|
||||
this:showRewardTianGong()
|
||||
elseif curType == 2 then
|
||||
rewardData = QinglongSerectTreasureManager.GetAllRewardData()
|
||||
this:showRewardQinglong()
|
||||
end
|
||||
this.tip.text = "<color=#60A22C>解锁高阶战令,激活进阶</color><color=#95523B>专属奖励+直升15级</color><color=#60A22C>解锁立获限定称号+限定气泡</color>"
|
||||
end
|
||||
|
||||
--充值成功
|
||||
function this:RechargeSuccessFunc()
|
||||
PopupTipPanel.ShowTip(Language[11987])
|
||||
FirstRechargeManager.RefreshAccumRechargeValue(type[curType].id)
|
||||
OperatingManager.RefreshGiftGoodsBuyTimes(type[curType].goodsType,type[curType].id)
|
||||
if curType == 1 then
|
||||
TreasureOfHeavenManger.SetTreasureState()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.RechargeSuccess)
|
||||
elseif curType == 2 then
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess)
|
||||
end
|
||||
parent:ClosePanel()
|
||||
end
|
||||
|
||||
--直接/间接奖励
|
||||
function this:showRewardTianGong()
|
||||
|
||||
local direct = {}
|
||||
local indirect ={}
|
||||
|
||||
for i = 1, #rewardData do
|
||||
if rewardStateData[i].state == 1 then--已达成但不能领取的
|
||||
-- body
|
||||
local reward = rewardData[i]
|
||||
local k1 = reward.TreasureReward[1][1]
|
||||
local v1 = reward.TreasureReward[1][2]
|
||||
local k2 = reward.TreasureReward[2][1]
|
||||
local v2 = reward.TreasureReward[2][2]
|
||||
|
||||
if not direct[k1] then
|
||||
direct[k1] = 0
|
||||
end
|
||||
direct[k1] = direct[k1] + v1
|
||||
|
||||
if not direct[k2] then
|
||||
direct[k2] = 0
|
||||
end
|
||||
direct[k2] = direct[k2] + v2
|
||||
|
||||
elseif rewardStateData[i].state == 0 then--未达成且不能领取的
|
||||
local reward = rewardData[i]
|
||||
local k1 = reward.TreasureReward[1][1]
|
||||
local v1 = reward.TreasureReward[1][2]
|
||||
local k2 = reward.TreasureReward[2][1]
|
||||
local v2 = reward.TreasureReward[2][2]
|
||||
|
||||
if not indirect[k1] then
|
||||
indirect[k1] = 0
|
||||
end
|
||||
indirect[k1] = indirect[k1] + v1
|
||||
|
||||
if not indirect[k2] then
|
||||
indirect[k2] = 0
|
||||
end
|
||||
indirect[k2] = indirect[k2] + v2
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if #this.taskList == 0 then
|
||||
for key, value in pairs(direct) do
|
||||
local item = SubUIManager.Open(SubUIConfig.ItemView, this.box1.transform)
|
||||
item:OnOpen(false,{key, value},0.9)
|
||||
table.insert(this.taskList,{key, value})
|
||||
end
|
||||
|
||||
for key, value in pairs(indirect) do
|
||||
local item = SubUIManager.Open(SubUIConfig.ItemView, this.box2.transform)
|
||||
item:OnOpen(false,{key, value},0.9)
|
||||
table.insert(this.taskList,{key, value})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--直接/间接奖励
|
||||
function this:showRewardQinglong()
|
||||
local direct = {}
|
||||
local indirect ={}
|
||||
|
||||
for i = 1, #rewardData do
|
||||
-- body
|
||||
local reward = rewardData[i]
|
||||
for j=1,#reward.Reward do
|
||||
local id = reward.Reward[j].item[1]
|
||||
local num = reward.Reward[j].item[2]
|
||||
if reward.Reward[j].type == 2 then
|
||||
if reward.state == 1 or reward.state == 0 then
|
||||
if not direct[id] then
|
||||
direct[id] = 0
|
||||
end
|
||||
direct[id] = direct[id] + num
|
||||
elseif reward.state == -2 then
|
||||
if not indirect[id] then
|
||||
indirect[id] = 0
|
||||
end
|
||||
indirect[id] = indirect[id] + num
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
for i = 1,#this.taskList do
|
||||
this.taskList[i].gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
local index = 1
|
||||
for key, value in pairs(direct) do
|
||||
if not this.taskList[index] then
|
||||
local item = SubUIManager.Open(SubUIConfig.ItemView, this.box1.transform)
|
||||
this.taskList[index] = item
|
||||
end
|
||||
this.taskList[index].gameObject:SetActive(true)
|
||||
this.taskList[index]:OnOpen(false,{key, value},0.95)
|
||||
index = index + 1
|
||||
end
|
||||
for key, value in pairs(indirect) do
|
||||
if not this.taskList[index] then
|
||||
local item = SubUIManager.Open(SubUIConfig.ItemView, this.box2.transform)
|
||||
this.taskList[index] = item
|
||||
end
|
||||
this.taskList[index].gameObject:SetActive(true)
|
||||
this.taskList[index]:OnOpen(false,{key, value},0.95)
|
||||
index = index + 1
|
||||
end
|
||||
end
|
||||
function this:AddListener()
|
||||
|
||||
end
|
||||
|
||||
function this:RemoveListener()
|
||||
|
||||
end
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
|
||||
function this:OnClose()
|
||||
|
||||
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function this:OnDestroy()
|
||||
end
|
||||
|
||||
return this
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2911d0a76a8612b4795519bb6b1abcf6
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,136 @@
|
|||
----- 装备批量出售 -----
|
||||
local this = {}
|
||||
--传入父脚本模块
|
||||
local parent
|
||||
--传入特效层级
|
||||
local sortingOrder=0
|
||||
local itemConfig=ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
local count = 0
|
||||
local id = 0
|
||||
local a = 0
|
||||
local b = 0
|
||||
local c = 0
|
||||
local d = 0
|
||||
local lv = 0
|
||||
local itemlist = {}
|
||||
local templv = 0
|
||||
function this:InitComponent(gameObject)
|
||||
this.bodyText=Util.GetGameObject(gameObject,"BodyText"):GetComponent("Text")
|
||||
this.rewardGroup=Util.GetGameObject(gameObject,"scroll/grid")
|
||||
this.confirmBtn=Util.GetGameObject(gameObject,"ConfirmBtn")
|
||||
this.addBtn=Util.GetGameObject(gameObject,"GameObject/add")
|
||||
this.reduceBtn=Util.GetGameObject(gameObject,"GameObject/reduce")
|
||||
this.slider=Util.GetGameObject(gameObject,"GameObject/Slider"):GetComponent("Slider")
|
||||
this.tip=Util.GetGameObject(gameObject,"GameObject/tip"):GetComponent("Text")
|
||||
this.num=Util.GetGameObject(gameObject,"GameObject/total/num"):GetComponent("Text")
|
||||
this.icon=Util.GetGameObject(gameObject,"GameObject/total/icon"):GetComponent("Image")
|
||||
this.cancelBtn = Util.GetGameObject(gameObject,"BG/BackBtn")
|
||||
end
|
||||
|
||||
function this:BindEvent()
|
||||
Util.AddClick(this.cancelBtn,function()
|
||||
parent:ClosePanel()
|
||||
end)
|
||||
Util.AddClick(this.confirmBtn,function()
|
||||
LogBlue("点击了购买等级的按钮")
|
||||
NetManager.RequestBuyTreasureLevel(templv, function(msg)
|
||||
Timer.New(function()
|
||||
PopupTipPanel.ShowTip("等级购买成功")
|
||||
parent:ClosePanel()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.BuyQinglongSerectLevelSuccess)
|
||||
end,1):Start()
|
||||
end)
|
||||
end)
|
||||
Util.AddClick(this.addBtn,function()
|
||||
this:SetCount(count + 1)
|
||||
end)
|
||||
Util.AddClick(this.reduceBtn,function()
|
||||
this:SetCount(count - 1)
|
||||
end)
|
||||
end
|
||||
|
||||
function this:SetCount(value)
|
||||
count = value
|
||||
this.slider.value = value
|
||||
templv = lv + count
|
||||
this.tip.text = string.format("购买%s级,升至%s级",count,templv)
|
||||
this.num.text = a * count ^ 3 + b * count ^ 2 + c * count + d
|
||||
local tempCount = this:Caculate(templv)
|
||||
this.bodyText.text=string.format("升至%s级,可立即解锁%s件奖励",templv,tempCount)
|
||||
end
|
||||
function this:Caculate(templv)
|
||||
local rewardData = QinglongSerectTreasureManager.GetAllRewardData()
|
||||
local direct = {}
|
||||
local treasureState = QinglongSerectTreasureManager.GetTreasureState()
|
||||
for i = 1, #rewardData do
|
||||
local reward = rewardData[i]
|
||||
if reward.level > lv and reward.level <= templv then
|
||||
for j=1,#reward.Reward do
|
||||
local id = reward.Reward[j].item[1]
|
||||
local num = reward.Reward[j].item[2]
|
||||
if reward.Reward[j].type == 1 then
|
||||
if not direct[id] then
|
||||
direct[id] = 0
|
||||
end
|
||||
direct[id] = direct[id] + num
|
||||
elseif reward.Reward[j].type == 2 and treasureState > 0 then
|
||||
if not direct[id] then
|
||||
direct[id] = 0
|
||||
end
|
||||
direct[id] = direct[id] + num
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
for i=1,#itemlist do
|
||||
itemlist[i].gameObject:SetActive(false)
|
||||
end
|
||||
local index = 1
|
||||
for k,v in pairs(direct) do
|
||||
if not itemlist[index] then
|
||||
itemlist[index] = SubUIManager.Open(SubUIConfig.ItemView,this.rewardGroup.transform)
|
||||
end
|
||||
itemlist[index].gameObject:SetActive(true)
|
||||
itemlist[index]:OnOpen(false, {k,v}, 1,false)
|
||||
index = index + 1
|
||||
end
|
||||
return LengthOfTable(direct)
|
||||
end
|
||||
|
||||
function this:AddListener()
|
||||
end
|
||||
|
||||
function this:RemoveListener()
|
||||
end
|
||||
|
||||
function this:OnShow(_parent,...)
|
||||
parent=_parent
|
||||
sortingOrder =_parent.sortingOrder
|
||||
parent.BG:SetActive(false)
|
||||
local config = ConfigManager.GetConfigData(ConfigName.SpecialConfig,18)
|
||||
local strs = string.split(config.Value,"|")
|
||||
local id =tonumber(strs[1])
|
||||
strs = string.split(strs[2],"#")
|
||||
count = 1
|
||||
a = tonumber(strs[1])
|
||||
b = tonumber(strs[2])
|
||||
c = tonumber(strs[3])
|
||||
d = tonumber(strs[4])
|
||||
lv = QinglongSerectTreasureManager.GetLevel()
|
||||
this.slider.maxValue = 50 - lv
|
||||
this:SetCount(1)
|
||||
this.icon.sprite = SetIcon(id)
|
||||
this.slider.onValueChanged:AddListener(function()
|
||||
this:SetCount(this.slider.value)
|
||||
end)
|
||||
end
|
||||
|
||||
function this:OnClose()
|
||||
|
||||
end
|
||||
|
||||
function this:OnDestroy()
|
||||
itemlist = {}
|
||||
end
|
||||
|
||||
return this
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a75033b4d14f8ae46bf2847ce01bcf99
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -6,9 +6,11 @@ local this = HeavenUnlockExtraRewardPanel
|
|||
local rewardStateData = {}
|
||||
local treasureState--礼包状态
|
||||
local rewardData--表内活动数据
|
||||
|
||||
|
||||
|
||||
local curType = 0
|
||||
local type = {
|
||||
[1]={name="天宫秘宝",id = 106,goodsType = GoodsTypeDef.TreasureOfHeaven},
|
||||
[2] = {name="青龙秘宝",id = 5001,goodsType = GoodsTypeDef.FindBaby},
|
||||
}
|
||||
|
||||
--初始化组件(用于子类重写)
|
||||
function HeavenUnlockExtraRewardPanel:InitComponent()
|
||||
|
@ -19,12 +21,8 @@ function HeavenUnlockExtraRewardPanel:InitComponent()
|
|||
this.box1 = Util.GetGameObject(this.Content, "box1")
|
||||
this.box2 = Util.GetGameObject(this.Content, "box2")
|
||||
this.taskList = {}
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function HeavenUnlockExtraRewardPanel:BindEvent()
|
||||
Util.AddClick(this.btnBack, function()
|
||||
|
@ -35,9 +33,9 @@ function HeavenUnlockExtraRewardPanel:BindEvent()
|
|||
end)
|
||||
Util.AddOnceClick(this.dealBtn,function()
|
||||
if AppConst.isSDKLogin then
|
||||
PayManager.Pay({Id = 106})
|
||||
PayManager.Pay({Id = type[curType].id})
|
||||
else
|
||||
NetManager.RequestBuyGiftGoods(106,function()
|
||||
NetManager.RequestBuyGiftGoods(type[curType].id,function()
|
||||
this.RechargeSuccessFunc()
|
||||
end)
|
||||
end
|
||||
|
@ -48,33 +46,40 @@ function HeavenUnlockExtraRewardPanel:OnSortingOrderChange()
|
|||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function HeavenUnlockExtraRewardPanel:OnOpen(...)
|
||||
function HeavenUnlockExtraRewardPanel:OnOpen(_type)
|
||||
curType = _type
|
||||
end
|
||||
|
||||
-- 打开,重新打开时回调
|
||||
function HeavenUnlockExtraRewardPanel:OnShow()
|
||||
|
||||
rewardStateData = TreasureOfHeavenManger.GetState()
|
||||
rewardData = TreasureOfHeavenManger.GetAllRewardData()
|
||||
|
||||
HeavenUnlockExtraRewardPanel:showReward()
|
||||
|
||||
if curType == 1 then
|
||||
rewardStateData = TreasureOfHeavenManger.GetState()
|
||||
rewardData = TreasureOfHeavenManger.GetAllRewardData()
|
||||
HeavenUnlockExtraRewardPanel:showRewardTianGong()
|
||||
elseif curType == 2 then
|
||||
rewardData = QinglongSerectTreasureManager.GetAllRewardData()
|
||||
HeavenUnlockExtraRewardPanel:showRewardQinglong()
|
||||
end
|
||||
end
|
||||
|
||||
--充值成功
|
||||
function HeavenUnlockExtraRewardPanel:RechargeSuccessFunc()
|
||||
PopupTipPanel.ShowTip(Language[11987])
|
||||
FirstRechargeManager.RefreshAccumRechargeValue(106)
|
||||
OperatingManager.RefreshGiftGoodsBuyTimes(GoodsTypeDef.TreasureOfHeaven,106)
|
||||
|
||||
TreasureOfHeavenManger.SetTreasureState()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.RechargeSuccess)
|
||||
FirstRechargeManager.RefreshAccumRechargeValue(type[curType].id)
|
||||
OperatingManager.RefreshGiftGoodsBuyTimes(type[curType].goodsType,type[curType].id)
|
||||
if curType == 1 then
|
||||
TreasureOfHeavenManger.SetTreasureState()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.RechargeSuccess)
|
||||
elseif curType == 2 then
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess)
|
||||
end
|
||||
|
||||
this:ClosePanel()
|
||||
|
||||
end
|
||||
|
||||
--直接/间接奖励
|
||||
function HeavenUnlockExtraRewardPanel:showReward()
|
||||
function HeavenUnlockExtraRewardPanel:showRewardTianGong()
|
||||
|
||||
local direct = {}
|
||||
local indirect ={}
|
||||
|
@ -133,6 +138,48 @@ function HeavenUnlockExtraRewardPanel:showReward()
|
|||
end
|
||||
end
|
||||
|
||||
--直接/间接奖励
|
||||
function HeavenUnlockExtraRewardPanel:showRewardQinglong()
|
||||
local direct = {}
|
||||
local indirect ={}
|
||||
|
||||
for i = 1, #rewardData do
|
||||
-- body
|
||||
local reward = rewardData[i]
|
||||
for j=1,#reward.Reward do
|
||||
local id = reward.Reward[j].item[1]
|
||||
local num = reward.Reward[j].item[2]
|
||||
if reward.Reward[j].type == 2 then
|
||||
if rewardData[i].state == 1 or rewardData[i].state == 0 then
|
||||
if not direct[id] then
|
||||
direct[id] = 0
|
||||
end
|
||||
direct[id] = direct[id] + num
|
||||
elseif rewardData[i].state == -2 then
|
||||
if not indirect[id] then
|
||||
indirect[id] = 0
|
||||
end
|
||||
indirect[id] = indirect[id] + num
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if #this.taskList == 0 then
|
||||
for key, value in pairs(direct) do
|
||||
local item = SubUIManager.Open(SubUIConfig.ItemView, this.box1.transform)
|
||||
item:OnOpen(false,{key, value},0.9)
|
||||
table.insert(this.taskList,{key, value})
|
||||
end
|
||||
|
||||
for key, value in pairs(indirect) do
|
||||
local item = SubUIManager.Open(SubUIConfig.ItemView, this.box2.transform)
|
||||
item:OnOpen(false,{key, value},0.9)
|
||||
table.insert(this.taskList,{key, value})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function HeavenUnlockExtraRewardPanel:OnClose()
|
||||
|
|
|
@ -100,7 +100,7 @@ function TreasureOfHeavenPanel:topBar()
|
|||
|
||||
if treasureState == 0 then
|
||||
Util.AddOnceClick(this.buyBtn,function()
|
||||
UIManager.OpenPanel(UIName.HeavenUnlockExtraRewardPanel)
|
||||
UIManager.OpenPanel(UIName.HeavenUnlockExtraRewardPanel,1)
|
||||
end)
|
||||
end
|
||||
|
||||
|
@ -231,7 +231,7 @@ function TreasureOfHeavenPanel:OnBtnDealClicked(rewardItem,rewardSingleData)
|
|||
TreasureOfHeavenPanel:refresh()--刷新界面
|
||||
end)
|
||||
elseif rewardStateData[rewardSingleData.Id].state == 1 and treasureState == 0 then----任务已领取+礼包未购买(弹出购买界面)
|
||||
UIManager.OpenPanel(UIName.HeavenUnlockExtraRewardPanel)
|
||||
UIManager.OpenPanel(UIName.HeavenUnlockExtraRewardPanel,1)
|
||||
end
|
||||
else--分数未达到要求
|
||||
PopupTipPanel.ShowTip(Language[11989])
|
||||
|
|
|
@ -175,7 +175,7 @@ function BuyTreasureLevelPanel:GetRewardList()
|
|||
local rewardList = {}
|
||||
local currentLv = TreasureOfSomebodyManagerV2.currentLv
|
||||
for i = currentLv + 1, currentLv + self.progressBar.value do
|
||||
local treasureConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.TreasureSunLongConfig,
|
||||
local treasureConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.TreasureSunlongConfig,
|
||||
"ActivityId", TreasureOfSomebodyManagerV2.activityId, "Level", i)
|
||||
if treasureConfig.Reward then
|
||||
for _, rewardInfo in ipairs(treasureConfig.Reward) do
|
||||
|
|
|
@ -19,12 +19,14 @@ function this.SetTreasureLocalData()
|
|||
if not this.activityId then
|
||||
return
|
||||
end
|
||||
local treasureConfigs = ConfigManager.GetAllConfigsDataByKey(ConfigName.TreasureSunLongConfig, "ActivityId", this.activityId)
|
||||
this.treasureMaxLv = treasureConfigs[#treasureConfigs].Level
|
||||
this.rewardConfigInfoList = {}
|
||||
for _, configInfo in ipairs(treasureConfigs) do
|
||||
if configInfo.Reward then
|
||||
table.insert(this.rewardConfigInfoList, configInfo)
|
||||
local treasureConfigs = ConfigManager.GetAllConfigsDataByKey(ConfigName.TreasureSunlongConfig, "ActivityId", this.activityId)
|
||||
if treasureConfigs and LengthOfTable(treasureConfigs) > 0 then
|
||||
this.treasureMaxLv = treasureConfigs[#treasureConfigs].Level
|
||||
this.rewardConfigInfoList = {}
|
||||
for _, configInfo in ipairs(treasureConfigs) do
|
||||
if configInfo.Reward then
|
||||
table.insert(this.rewardConfigInfoList, configInfo)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|