--[[ 背包快捷使用面包 ]] local UIBagItemFastApplyPanel = UIViewClass() function UIBagItemFastApplyPanel:OnOpened(context) self:RegistSystemEvent(EventID.Bag_ItemFastApply, self.OpenFastApplyView) self:SetPushStyle(LuaConst.PushStyleEnum.NOTCLOSE) end function UIBagItemFastApplyPanel:OpenFastApplyView(context) context.parentView = self self.subView:OpenView(GetViewClass(Const_UI_Lua.UIEnum.UIBagItemFastApply), context) end function UIBagItemFastApplyPanel:CheckPanelClose() if not self.subView:IsViewOpened(Const_UI_Lua.UIEnum.UIBagItemFastApply) then self:CloseView() end end return UIBagItemFastApplyPanel