| 123456789101112131415161718192021222324252627282930 |
- local FindBagFirstItem = class("FindBagFirstItem", require("ForceGuide/ForceGuideBase"))
- function FindBagFirstItem:ctor(data)
- end
- function FindBagFirstItem:Enter(forceView, uiId, param, cb)
- self.wnd = forceView
- self.cb = cb
- local page = ManagerContainer.LuaUIMgr:GetPage(uiId)
- if page == nil then
- self.cb(self.wnd, true)
- return
- end
- local bagView = page.MLuaTable
- bagView:FindBagFirstItem(tonumber(param), self, self.EnterCallBack)
- end
- function FindBagFirstItem:EnterCallBack(target)
- if self.wnd and self.cb then
- if target == nil then
- self.cb(self.wnd, true)
- else
- self.cb(self.wnd, false, target)
- end
- end
- end
- return FindBagFirstItem
|