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,38 @@
|
||||
local DepotItemInfoCtrl = class("DepotItemInfoCtrl", BaseCtrl)
|
||||
DepotItemInfoCtrl._mapNodeConfig = {
|
||||
goSkill = {
|
||||
sCtrlName = "Game.UI.DepotEx.DepotInfoSkillCtrl"
|
||||
},
|
||||
goDescribe = {
|
||||
sCtrlName = "Game.UI.DepotEx.DepotInfoDescribeCtrl"
|
||||
},
|
||||
goSource = {
|
||||
sCtrlName = "Game.UI.DepotEx.DepotInfoSourceCtrl"
|
||||
},
|
||||
Content = {
|
||||
sComponentName = "RectTransform"
|
||||
},
|
||||
Scrollbar = {sComponentName = "Transform"}
|
||||
}
|
||||
DepotItemInfoCtrl._mapEventConfig = {}
|
||||
function DepotItemInfoCtrl:SetItemInfo(nTog, mapItem)
|
||||
self._mapNode.Scrollbar.localScale = Vector3.zero
|
||||
self:SetItem(mapItem.nTid)
|
||||
self._mapNode.Scrollbar.localScale = Vector3.one
|
||||
end
|
||||
function DepotItemInfoCtrl:SetItem(nId)
|
||||
self._mapNode.goSkill.gameObject:SetActive(false)
|
||||
self._mapNode.goDescribe.gameObject:SetActive(true)
|
||||
self._mapNode.goSource.gameObject:SetActive(true)
|
||||
self._mapNode.goDescribe:SetDesc(nId)
|
||||
self._mapNode.goSource:Refresh(nId)
|
||||
end
|
||||
function DepotItemInfoCtrl:Awake()
|
||||
end
|
||||
function DepotItemInfoCtrl:OnEnable()
|
||||
end
|
||||
function DepotItemInfoCtrl:OnDisable()
|
||||
end
|
||||
function DepotItemInfoCtrl:OnDestroy()
|
||||
end
|
||||
return DepotItemInfoCtrl
|
||||
Reference in New Issue
Block a user