至尊降世提交
parent
7c1a3caa5f
commit
11c4f914b5
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
|
@ -0,0 +1,110 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 160c09a4082523f458b65ba5fd3a4b4a
|
||||
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
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 65
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 56
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5b8ecd3410c5adc499c4a810e33cf134
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ZhiZhunJiangShiAtlas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 251 KiB |
|
@ -0,0 +1,110 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9a4897ac59b1b9344acc9ab8913871b9
|
||||
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
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 65
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 56
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 8d07b2c0ba0f9474a90eb6c3ba5246fa
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ZhiZhunJiangShiAtlas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
|
@ -0,0 +1,110 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ed05e9c745aff7d4f8421cd4e7c45eeb
|
||||
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
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 65
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 56
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: ccd10e41eef66354ab8224bfb68c068f
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ZhiZhunJiangShiAtlas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
|
@ -0,0 +1,110 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4b2e5f75af7e46c45a26900d58448911
|
||||
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
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 65
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 56
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 67bd42b45f69c6546aa3c54fcf803573
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag: ZhiZhunJiangShiAtlas
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 793d082111796c94893aa21375962cdb
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -435,6 +435,7 @@ UIName = {
|
|||
ContinueGiftPanel = 441, -- 连续礼包
|
||||
ContinuePackagePanel = 442, -- 连购礼包new
|
||||
ArenaTrialPanel = 445,
|
||||
SupremeHeroPopupNew = 448,
|
||||
}
|
||||
|
||||
SubUIConfig = {
|
||||
|
|
|
@ -950,17 +950,27 @@ end
|
|||
|
||||
--剑影仙踪红点检测 差一个通关完毕 符合要求的红点检测 点击领取红点未检测
|
||||
function this.CheckSupremeHeroRedPoint()
|
||||
if not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero) then
|
||||
local act = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero)
|
||||
if not act then
|
||||
return
|
||||
end
|
||||
local actInfo = ActivityGiftManager.GetActivityInfoByType(ActivityTypeDef.SupremeHero)
|
||||
local actInfo = ActivityGiftManager.GetActivityInfoByType(act)
|
||||
local isGetBigReward = true
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
if v.state == 3 then
|
||||
return true
|
||||
if actInfo.activityId == 42 then
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
if v.state == 3 then
|
||||
return true
|
||||
end
|
||||
if ActivityRewardConfig[v.missionId].Sort == 1 and v.state ~= 1 then
|
||||
isGetBigReward = false
|
||||
end
|
||||
end
|
||||
if ActivityRewardConfig[v.missionId].Sort == 1 and v.state ~= 1 then
|
||||
isGetBigReward = false
|
||||
else
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
local config = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig,v.missionId)
|
||||
if v.state == 1 or (v.state == 0 and v.progress < config.Values[1][1]) then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
return isGetBigReward
|
||||
|
@ -1337,35 +1347,46 @@ end
|
|||
--返回 false 有未完成的任务 true 全部完成
|
||||
--indexType 页签 1,至尊降世 2御剑 isHaveBigReward 是否检测大奖有没有领取
|
||||
function this.CheckSupremeMission(indexType,isHaveBigReward)
|
||||
local actInfo = ActivityGiftManager.GetActivityInfoByType(ActivityTypeDef.SupremeHero)
|
||||
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero)
|
||||
local actInfo = ActivityGiftManager.GetActivityInfoByType(activityId)
|
||||
local isAllGet = true
|
||||
if indexType == 1 then
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
if ActivityRewardConfig[v.missionId].Sort == indexType then
|
||||
if activityId == 42 then
|
||||
if indexType == 1 then
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
if ActivityRewardConfig[v.missionId].Sort == indexType then
|
||||
if isHaveBigReward then
|
||||
if v.state ~= 2 then
|
||||
return false
|
||||
end
|
||||
else
|
||||
if v.state ~= 1 or v.state ~= 2 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
if isHaveBigReward then
|
||||
if v.state ~= 2 then
|
||||
return false
|
||||
if ActivityRewardConfig[v.missionId].Sort ~= 1 then
|
||||
if v.state ~= 1 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
else
|
||||
if v.state ~= 1 or v.state ~= 2 then
|
||||
return false
|
||||
if ActivityRewardConfig[v.missionId].Sort == 2 then
|
||||
if v.state ~= 1 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
for k,v in ipairs(actInfo.mission) do
|
||||
if isHaveBigReward then
|
||||
if ActivityRewardConfig[v.missionId].Sort ~= 1 then
|
||||
if v.state ~= 1 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
else
|
||||
if ActivityRewardConfig[v.missionId].Sort == 2 then
|
||||
if v.state ~= 1 then
|
||||
return false
|
||||
end
|
||||
if ActivityRewardConfig[v.missionId].Sort == indexType then
|
||||
if v.state ~= 1 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1030,7 +1030,12 @@ function this:TabBtnAction(id,actType,data)
|
|||
-- UIManager.OpenPanel(UIName.DynamicActivityPanel)
|
||||
UIManager.OpenPanel(UIName.ActivityMainPanel,id)
|
||||
elseif id == ActivityTypeDef.SupremeHero then
|
||||
UIManager.OpenPanel(UIName.SupremeHeroPopup)
|
||||
local actId = ActivityGiftManager.IsActivityTypeOpen(id)
|
||||
if actId == 42 then
|
||||
UIManager.OpenPanel(UIName.SupremeHeroPopup)
|
||||
else
|
||||
UIManager.OpenPanel(UIName.SupremeHeroPopupNew)
|
||||
end
|
||||
elseif id == ActivityTypeDef.NiuZhuan then
|
||||
UIManager.OpenPanel(UIName.NiuZhuanQianKunPanel)
|
||||
-- elseif id == ActivityTypeDef.NiuQi then
|
||||
|
|
|
@ -0,0 +1,448 @@
|
|||
require("Base/BasePanel")
|
||||
SupremeHeroPopup = Inherit(BasePanel)
|
||||
local this=SupremeHeroPopup
|
||||
local artResConfig = ConfigManager.GetConfig(ConfigName.ArtResourcesConfig)
|
||||
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
|
||||
local activityConfig = ConfigManager.GetConfig(ConfigName.ActivityRewardConfig)
|
||||
local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
|
||||
local live2dResName = ""
|
||||
local heroId = 0
|
||||
local heroData = {}
|
||||
local actIsOpen = false
|
||||
local missionData = {}
|
||||
local actData = {}
|
||||
local idList = {
|
||||
[1] = {
|
||||
panelId = 1,
|
||||
wenziId = 1,
|
||||
btnTip = Language[11530].."<color=#F4D98A>%s</color>",
|
||||
[1] = {id = 4201},
|
||||
[2] = {id = 4202},
|
||||
[3] = {id = 4203},
|
||||
},
|
||||
[2] = {
|
||||
panelId = 1,
|
||||
wenziId = 2,
|
||||
btnTip = Language[10317],
|
||||
[1] = {id = 4204},
|
||||
[2] = {id = 4205},
|
||||
[3] = {id = 4206},
|
||||
},
|
||||
[3] = {
|
||||
panelId = 2,
|
||||
wenziId = 3,
|
||||
btnTip = Language[10317],
|
||||
[1] = {id = 4207},
|
||||
[2] = {id = 4208},
|
||||
[3] = {id = 4209},
|
||||
},
|
||||
}
|
||||
|
||||
local orginLayer = 0
|
||||
local orginLayer2 = 0
|
||||
-- 界面是否可以关闭
|
||||
local canClose = false
|
||||
|
||||
local curPage = 0
|
||||
local lastPage = 0
|
||||
local isFrist = false
|
||||
---剑影迷踪
|
||||
--初始化组件(用于子类重写)
|
||||
function SupremeHeroPopup:InitComponent()
|
||||
this.spLoader = SpriteLoader.New()
|
||||
orginLayer = 0
|
||||
orginLayer2 = 0
|
||||
this.panel = Util.GetGameObject(self.gameObject,"Panel")
|
||||
this.middle = Util.GetGameObject(this.panel,"Middle")
|
||||
|
||||
--玉帝
|
||||
this.previewBtn = Util.GetGameObject(this.middle, "PreviewBtn")
|
||||
this.click = Util.GetGameObject(this.middle, "PreviewBtn/click")
|
||||
this.clickNameParent = Util.GetGameObject(this.middle, "PreviewBtn/di/Name")
|
||||
this.clickName = Util.GetGameObject(this.clickNameParent, "Text"):GetComponent("Text")
|
||||
this.proImage = Util.GetGameObject(this.middle, "PreviewBtn/di/Image"):GetComponent("Image")
|
||||
this.previewBtn.gameObject:SetActive(false)
|
||||
|
||||
this.taskProgress = Util.GetGameObject(this.middle, "di/TaskProgress"):GetComponent("Text")--完成进度
|
||||
this.tipText = Util.GetGameObject(this.middle, "textTime (1)"):GetComponent("Text")
|
||||
this.tipText.gameObject:SetActive(false)
|
||||
this.itemList = {}
|
||||
this.RewardList = {}
|
||||
for i = 1, 3 do
|
||||
this.RewardList[i] = {}
|
||||
this.RewardList[i].go = Util.GetGameObject(this.middle, "Reward/Panel".. i)
|
||||
this.RewardList[i].title = Util.GetGameObject(this.RewardList[i].go, "Image/Title"):GetComponent("Text")
|
||||
this.RewardList[i].Btn = Util.GetGameObject(this.RewardList[i].go, "Button")
|
||||
this.RewardList[i].BtnTip = Util.GetGameObject(this.RewardList[i].Btn, "Text"):GetComponent("Text")
|
||||
this.RewardList[i].btnGet = Util.GetGameObject(this.RewardList[i].go, "BtnGet")
|
||||
this.RewardList[i].doneImg = Util.GetGameObject(this.RewardList[i].go, "BtnDone")
|
||||
this.RewardList[i].frame = Util.GetGameObject(this.RewardList[i].go, "frame")
|
||||
this.RewardList[i].red = Util.GetGameObject(this.RewardList[i].btnGet, "redPot")
|
||||
end
|
||||
|
||||
this.activityTime = Util.GetGameObject(self.gameObject, "Panel/Middle/updateTime/freshTime"):GetComponent("Text")--活动时间
|
||||
this.backBtn = Util.GetGameObject(self.gameObject, "Panel/btnBack")
|
||||
this.effectRoot5 = Util.GetGameObject(self.gameObject, "Fx_mat_UI_SupremeHeroPopup_yunwusankai")
|
||||
this.effectRoot3 = Util.GetGameObject(self.gameObject, "Fx_mat_UI_SupremeHeroPopup_changzhu")
|
||||
this.Effect_UI_SupremeHeroPopup_zhuzi = Util.GetGameObject(self.gameObject, "Panel/Effect_UI_SupremeHeroPopup_zhuzi")
|
||||
this.LoadLive2D()
|
||||
this.btnLayer = Util.GetGameObject(self.gameObject, "Panel/Middle/btnLayer"):GetComponent("Canvas")
|
||||
this.oneTab = Util.GetGameObject(this.btnLayer.transform, "oneTab")
|
||||
this.oneTabRed = Util.GetGameObject(this.oneTab, "red")
|
||||
this.tianjingzunzhe = Util.GetGameObject(this.btnLayer.transform, "twoTab")
|
||||
this.tianjingzunzheRed = Util.GetGameObject(this.tianjingzunzhe, "red")
|
||||
this.lingxiaobaojian = Util.GetGameObject(this.btnLayer.transform, "threeTab")
|
||||
this.lingxiaobaojianRed = Util.GetGameObject(this.lingxiaobaojian, "red")
|
||||
|
||||
--1玉帝 2御剑
|
||||
this.panelist = {}
|
||||
for i = 1,3 do
|
||||
if not this.panelist[i] then
|
||||
this.panelist[i] = {}
|
||||
end
|
||||
this.panelist[i].role = Util.GetGameObject(self.gameObject, "Panel/role"..idList[i].panelId)
|
||||
this.panelist[i].role.gameObject:SetActive(false)
|
||||
this.panelist[i].jian = Util.GetGameObject(self.gameObject, "Panel/jian"..idList[i].panelId)
|
||||
this.panelist[i].jian.gameObject:SetActive(false)
|
||||
this.panelist[i].wenzi = Util.GetGameObject(self.gameObject, "Panel/wenzi"..idList[i].wenziId)
|
||||
this.panelist[i].wenzi.gameObject:SetActive(false)
|
||||
if i == 1 or i == 2 then
|
||||
this.panelist[i].jianEffect = Util.GetGameObject(this.panelist[i].jian, "Effect_UI_SupremeHeroPopup_jian")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_daohen = Util.GetGameObject(self.gameObject, "Fx_mat_UI_SupremeHeroPopup_daohen")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_renwuchuxian = Util.GetGameObject(self.gameObject, "Fx_mat_UI_SupremeHeroPopup_renwuchuxian")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_changzhu = Util.GetGameObject(this.panelist[i].Fx_mat_UI_SupremeHeroPopup_renwuchuxian, "Particle System")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_renwuchuxian.gameObject:SetActive(true)
|
||||
elseif i == 3 then
|
||||
this.panelist[i].jianEffect = Util.GetGameObject(this.panelist[i].role, "Image/fx_yujiantongxing_01")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_daohen = Util.GetGameObject(this.panelist[i].role, "Image1/fx_yujiantongxing_02")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_renwuchuxian = Util.GetGameObject(this.panelist[i].role, "Image (1)/fx_yujiantongxing_03")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_changzhu = Util.GetGameObject(this.panelist[i].role, "fx_yujiantongxing_luodi")
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_renwuchuxian.gameObject:SetActive(false)
|
||||
end
|
||||
this.panelist[i].jianEffect.gameObject:SetActive(false)
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_daohen.gameObject:SetActive(false)
|
||||
this.panelist[i].Fx_mat_UI_SupremeHeroPopup_changzhu.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
|
||||
function this.LoadLive2D()
|
||||
local liveId = ActivityGiftManager.GetActivityDataById(42).Drawing
|
||||
heroId = liveId or 10011
|
||||
heroData = heroConfig[heroId]
|
||||
liveId = heroConfig[heroId].Live
|
||||
this.clickName.text = GetLanguageStrById(heroConfig[heroId].ReadingName)
|
||||
SetTextVerTial(this.clickName,Vector3.New(59,-10,0))
|
||||
live2dResName = artResConfig[liveId].Name
|
||||
this.proImage.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig[heroId].PropertyName))
|
||||
end
|
||||
|
||||
function SupremeHeroPopup:OnSortingOrderChange()
|
||||
local layer = self.sortingOrder
|
||||
Util.SetParticleSortLayer(this.effectRoot3, layer + 1)
|
||||
Util.SetParticleSortLayer(this.effectRoot5, layer + 1)
|
||||
Util.SetParticleSortLayer(this.Effect_UI_SupremeHeroPopup_zhuzi, layer + 1)
|
||||
for i = 1,#this.panelist do
|
||||
Util.SetParticleSortLayer(this.panelist[i].jianEffect, layer + 1)
|
||||
Util.SetParticleSortLayer(this.panelist[i].Fx_mat_UI_SupremeHeroPopup_daohen, layer + 1)
|
||||
Util.SetParticleSortLayer(this.panelist[i].Fx_mat_UI_SupremeHeroPopup_renwuchuxian, layer + 1)
|
||||
Util.SetParticleSortLayer(this.panelist[i].Fx_mat_UI_SupremeHeroPopup_changzhu, layer + 1)
|
||||
end
|
||||
this.btnLayer.overrideSorting = true
|
||||
this.btnLayer.sortingOrder = layer + 1
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function SupremeHeroPopup:BindEvent()
|
||||
--返回按钮
|
||||
Util.AddClick(this.backBtn,function()
|
||||
if not canClose then return end
|
||||
self:ClosePanel()
|
||||
end)
|
||||
|
||||
--预览按钮
|
||||
Util.AddClick(this.previewBtn,function()
|
||||
UIManager.OpenPanel(UIName.RoleGetInfoPopup, false, heroId, heroData.Star)
|
||||
end)
|
||||
|
||||
Util.AddClick(this.click, function()
|
||||
UIManager.OpenPanel(UIName.RoleGetInfoPopup, false, heroId, heroData.Star)
|
||||
end)
|
||||
|
||||
Util.AddClick(this.oneTab, function()
|
||||
curPage = 1
|
||||
if lastPage == curPage then
|
||||
return
|
||||
end
|
||||
|
||||
this.SetMissionData()
|
||||
end)
|
||||
Util.AddClick(this.tianjingzunzhe, function()
|
||||
curPage = 2
|
||||
if lastPage == curPage then
|
||||
return
|
||||
end
|
||||
this.SetMissionData()
|
||||
end)
|
||||
Util.AddClick(this.lingxiaobaojian, function()
|
||||
curPage = 3
|
||||
if lastPage == curPage then
|
||||
return
|
||||
end
|
||||
this.SetMissionData()
|
||||
end)
|
||||
end
|
||||
|
||||
--添加事件监听(用于子类重写)
|
||||
function SupremeHeroPopup:AddListener()
|
||||
|
||||
end
|
||||
|
||||
--移除事件监听(用于子类重写)
|
||||
function SupremeHeroPopup:RemoveListener()
|
||||
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
local fun = nil
|
||||
function SupremeHeroPopup:OnOpen(_fun)
|
||||
Timer.New(function ()
|
||||
SoundManager.PlaySound(SoundConfig.UI_Hd_yhdd)
|
||||
end,0.5):Start()
|
||||
fun = _fun
|
||||
end
|
||||
|
||||
function SupremeHeroPopup:OnShow()
|
||||
for i = 1,#this.panelist do
|
||||
for k,v in pairs(this.panelist[i]) do
|
||||
if (i == 1 or i == 2) and v.gameObject.name == "Fx_mat_UI_SupremeHeroPopup_renwuchuxian" then
|
||||
else
|
||||
v.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
this.money = VipManager.GetChargedNum()
|
||||
isFrist = true
|
||||
curPage = 3
|
||||
for i = 1 ,3 do
|
||||
if not ActivityGiftManager.CheckSupremeMission(i,true) then
|
||||
curPage = i
|
||||
lastPage = 0
|
||||
break
|
||||
end
|
||||
end
|
||||
local actData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SupremeHero)
|
||||
this.oneTab.gameObject:SetActive(true)
|
||||
this.tianjingzunzhe.gameObject:SetActive(true)
|
||||
this.lingxiaobaojian.gameObject:SetActive(true)
|
||||
--curPage = 2
|
||||
this.InitShowPanel()
|
||||
this.tianjingzunzheRed.gameObject:SetActive(this.RefreshRedPoint(2))
|
||||
this.lingxiaobaojianRed.gameObject:SetActive(this.RefreshRedPoint(3))
|
||||
this.oneTabRed.gameObject:SetActive(this.RefreshRedPoint(1))
|
||||
end
|
||||
|
||||
function this.InitShowPanel()
|
||||
--初始化静态显示数据
|
||||
this.InitShow()
|
||||
canClose = false
|
||||
this.effectTime = nil
|
||||
this.effectTime = Timer.New(function ()
|
||||
canClose = true
|
||||
isFrist = false
|
||||
end, 5)
|
||||
this.effectTime:Start()
|
||||
end
|
||||
|
||||
function this.InitShow()
|
||||
ActivityGiftManager.isFirstForSupremeHero = true
|
||||
|
||||
actIsOpen = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero) > 0
|
||||
actData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SupremeHero)
|
||||
this.SetMissionData()
|
||||
|
||||
-- 开始倒计时
|
||||
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero)
|
||||
this.activityTime.text = ""
|
||||
if not this.timer then
|
||||
this.timer = Timer.New(function ()
|
||||
local tempTime = endTime - PlayerManager.serverTime
|
||||
if tempTime > 0 then
|
||||
if tempTime >= 86400 then
|
||||
this.activityTime.text = TimeToDH(tempTime)
|
||||
else
|
||||
this.activityTime.text = TimeToHMS(tempTime)
|
||||
end
|
||||
else
|
||||
this.activityTime.text = Language[10119]
|
||||
this.timer:Stop()
|
||||
|
||||
end
|
||||
end, 1, -1, true)
|
||||
end
|
||||
this.timer:Start()
|
||||
end
|
||||
|
||||
function this.SetMissionData()
|
||||
if lastPage > 0 then
|
||||
if idList[lastPage].panelId ~= idList[curPage].panelId then
|
||||
for k,v in pairs(this.panelist[lastPage]) do
|
||||
if idList[lastPage].panelId == 1 and v.gameObject.name == "Fx_mat_UI_SupremeHeroPopup_renwuchuxian" then
|
||||
else
|
||||
v.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for k,v in pairs(this.panelist[curPage]) do
|
||||
if v.gameObject.name == "Fx_mat_UI_SupremeHeroPopup_renwuchuxian" then
|
||||
elseif isFrist then
|
||||
if v.gameObject.name == "Particle System" then
|
||||
Timer.New(function()
|
||||
v.gameObject:SetActive(true)
|
||||
end,3.2):Start()
|
||||
else
|
||||
Timer.New(function()
|
||||
v.gameObject:SetActive(true)
|
||||
end,3.6):Start()
|
||||
end
|
||||
else
|
||||
if idList[lastPage].panelId == idList[curPage].panelId then
|
||||
this.panelist[curPage].wenzi.gameObject:SetActive(true)
|
||||
this.panelist[lastPage].wenzi.gameObject:SetActive(false)
|
||||
else
|
||||
v.gameObject:SetActive(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Timer.New(function()
|
||||
isFrist = false
|
||||
end,4):Start()
|
||||
lastPage = curPage
|
||||
if curPage == 1 or curPage == 2 then
|
||||
this.previewBtn.gameObject:SetActive(true)
|
||||
else
|
||||
this.previewBtn.gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
for i = 1,#this.RewardList do
|
||||
this.RewardList[i].go.gameObject:SetActive(false)
|
||||
end
|
||||
for j = 1,3 do
|
||||
if this.RewardList[j] then
|
||||
this.RewardList[j].go.gameObject:SetActive(true)
|
||||
local dataConfig = activityConfig[idList[curPage][j].id]
|
||||
this.RewardList[j].title.text = GetLanguageStrById(dataConfig.ContentsShow)
|
||||
--if dataConfig.ExtraParm == 0 then
|
||||
if dataConfig.ExtraParm and dataConfig.ExtraParm[1] and dataConfig.ExtraParm[1] == 0 then
|
||||
Log(string.format("ActivityRewardConfig表中ID为%s对应的ExtraParm项数据为空", idList[curPage][j].id))
|
||||
Log("请检查表或者重新导表!")
|
||||
return
|
||||
end
|
||||
-- local itemId = dataConfig.ExtraParm
|
||||
-- local itemnum = 1
|
||||
local itemId = dataConfig.ExtraParm[1]
|
||||
local itemnum = dataConfig.ExtraParm[2] or 0
|
||||
if not this.itemList[j] then
|
||||
this.itemList[j] = SubUIManager.Open(SubUIConfig.ItemView, this.RewardList[j].frame.transform)
|
||||
end
|
||||
this.itemList[j]:OnOpen(false, {itemId, itemnum}, 0.92)
|
||||
this.itemList[j].num.gameObject:SetActive(itemnum > 1)
|
||||
this.RefreshItemData(j,idList[curPage][j].id)
|
||||
Util.AddOnceClick(this.RewardList[j].Btn,function()
|
||||
JumpManager.GoJump(dataConfig.Jump[1])
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceClear)
|
||||
this:ClosePanel()
|
||||
end)
|
||||
|
||||
Util.AddOnceClick(this.RewardList[j].btnGet,function()
|
||||
NetManager.GetActivityRewardRequest(idList[curPage][j].id, actData.activityId,function(drop)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
|
||||
actData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SupremeHero)
|
||||
this.RefreshItemData(j,idList[curPage][j].id)
|
||||
this.SetButtonState()
|
||||
this.tianjingzunzheRed.gameObject:SetActive(this.RefreshRedPoint(1))
|
||||
this.lingxiaobaojianRed.gameObject:SetActive(this.RefreshRedPoint(2))
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
end
|
||||
-- if curPage == 1 then
|
||||
-- this.tipText.text = string.format(idList[curPage][1].btnTip,GetLanguageStrById(heroConfig[heroId].ReadingName))
|
||||
-- else
|
||||
-- this.tipText.text = activityConfig[idList[curPage].bigId].ContentsShow
|
||||
-- end
|
||||
|
||||
this.SetButtonState()
|
||||
end
|
||||
|
||||
function this.RefreshItemData(index,missionId)
|
||||
for i = 1,#actData.mission do
|
||||
if actData.mission[i].missionId == missionId then
|
||||
this.RewardList[index].doneImg.gameObject:SetActive(actData.mission[i].state == 1)
|
||||
this.RewardList[index].Btn.gameObject:SetActive(actData.mission[i].state == 0 and this.money < activityConfig[missionId].Values[1][1])
|
||||
this.RewardList[index].btnGet.gameObject:SetActive(actData.mission[i].state == 0 and this.money >= activityConfig[missionId].Values[1][1])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function this.SetButtonState()
|
||||
local color = this.money < activityConfig[idList[curPage][#idList[curPage]].id].Values[1][1] and "#FF0000FF" or "#F4D98AFF"
|
||||
this.taskProgress.text = string.format(" <color=%s>%s</color>/%s", color, this.money,activityConfig[idList[curPage][#idList[curPage]].id].Values[1][1])
|
||||
end
|
||||
|
||||
function this.RefreshRedPoint(indexType)
|
||||
local isShow = false
|
||||
for k,v in ipairs(actData.mission) do
|
||||
if activityConfig[v.missionId].Sort == indexType then
|
||||
if v.state == 0 and this.money >= activityConfig[v.missionId].Values[1][1] then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return isShow
|
||||
end
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function SupremeHeroPopup:OnClose()
|
||||
if this.timer then
|
||||
this.timer:Stop()
|
||||
this.timer = nil
|
||||
end
|
||||
|
||||
if this.effectTime then
|
||||
this.effectTime:Stop()
|
||||
this.effectTime = nil
|
||||
end
|
||||
|
||||
if fun then
|
||||
fun()
|
||||
fun = nil
|
||||
end
|
||||
|
||||
curPage = 0
|
||||
for k,v in pairs(this.itemList) do
|
||||
SubUIManager.Close(v)
|
||||
end
|
||||
this.itemList = {}
|
||||
for i = 1,#this.panelist do
|
||||
for k,v in pairs(this.panelist[i]) do
|
||||
if v.gameObject.name == "Fx_mat_UI_SupremeHeroPopup_renwuchuxian" then
|
||||
else
|
||||
v.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function SupremeHeroPopup:OnDestroy()
|
||||
this.spLoader:Destroy()
|
||||
this.RewardList = {}
|
||||
this.panelist = {}
|
||||
end
|
||||
|
||||
return SupremeHeroPopup
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c16a4dd5825079848bb27cb17c2883ae
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue