xuanyaun commit
parent
d423f61e4b
commit
b00d112660
|
|
@ -132,7 +132,7 @@ this.UpdateCarbonContent = function(...)
|
||||||
go:GetComponent("Image").sprite = Util.LoadSprite(v.bg)
|
go:GetComponent("Image").sprite = Util.LoadSprite(v.bg)
|
||||||
Util.GetGameObject(go, "titileBg/Text"):GetComponent("Text").text =v.name
|
Util.GetGameObject(go, "titileBg/Text"):GetComponent("Text").text =v.name
|
||||||
local state = XuanYuanMirrorManager.GetMirrorState(k) == 1
|
local state = XuanYuanMirrorManager.GetMirrorState(k) == 1
|
||||||
LogGreen(k.." 宝镜state:"..state)
|
LogGreen(k.." 宝镜state:"..XuanYuanMirrorManager.GetMirrorState(k))
|
||||||
if not state or state == 0 then
|
if not state or state == 0 then
|
||||||
local timeStr = this:GetOpenTime(k)
|
local timeStr = this:GetOpenTime(k)
|
||||||
Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text").text = timeStr..Language[10357]
|
Util.GetGameObject(go, "timeBg/Text"):GetComponent("Text").text = timeStr..Language[10357]
|
||||||
|
|
@ -149,7 +149,7 @@ this.UpdateCarbonContent = function(...)
|
||||||
Util.SetGray(go,not state)
|
Util.SetGray(go,not state)
|
||||||
Util.AddOnceClick(go ,function()
|
Util.AddOnceClick(go ,function()
|
||||||
if state then
|
if state then
|
||||||
LogBlue("宝镜状态:"..type[k].name..state)
|
LogBlue("宝镜状态:"..type[k].name..XuanYuanMirrorManager.GetMirrorState(k))
|
||||||
UIManager.OpenPanel(UIName.XuanYuanMirrorPanelList,k)
|
UIManager.OpenPanel(UIName.XuanYuanMirrorPanelList,k)
|
||||||
else
|
else
|
||||||
LogBlue("宝镜未开启提示:"..type[k].name..Language[12306])
|
LogBlue("宝镜未开启提示:"..type[k].name..Language[12306])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue