---@class CardBook__Generate_btnBack ---@field public gameObject UnityEngine.GameObject ---@field public button UnityEngine.UI.Button ---@class CardBook__Generate_qty_text ---@field public gameObject UnityEngine.GameObject ---@field public text UnityEngine.UI.Text ---@class CardBook__Generate_qty ---@field public gameObject UnityEngine.GameObject ---@field public iconAll UnityEngine.GameObject ---@field public iconNormal UnityEngine.GameObject ---@field public iconMini UnityEngine.GameObject ---@field public iconMvp UnityEngine.GameObject ---@field public text CardBook__Generate_qty_text ---@class CardBook__Generate_toggleMVP ---@field public gameObject UnityEngine.GameObject ---@field public toggle UnityEngine.UI.Toggle ---@class CardBook__Generate_toggleMini ---@field public gameObject UnityEngine.GameObject ---@field public toggle UnityEngine.UI.Toggle ---@class CardBook__Generate_toggleNormal ---@field public gameObject UnityEngine.GameObject ---@field public toggle UnityEngine.UI.Toggle ---@class CardBook__Generate_toggleAll ---@field public gameObject UnityEngine.GameObject ---@field public toggle UnityEngine.UI.Toggle ---@class CardBook__Generate_toggleGroup ---@field public gameObject UnityEngine.GameObject ---@field public toggleGroup UnityEngine.UI.ToggleGroup ---@class CardBook__Generate_scrollView ---@field public gameObject UnityEngine.GameObject ---@field public loopGridView SuperScrollView.LoopGridView ---@class CardBook__Generate ---@field private gameObject UnityEngine.GameObject ---@field private transform UnityEngine.Transform ---@field private rectTransform UnityEngine.RectTransform ---@field private scrollView CardBook__Generate_scrollView ---@field private cardCollect UnityEngine.GameObject ---@field private toggleGroup CardBook__Generate_toggleGroup ---@field private toggleAll CardBook__Generate_toggleAll ---@field private toggleNormal CardBook__Generate_toggleNormal ---@field private toggleMini CardBook__Generate_toggleMini ---@field private toggleMVP CardBook__Generate_toggleMVP ---@field private qty CardBook__Generate_qty ---@field private btnBack CardBook__Generate_btnBack local CardBookView = class("CardBookView") function CardBookView:ctor() end ---@private function CardBookView:SetActive(result) self.gameObject:SetActive(result) end ---@private function CardBookView:InitGenerate(Root, data) self.transform = Root self.inited = true local tmp self:InitGenerate__1(Root,data) self:InitGenerate__2(Root,data) self:InitGenerate__3(Root,data) self:InitGenerate__4(Root,data) self:InitGenerate__5(Root,data) self:InitGenerate__6(Root,data) self:InitGenerate__7(Root,data) self:InitGenerate__8(Root,data) self:InitGenerate__9(Root,data) self:InitGenerate__10(Root,data) self:InitGenerate__11(Root,data) self:InitGenerate__12(Root,data) self:InitGenerate__13(Root,data) self:InitGenerate__14(Root,data) self:InitGenerate__15(Root,data) end ---@private function CardBookView:InitGenerate__1(Root, data) --[[ Root --]] self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform) end ---@private function CardBookView:InitGenerate__2(Root, data) --[[ ScrollView --]] local tmp = Root:Find("ScrollView").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.scrollView = tmp tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView) end ---@private function CardBookView:InitGenerate__3(Root, data) --[[ ScrollView/Viewport/Content/CardCollect --]] local tmp = Root:Find("ScrollView/Viewport/Content/CardCollect").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.cardCollect = CommonUtil.BindGridViewItem2LuaStatic("CardCollect", tmp) self.cardCollect.prefabName = "CardCollect" end ---@private function CardBookView:InitGenerate__4(Root, data) --[[ ToggleGroup --]] local tmp = Root:Find("ToggleGroup").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.toggleGroup = tmp tmp.toggleGroup = tmp:GetComponent(Enum.TypeInfo.ToggleGroup) end ---@private function CardBookView:InitGenerate__5(Root, data) --[[ ToggleGroup/ToggleAll --]] local tmp = Root:Find("ToggleGroup/ToggleAll").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.toggleAll = tmp tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle) end ---@private function CardBookView:InitGenerate__6(Root, data) --[[ ToggleGroup/ToggleNormal --]] local tmp = Root:Find("ToggleGroup/ToggleNormal").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.toggleNormal = tmp tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle) end ---@private function CardBookView:InitGenerate__7(Root, data) --[[ ToggleGroup/ToggleMini --]] local tmp = Root:Find("ToggleGroup/ToggleMini").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.toggleMini = tmp tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle) end ---@private function CardBookView:InitGenerate__8(Root, data) --[[ ToggleGroup/ToggleMVP --]] local tmp = Root:Find("ToggleGroup/ToggleMVP").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.toggleMVP = tmp tmp.toggle = tmp:GetComponent(Enum.TypeInfo.Toggle) end ---@private function CardBookView:InitGenerate__9(Root, data) --[[ Qty --]] local tmp = Root:Find("Qty").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.qty = tmp end ---@private function CardBookView:InitGenerate__10(Root, data) --[[ Qty/IconAll --]] local tmp = Root:Find("Qty/IconAll").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.qty.iconAll = tmp end ---@private function CardBookView:InitGenerate__11(Root, data) --[[ Qty/IconNormal --]] local tmp = Root:Find("Qty/IconNormal").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.qty.iconNormal = tmp end ---@private function CardBookView:InitGenerate__12(Root, data) --[[ Qty/IconMini --]] local tmp = Root:Find("Qty/IconMini").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.qty.iconMini = tmp end ---@private function CardBookView:InitGenerate__13(Root, data) --[[ Qty/IconMvp --]] local tmp = Root:Find("Qty/IconMvp").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.qty.iconMvp = tmp end ---@private function CardBookView:InitGenerate__14(Root, data) --[[ Qty/Text --]] local tmp = Root:Find("Qty/Text").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.qty.text = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.Text) end ---@private function CardBookView:InitGenerate__15(Root, data) --[[ BtnBack --]] local tmp = Root:Find("BtnBack").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.btnBack = tmp tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function CardBookView:GenerateDestroy() if tolua.getpeer(self.qty.text) ~= nil then tolua.setpeer(self.qty.text, nil) end if tolua.getpeer(self.qty.iconMvp) ~= nil then tolua.setpeer(self.qty.iconMvp, nil) end if tolua.getpeer(self.qty.iconMini) ~= nil then tolua.setpeer(self.qty.iconMini, nil) end if tolua.getpeer(self.qty.iconNormal) ~= nil then tolua.setpeer(self.qty.iconNormal, nil) end if tolua.getpeer(self.qty.iconAll) ~= nil then tolua.setpeer(self.qty.iconAll, nil) end if tolua.getpeer(self.scrollView) ~= nil then tolua.setpeer(self.scrollView, nil) end self.scrollView = nil if self.cardCollect.GenerateDestroy ~= nil then self.cardCollect:GenerateDestroy() end if tolua.getpeer(self.cardCollect) ~= nil then tolua.setpeer(self.cardCollect, nil) end self.cardCollect = nil if tolua.getpeer(self.toggleGroup) ~= nil then tolua.setpeer(self.toggleGroup, nil) end self.toggleGroup = nil if tolua.getpeer(self.toggleAll) ~= nil then tolua.setpeer(self.toggleAll, nil) end self.toggleAll = nil if tolua.getpeer(self.toggleNormal) ~= nil then tolua.setpeer(self.toggleNormal, nil) end self.toggleNormal = nil if tolua.getpeer(self.toggleMini) ~= nil then tolua.setpeer(self.toggleMini, nil) end self.toggleMini = nil if tolua.getpeer(self.toggleMVP) ~= nil then tolua.setpeer(self.toggleMVP, nil) end self.toggleMVP = nil if tolua.getpeer(self.qty) ~= nil then tolua.setpeer(self.qty, nil) end self.qty = nil if tolua.getpeer(self.btnBack) ~= nil then tolua.setpeer(self.btnBack, nil) end self.btnBack = nil self.transform = nil self.gameObject = nil self.inited = false end return CardBookView