【踏碎凌霄】界面显示调整

dev_chengFeng
ZhangBiao 2021-04-27 21:28:48 +08:00
parent 4e0b5a9033
commit 5401776a8d
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ function RewardItemPopup:InitComponent()
this.tasuilingxiao_CurScore=Util.GetGameObject(this.tasuilingxiao,"curScore/num"):GetComponent("Text")
this.tasuilingxiao_State=Util.GetGameObject(this.tasuilingxiao,"curScore/state"):GetComponent("Image")
this.tasuilingxiao_MaxScore=Util.GetGameObject(this.tasuilingxiao,"maxScore/num"):GetComponent("Text")
this.noRewardText = Util.GetGameObject(this.tasuilingxiao,"Text")
end
--绑定事件(用于子类重写)
@ -132,6 +133,8 @@ function RewardItemPopup:OnOpen(...)
this.guildTranscript:SetActive(compShowType == 6)
this.guildCarDelay:SetActive(compShowType == 3)
this.tasuilingxiao:SetActive(compShowType == 7)--踏碎凌霄
this.dropGrid:SetActive(false)
this.dropGridArena:SetActive(false)
-- 设置背景遮罩的显隐
local isHideBG = args[6]
this.btnBack:GetComponent("Image").color = Color.New(0, 0, 0, isHideBG and 0 or 0.8)
@ -228,6 +231,9 @@ function this.SetComPShowState(type)
this.guildDeathPos:SetActive(type == 4)
this.guildTranscript:SetActive(type == 6)
this.tasuilingxiao:SetActive(type == 7)
if type == 7 then
this.noRewardText:SetActive(#itemDataList < 1)
end
end
function this.GuildCarDelayShow()
if GuildCarDelayManager.score and GuildCarDelayManager.hurt then
@ -257,6 +263,7 @@ function this.TaSuiLingXiaoShow()
local maxDmg = CommonActPageManager.TaSuiLingXiaoHistoryDmg
this.tasuilingxiao_CurScore.text = curDmg
this.tasuilingxiao_MaxScore.text = maxDmg
this.noRewardText:SetActive(true)
local b = curDmg > maxDmg or curDmg < maxDmg
this.tasuilingxiao_State.gameObject:SetActive(b)