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,29 @@
|
||||
local DiscNoteLayerCtrl = class("DiscNoteLayerCtrl", BaseCtrl)
|
||||
DiscNoteLayerCtrl._mapNodeConfig = {
|
||||
imgLine = {},
|
||||
goNote = {
|
||||
sCtrlName = "Game.UI.TemplateEx.TemplateDiscMultiNoteCtrl"
|
||||
},
|
||||
txtLayerDesc = {sComponentName = "TMP_Text"},
|
||||
txtLayerName = {sComponentName = "TMP_Text"},
|
||||
TMP_Link = {
|
||||
sNodeName = "txtLayerDesc",
|
||||
sComponentName = "TMPHyperLink",
|
||||
callback = "OnLinkClick_Word"
|
||||
}
|
||||
}
|
||||
DiscNoteLayerCtrl._mapEventConfig = {}
|
||||
function DiscNoteLayerCtrl:Refresh(tbNoteId, nNoteCount, sDesc, nLayer, bLast)
|
||||
self._mapNode.goNote:SetNoteItem(tbNoteId, nNoteCount)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtLayerDesc, sDesc)
|
||||
local sLayer = ConfigTable.GetUIText("Disc_CoreSkill_Base")
|
||||
if 1 < nLayer then
|
||||
sLayer = orderedFormat(ConfigTable.GetUIText("Disc_CoreSkill_Expand"), nLayer - 1)
|
||||
end
|
||||
NovaAPI.SetTMPText(self._mapNode.txtLayerName, sLayer)
|
||||
self._mapNode.imgLine:SetActive(not bLast)
|
||||
end
|
||||
function DiscNoteLayerCtrl:OnLinkClick_Word(link, sWordId)
|
||||
UTILS.ClickWordLink(link, sWordId)
|
||||
end
|
||||
return DiscNoteLayerCtrl
|
||||
Reference in New Issue
Block a user