【踏碎凌霄】界面显示调整
parent
4e0b5a9033
commit
5401776a8d
|
|
@ -67,6 +67,7 @@ function RewardItemPopup:InitComponent()
|
||||||
this.tasuilingxiao_CurScore=Util.GetGameObject(this.tasuilingxiao,"curScore/num"):GetComponent("Text")
|
this.tasuilingxiao_CurScore=Util.GetGameObject(this.tasuilingxiao,"curScore/num"):GetComponent("Text")
|
||||||
this.tasuilingxiao_State=Util.GetGameObject(this.tasuilingxiao,"curScore/state"):GetComponent("Image")
|
this.tasuilingxiao_State=Util.GetGameObject(this.tasuilingxiao,"curScore/state"):GetComponent("Image")
|
||||||
this.tasuilingxiao_MaxScore=Util.GetGameObject(this.tasuilingxiao,"maxScore/num"):GetComponent("Text")
|
this.tasuilingxiao_MaxScore=Util.GetGameObject(this.tasuilingxiao,"maxScore/num"):GetComponent("Text")
|
||||||
|
this.noRewardText = Util.GetGameObject(this.tasuilingxiao,"Text")
|
||||||
end
|
end
|
||||||
|
|
||||||
--绑定事件(用于子类重写)
|
--绑定事件(用于子类重写)
|
||||||
|
|
@ -132,6 +133,8 @@ function RewardItemPopup:OnOpen(...)
|
||||||
this.guildTranscript:SetActive(compShowType == 6)
|
this.guildTranscript:SetActive(compShowType == 6)
|
||||||
this.guildCarDelay:SetActive(compShowType == 3)
|
this.guildCarDelay:SetActive(compShowType == 3)
|
||||||
this.tasuilingxiao:SetActive(compShowType == 7)--踏碎凌霄
|
this.tasuilingxiao:SetActive(compShowType == 7)--踏碎凌霄
|
||||||
|
this.dropGrid:SetActive(false)
|
||||||
|
this.dropGridArena:SetActive(false)
|
||||||
-- 设置背景遮罩的显隐
|
-- 设置背景遮罩的显隐
|
||||||
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)
|
||||||
|
|
@ -228,6 +231,9 @@ function this.SetComPShowState(type)
|
||||||
this.guildDeathPos:SetActive(type == 4)
|
this.guildDeathPos:SetActive(type == 4)
|
||||||
this.guildTranscript:SetActive(type == 6)
|
this.guildTranscript:SetActive(type == 6)
|
||||||
this.tasuilingxiao:SetActive(type == 7)
|
this.tasuilingxiao:SetActive(type == 7)
|
||||||
|
if type == 7 then
|
||||||
|
this.noRewardText:SetActive(#itemDataList < 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function this.GuildCarDelayShow()
|
function this.GuildCarDelayShow()
|
||||||
if GuildCarDelayManager.score and GuildCarDelayManager.hurt then
|
if GuildCarDelayManager.score and GuildCarDelayManager.hurt then
|
||||||
|
|
@ -257,6 +263,7 @@ function this.TaSuiLingXiaoShow()
|
||||||
local maxDmg = CommonActPageManager.TaSuiLingXiaoHistoryDmg
|
local maxDmg = CommonActPageManager.TaSuiLingXiaoHistoryDmg
|
||||||
this.tasuilingxiao_CurScore.text = curDmg
|
this.tasuilingxiao_CurScore.text = curDmg
|
||||||
this.tasuilingxiao_MaxScore.text = maxDmg
|
this.tasuilingxiao_MaxScore.text = maxDmg
|
||||||
|
this.noRewardText:SetActive(true)
|
||||||
|
|
||||||
local b = curDmg > maxDmg or curDmg < maxDmg
|
local b = curDmg > maxDmg or curDmg < maxDmg
|
||||||
this.tasuilingxiao_State.gameObject:SetActive(b)
|
this.tasuilingxiao_State.gameObject:SetActive(b)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue