xuanyuan commit
parent
bb43d526b2
commit
35712b99de
|
@ -9,22 +9,22 @@ local type = {
|
||||||
[1] = {
|
[1] = {
|
||||||
bg = "ui_fb_btn_jy",
|
bg = "ui_fb_btn_jy",
|
||||||
name = Language[12299],
|
name = Language[12299],
|
||||||
gameObject = "btnRoot/circle/root/renjiebaojing" ,
|
gameObject = "renjiebaojing" ,
|
||||||
},
|
},
|
||||||
[2] = {
|
[2] = {
|
||||||
bg = "ui_fb_btn_gh",
|
bg = "ui_fb_btn_gh",
|
||||||
name = Language[12300],
|
name = Language[12300],
|
||||||
gameObject = "btnRoot/circle/root/fuochanbaojing" ,
|
gameObject = "fuochanbaojing" ,
|
||||||
},
|
},
|
||||||
[3] = {
|
[3] = {
|
||||||
bg = "ui_fb_btn_sl",
|
bg = "ui_fb_btn_sl",
|
||||||
name = Language[12301],
|
name = Language[12301],
|
||||||
gameObject = "btnRoot/circle/root/yaolingbaojing" ,
|
gameObject = "yaolingbaojing" ,
|
||||||
},
|
},
|
||||||
[4] = {
|
[4] = {
|
||||||
bg = "ui_fb_btn_jq",
|
bg = "ui_fb_btn_jq",
|
||||||
name = Language[12302],
|
name = Language[12302],
|
||||||
gameObject = "btnRoot/circle/root/daoxuanbaojing" ,
|
gameObject = "daoxuanbaojing" ,
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -125,10 +125,9 @@ this.UpdateCarbonContent = function(...)
|
||||||
local temp = temp[1]
|
local temp = temp[1]
|
||||||
if index and index >= 0 then
|
if index and index >= 0 then
|
||||||
Timer.New(function()
|
Timer.New(function()
|
||||||
LogYellow("收到消息,刷新界面")
|
|
||||||
local openFunctions = {}
|
local openFunctions = {}
|
||||||
for k,v in pairs(type) do
|
for k,v in pairs(type) do
|
||||||
local go = Util.GetGameObject(this.gameObject, v.gameObject)
|
local go = Util.GetGameObject(this.AnimRoot, v.gameObject)
|
||||||
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
|
||||||
|
@ -204,6 +203,7 @@ function this:OnDestroy()
|
||||||
self.timer:Stop()
|
self.timer:Stop()
|
||||||
self.timer = nil
|
self.timer = nil
|
||||||
end
|
end
|
||||||
|
type = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
--刷新时间
|
--刷新时间
|
||||||
|
|
Loading…
Reference in New Issue