【战斗回放】按钮显示修改
parent
dadda1ed7d
commit
6dbc555860
|
@ -145,13 +145,8 @@ 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.btnBattleBack:SetActive(haveRecord and args[5])
|
this.btnBattleBack:SetActive(haveRecord and args[5] and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.MAP_FIGHT)
|
||||||
this.btnResultMax:SetActive(haveRecord and args[5])
|
this.btnResultMax:SetActive(haveRecord and args[5])
|
||||||
if BattleManager.GetLastBattleType() == BATTLE_TYPE.MAP_FIGHT then--地图
|
|
||||||
this.btnBattleBack:SetActive(false)
|
|
||||||
else
|
|
||||||
this.btnBattleBack:SetActive(true)
|
|
||||||
end
|
|
||||||
-- 设置背景遮罩的显隐
|
-- 设置背景遮罩的显隐
|
||||||
local isHideBG = args[6]
|
local isHideBG = args[6]
|
||||||
this.btnBack:GetComponent("Image").color = Color.New(0, 0, 0, isHideBG and 0 or 0.8)
|
this.btnBack:GetComponent("Image").color = Color.New(0, 0, 0, isHideBG and 0 or 0.8)
|
||||||
|
|
Loading…
Reference in New Issue