[皮肤] 胜利最佳输出界面显示皮肤
parent
6e42f78073
commit
04deaa28d6
|
|
@ -93,6 +93,7 @@ function this.GetBattleRecord(Id)
|
||||||
record.monsterId = role.roleData.monsterId
|
record.monsterId = role.roleData.monsterId
|
||||||
record.roleLv = role:GetRoleData(RoleDataName.Level)
|
record.roleLv = role:GetRoleData(RoleDataName.Level)
|
||||||
record.camp = role.camp
|
record.camp = role.camp
|
||||||
|
record.skinId=role.roleData.skinId
|
||||||
record.damage = 0
|
record.damage = 0
|
||||||
record.heal = 0
|
record.heal = 0
|
||||||
record.type = 0
|
record.type = 0
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,17 @@ function BattleBestPopup:BindEvent()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:OnOpen(heroTId, damageValue, allDamage, func,_func2)
|
function this:OnOpen(heroTId,skinId, damageValue, allDamage, func,_func2)
|
||||||
func2 = _func2
|
func2 = _func2
|
||||||
-- 创建立绘
|
-- 创建立绘
|
||||||
local heroTData = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroTId)
|
local heroTData=nil
|
||||||
|
--如果有皮肤读取皮肤表里面的数据,没有读取hero表
|
||||||
|
if skinId and skinId>0 then
|
||||||
|
heroTData=ConfigManager.GetConfigDataByKey(ConfigName.HeroSkin,"Type",skinId)
|
||||||
|
else
|
||||||
|
heroTData= ConfigManager.GetConfigData(ConfigName.HeroConfig,heroTId)
|
||||||
|
end
|
||||||
|
|
||||||
this.liveName = GetResourcePath(heroTData.Live)
|
this.liveName = GetResourcePath(heroTData.Live)
|
||||||
this.liveNode = poolManager:LoadLive(this.liveName, this.firstRole.transform, Vector3.one * heroTData.Scale, Vector3.New(heroTData.Position[1], heroTData.Position[2]))
|
this.liveNode = poolManager:LoadLive(this.liveName, this.firstRole.transform, Vector3.one * heroTData.Scale, Vector3.New(heroTData.Position[1], heroTData.Position[2]))
|
||||||
this.liveNode.transform.sizeDelta = Vector2.New(1000, 1000)
|
this.liveNode.transform.sizeDelta = Vector2.New(1000, 1000)
|
||||||
|
|
|
||||||
|
|
@ -414,7 +414,7 @@ function this.ShowBattleResult(result, msg)
|
||||||
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
||||||
if bestData then
|
if bestData then
|
||||||
-- 胜利显示本场比赛的表现最好的英雄
|
-- 胜利显示本场比赛的表现最好的英雄
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
-- 打开关卡奖励界面
|
-- 打开关卡奖励界面
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup,nil, 1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup,nil, 1,function()
|
||||||
--车迟挑战cd计时
|
--车迟挑战cd计时
|
||||||
|
|
@ -434,7 +434,7 @@ function this.ShowBattleResult(result, msg)
|
||||||
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
||||||
if bestData then
|
if bestData then
|
||||||
-- 胜利显示本场比赛的表现最好的英雄
|
-- 胜利显示本场比赛的表现最好的英雄
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
-- 打开关卡奖励界面
|
-- 打开关卡奖励界面
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup, DeathPosManager.drop, 1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup, DeathPosManager.drop, 1,function()
|
||||||
if _BattleBestPopup then
|
if _BattleBestPopup then
|
||||||
|
|
@ -452,7 +452,7 @@ function this.ShowBattleResult(result, msg)
|
||||||
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
||||||
if bestData then
|
if bestData then
|
||||||
-- 胜利显示本场比赛的表现最好的英雄
|
-- 胜利显示本场比赛的表现最好的英雄
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
-- 打开关卡奖励界面
|
-- 打开关卡奖励界面
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup,GuildTranscriptManager.drop, 1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup,GuildTranscriptManager.drop, 1,function()
|
||||||
if _BattleBestPopup then
|
if _BattleBestPopup then
|
||||||
|
|
@ -472,7 +472,7 @@ function this.ShowBattleResult(result, msg)
|
||||||
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
||||||
FightPointPassManager.oldLevel = PlayerManager.level
|
FightPointPassManager.oldLevel = PlayerManager.level
|
||||||
if bestData then
|
if bestData then
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
-- 打开关卡奖励界面
|
-- 打开关卡奖励界面
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup, this.lastBattleResult.drop, 1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup, this.lastBattleResult.drop, 1,function()
|
||||||
if _BattleBestPopup then
|
if _BattleBestPopup then
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ function BattleWinPopup:NextStep()
|
||||||
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
||||||
if bestData then
|
if bestData then
|
||||||
-- 胜利显示本场比赛的表现最好的英雄
|
-- 胜利显示本场比赛的表现最好的英雄
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
-- 打开关卡奖励界面
|
-- 打开关卡奖励界面
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup, m_battleResult.drop, 1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup, m_battleResult.drop, 1,function()
|
||||||
if _BattleBestPopup then
|
if _BattleBestPopup then
|
||||||
|
|
@ -121,7 +121,7 @@ function BattleWinPopup:NextStep()
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Expedition.RefreshPlayAniMainPanel)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Expedition.RefreshPlayAniMainPanel)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
--贪婪节点不弹领取圣物
|
--贪婪节点不弹领取圣物
|
||||||
if GetCurNodeInfo.type == ExpeditionNodeType.Greed then--贪婪节点
|
if GetCurNodeInfo.type == ExpeditionNodeType.Greed then--贪婪节点
|
||||||
if m_battleResult.drop.itemlist and #m_battleResult.drop.itemlist > 0 then
|
if m_battleResult.drop.itemlist and #m_battleResult.drop.itemlist > 0 then
|
||||||
|
|
@ -178,7 +178,7 @@ function BattleWinPopup:NextStep()
|
||||||
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
local bestData, allDamage= BattleRecordManager.GetBattleBestData()
|
||||||
if bestData then
|
if bestData then
|
||||||
-- 胜利显示本场比赛的表现最好的英雄
|
-- 胜利显示本场比赛的表现最好的英雄
|
||||||
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId, bestData.damage, allDamage, function(_BattleBestPopup)
|
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
|
||||||
-- 打开关卡奖励界面
|
-- 打开关卡奖励界面
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup,nil, 1,function()
|
UIManager.OpenPanel(UIName.RewardItemPopup,nil, 1,function()
|
||||||
--车迟抢夺cd计时
|
--车迟抢夺cd计时
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue