zhangqiang 2020-09-16 18:36:41 +08:00
parent e6b1832121
commit 97b10ca124
1 changed files with 5 additions and 1 deletions

View File

@ -112,6 +112,7 @@ function this:GetOpenTime(id)
end
end
end
LogBlue(str.." 宝镜开启时间")
return str
end
@ -131,6 +132,7 @@ this.UpdateCarbonContent = function(...)
go:GetComponent("Image").sprite = Util.LoadSprite(v.bg)
Util.GetGameObject(go, "titileBg/Text"):GetComponent("Text").text =v.name
local state = XuanYuanMirrorManager.GetMirrorState(k) == 1
LogGreen(k.." 宝镜state:"..state)
if not state then
local timeStr = this:GetOpenTime(k)
Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text").text = timeStr..Language[10357]
@ -147,8 +149,10 @@ this.UpdateCarbonContent = function(...)
Util.SetGray(go,not state)
Util.AddOnceClick(go ,function()
if state then
LogBlue("宝镜状态:"..type[k].name..state)
UIManager.OpenPanel(UIName.XuanYuanMirrorPanelList,k)
else
LogBlue("宝镜未开启提示:"..type[k].name..Language[12306])
PopupTipPanel.ShowTip(type[k].name..Language[12306])
end
end)