战斗结束打开回放按钮
parent
22ec1e1baa
commit
49cc691cbb
|
@ -125,8 +125,6 @@ function BattleFailPopup:OnOpen(battlePanel, showRecord, backPanel,_fightType)
|
||||||
this.btnBattleBack:SetActive(true)
|
this.btnBattleBack:SetActive(true)
|
||||||
this.btnGrowUp:SetActive(true)
|
this.btnGrowUp:SetActive(true)
|
||||||
end
|
end
|
||||||
this.btnGrowUp:SetActive(false)
|
|
||||||
this.btn_record:SetActive(false)
|
|
||||||
if fightType == BATTLE_TYPE.GUILD_CAR_DELAY then--车迟
|
if fightType == BATTLE_TYPE.GUILD_CAR_DELAY then--车迟
|
||||||
--车迟抢夺cd计时
|
--车迟抢夺cd计时
|
||||||
GuildCarDelayManager.SetCdTime(GuildCarDelayProType.Loot)
|
GuildCarDelayManager.SetCdTime(GuildCarDelayProType.Loot)
|
||||||
|
|
|
@ -152,7 +152,6 @@ function RewardItemPopup:OnOpen(...)
|
||||||
end
|
end
|
||||||
local haveRecord = BattleRecordManager.isHaveRecord()
|
local haveRecord = BattleRecordManager.isHaveRecord()
|
||||||
this.btnResult:SetActive(haveRecord and args[5])
|
this.btnResult:SetActive(haveRecord and args[5])
|
||||||
this.btnResult:SetActive(false)
|
|
||||||
this.btnBattleBack:SetActive(haveRecord and args[5] and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.MAP_FIGHT and not GuideManager.IsInMainGuide() and not MapManager.Mapping and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.TASUILINGXIAO)
|
this.btnBattleBack:SetActive(haveRecord and args[5] and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.MAP_FIGHT and not GuideManager.IsInMainGuide() and not MapManager.Mapping and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.TASUILINGXIAO)
|
||||||
this.expeditionGo:SetActive(compShowType == 5)
|
this.expeditionGo:SetActive(compShowType == 5)
|
||||||
this.guildDeathPos:SetActive(compShowType == 4)--十绝阵
|
this.guildDeathPos:SetActive(compShowType == 4)--十绝阵
|
||||||
|
|
|
@ -102,7 +102,7 @@ function TaSuiLingXiao:ShowLive()
|
||||||
self.LiveObj = nil
|
self.LiveObj = nil
|
||||||
end
|
end
|
||||||
self.configData = ConfigManager.GetConfigData(ConfigName.NewHeroConfig,self.actData.activityId)
|
self.configData = ConfigManager.GetConfigData(ConfigName.NewHeroConfig,self.actData.activityId)
|
||||||
local imgName = GetResourcePath(ConfigManager.GetConfigData(ConfigName.HeroConfig,self.configData.HeroId).Live)
|
local imgName = GetResourcePath(ConfigManager.GetConfigData(ConfigName.HeroConfig,self.configData.HeroId).Painting)
|
||||||
self.LiveObj = poolManager:LoadLive(imgName,self.liveRoot.transform, Vector3.one, Vector2.New(self.configData.Size[2],self.configData.Size[3]))
|
self.LiveObj = poolManager:LoadLive(imgName,self.liveRoot.transform, Vector3.one, Vector2.New(self.configData.Size[2],self.configData.Size[3]))
|
||||||
self.liveRoot:GetComponent("RectTransform").localScale = Vector3.one*self.configData.Size[1]
|
self.liveRoot:GetComponent("RectTransform").localScale = Vector3.one*self.configData.Size[1]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue