Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev
commit
ecc7e155a0
|
@ -11,11 +11,13 @@ end
|
|||
--添加事件监听(用于子类重写)
|
||||
function ExpertPage:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, self.RefreshData,self)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityProgressStateChange, self.RefreshData,self)
|
||||
end
|
||||
|
||||
--移除事件监听(用于子类重写)
|
||||
function ExpertPage:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, self.RefreshData,self)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityProgressStateChange, self.RefreshData,self)
|
||||
end
|
||||
|
||||
|
||||
|
@ -94,9 +96,10 @@ function ExpertPage:OnShow(_sortingOrder)
|
|||
else
|
||||
self.titleIma.gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
self.tipText = ""
|
||||
if self.actConfig.TitleText and self.actConfig.TitleText ~= "" then
|
||||
local str = string.split(GetLanguageStrById(self.actConfig.TitleText),"|")
|
||||
self.tipText = str[1]
|
||||
self.titleTip.text = str[1]
|
||||
self.titleTip.transform.localPosition = Vector3.New((str[2] or 0),(str[3] or 0),(str[4] or 0))
|
||||
self.titleTip.gameObject:SetActive(true)
|
||||
|
@ -144,8 +147,8 @@ end
|
|||
|
||||
--刷新数据
|
||||
function ExpertPage:RefreshData(isTop,isAni)
|
||||
Log("ActiveType:"..tostring(self.actConfig.ActiveType))
|
||||
self.ActData = CommonActPageManager.GetData(self.actConfig.ActiveType)
|
||||
self.titleTip.text = string.format(self.tipText,self.ActData.value)
|
||||
if self.actConfig.RpType > 0 then
|
||||
CheckRedPointStatus(self.actConfig.RpType)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue