Initial version - 1.2.0.60
EN: 1.2.0.60 CN: 1.2.0.61 JP: 1.2.0.63 KR: 1.2.0.67
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
local InfinityTowerRollMsg = class("InfinityTowerRollMsg", BaseCtrl)
|
||||
InfinityTowerRollMsg._mapNodeConfig = {
|
||||
texTitle = {sComponentName = "TMP_Text"},
|
||||
texMsg = {sComponentName = "TMP_Text"}
|
||||
}
|
||||
function InfinityTowerRollMsg:InitRoll(nType, nIndex)
|
||||
self.type = nType
|
||||
self.Index = nIndex
|
||||
if nType == 1 then
|
||||
NovaAPI.SetTMPText(self._mapNode.texTitle, ConfigTable.GetUIText("InfinityTower_Bottom_Tips_Title_Daily"))
|
||||
elseif nType == 2 then
|
||||
NovaAPI.SetTMPText(self._mapNode.texTitle, ConfigTable.GetUIText("InfinityTower_Bottom_Tips_Title_Breakout"))
|
||||
elseif nType == 3 then
|
||||
NovaAPI.SetTMPText(self._mapNode.texTitle, ConfigTable.GetUIText("InfinityTower_Bottom_Tips_Title_News"))
|
||||
end
|
||||
end
|
||||
function InfinityTowerRollMsg:SetMsg()
|
||||
local mgsId = PlayerData.InfinityTower:GetBottomMsgId(self.type, self.Index)
|
||||
if mgsId then
|
||||
NovaAPI.SetTMPText(self._mapNode.texMsg, ConfigTable.GetData("InfinityTowerMsg", mgsId).Content)
|
||||
self.gameObject:SetActive(true)
|
||||
else
|
||||
self.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
return InfinityTowerRollMsg
|
||||
Reference in New Issue
Block a user