Files
StellaSora_DataLua/lua/game/ui/depotex/depotiteminfoctrl.lua
T
SL1900 5e0d58cfad 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
2025-12-03 01:00:00 +09:00

39 lines
1.1 KiB
Lua

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