战斗结束打开回放按钮

wangzhenxing 2023-11-14 14:09:22 +08:00
parent 22ec1e1baa
commit 49cc691cbb
3 changed files with 1 additions and 4 deletions

View File

@ -125,8 +125,6 @@ function BattleFailPopup:OnOpen(battlePanel, showRecord, backPanel,_fightType)
this.btnBattleBack:SetActive(true)
this.btnGrowUp:SetActive(true)
end
this.btnGrowUp:SetActive(false)
this.btn_record:SetActive(false)
if fightType == BATTLE_TYPE.GUILD_CAR_DELAY then--车迟
--车迟抢夺cd计时
GuildCarDelayManager.SetCdTime(GuildCarDelayProType.Loot)

View File

@ -152,7 +152,6 @@ function RewardItemPopup:OnOpen(...)
end
local haveRecord = BattleRecordManager.isHaveRecord()
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.expeditionGo:SetActive(compShowType == 5)
this.guildDeathPos:SetActive(compShowType == 4)--十绝阵

View File

@ -102,7 +102,7 @@ function TaSuiLingXiao:ShowLive()
self.LiveObj = nil
end
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.liveRoot:GetComponent("RectTransform").localScale = Vector3.one*self.configData.Size[1]
end