【轩辕宝镜】偶现跨0点报错
parent
8c7d2e935e
commit
5557795658
|
|
@ -144,45 +144,47 @@ end
|
||||||
|
|
||||||
this.refreshShow = function()
|
this.refreshShow = function()
|
||||||
local openFunctions = {}
|
local openFunctions = {}
|
||||||
for k,v in pairs(activityType) do
|
for k,v in pairs(activityType) do
|
||||||
local go = Util.GetGameObject(this.AnimRoot, v.gameObject)
|
local go = Util.GetGameObject(this.AnimRoot, v.gameObject)
|
||||||
go:GetComponent("Image").sprite = this.spLoader:LoadSprite(v.bg)
|
if go then
|
||||||
local textParnet = Util.GetGameObject(go, "titileBg")
|
go:GetComponent("Image").sprite = this.spLoader:LoadSprite(v.bg)
|
||||||
local textName = Util.GetGameObject(textParnet, "Text"):GetComponent("Text")
|
local textParnet = Util.GetGameObject(go, "titileBg")
|
||||||
textName.text =v.name
|
local textName = Util.GetGameObject(textParnet, "Text"):GetComponent("Text")
|
||||||
SetTextVerTial(Util.GetGameObject(textParnet, "Text"),Vector3.New(295.93,-10.17,0),"MiddleRight")
|
textName.text =v.name
|
||||||
if GetCurLanguage() == 2 then
|
SetTextVerTial(Util.GetGameObject(textParnet, "Text"),Vector3.New(295.93,-10.17,0),"MiddleRight")
|
||||||
textName.fontSize = 36
|
if GetCurLanguage() == 2 then
|
||||||
end
|
textName.fontSize = 36
|
||||||
|
|
||||||
local state = XuanYuanMirrorManager.GetMirrorState(k) == 1
|
|
||||||
--LogGreen(k.." 宝镜state:"..XuanYuanMirrorManager.GetMirrorState(k))
|
|
||||||
if not state or state == 0 then
|
|
||||||
local timeStr = this:GetOpenTime(k)
|
|
||||||
Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text").text = timeStr..Language[10310]
|
|
||||||
Util.GetGameObject(go, "redPoint").gameObject:SetActive(false)
|
|
||||||
else
|
|
||||||
openFunctions[k] = {}
|
|
||||||
openFunctions[k].timeComp = Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text")
|
|
||||||
if XuanYuanMirrorManager.CarbonRedCheck() then
|
|
||||||
Util.GetGameObject(go, "redPoint").gameObject:SetActive(true)
|
|
||||||
else
|
|
||||||
Util.GetGameObject(go, "redPoint").gameObject:SetActive(false)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Util.SetGray(go,not state)
|
|
||||||
Util.AddOnceClick(go ,function()
|
|
||||||
if state then
|
|
||||||
LogBlue("宝镜状态:"..activityType[k].name..XuanYuanMirrorManager.GetMirrorState(k))
|
|
||||||
UIManager.OpenPanel(UIName.XuanYuanMirrorPanelList,k)
|
|
||||||
else
|
|
||||||
LogBlue("宝镜未开启提示:"..activityType[k].name.."未开启!")
|
|
||||||
PopupTipPanel.ShowTip(activityType[k].name..Language[10338])
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
this:TimeCountDown(openFunctions)
|
|
||||||
this.remainTimes.text = XuanYuanMirrorManager.GetTimeTip()
|
local state = XuanYuanMirrorManager.GetMirrorState(k) == 1
|
||||||
|
--LogGreen(k.." 宝镜state:"..XuanYuanMirrorManager.GetMirrorState(k))
|
||||||
|
if not state or state == 0 then
|
||||||
|
local timeStr = this:GetOpenTime(k)
|
||||||
|
Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text").text = timeStr..Language[10310]
|
||||||
|
Util.GetGameObject(go, "redPoint").gameObject:SetActive(false)
|
||||||
|
else
|
||||||
|
openFunctions[k] = {}
|
||||||
|
openFunctions[k].timeComp = Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text")
|
||||||
|
if XuanYuanMirrorManager.CarbonRedCheck() then
|
||||||
|
Util.GetGameObject(go, "redPoint").gameObject:SetActive(true)
|
||||||
|
else
|
||||||
|
Util.GetGameObject(go, "redPoint").gameObject:SetActive(false)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Util.SetGray(go,not state)
|
||||||
|
Util.AddOnceClick(go ,function()
|
||||||
|
if state then
|
||||||
|
LogBlue("宝镜状态:"..activityType[k].name..XuanYuanMirrorManager.GetMirrorState(k))
|
||||||
|
UIManager.OpenPanel(UIName.XuanYuanMirrorPanelList,k)
|
||||||
|
else
|
||||||
|
LogBlue("宝镜未开启提示:"..activityType[k].name.."未开启!")
|
||||||
|
PopupTipPanel.ShowTip(activityType[k].name..Language[10338])
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
this:TimeCountDown(openFunctions)
|
||||||
|
this.remainTimes.text = XuanYuanMirrorManager.GetTimeTip()
|
||||||
end
|
end
|
||||||
|
|
||||||
this.UpdateCarbonContent = function(...)
|
this.UpdateCarbonContent = function(...)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue