---@class ChipItem__Generate_num ---@field public gameObject UnityEngine.GameObject ---@field public text TMPro.TextMeshProUGUI ---@class ChipItem__Generate_natureIcon ---@field public gameObject UnityEngine.GameObject ---@field public image UnityEngine.UI.Image ---@class ChipItem__Generate_frame ---@field public gameObject UnityEngine.GameObject ---@field public image UnityEngine.UI.Image ---@class ChipItem__Generate_icon ---@field public gameObject UnityEngine.GameObject ---@field public image UnityEngine.UI.Image ---@class ChipItem__Generate_bg ---@field public gameObject UnityEngine.GameObject ---@field public image UnityEngine.UI.Image ---@field public button UnityEngine.UI.Button ---@class ChipItem__Generate ---@field private gameObject UnityEngine.GameObject ---@field private transform UnityEngine.Transform ---@field private bg ChipItem__Generate_bg ---@field private icon ChipItem__Generate_icon ---@field private frame ChipItem__Generate_frame ---@field private natureIcon ChipItem__Generate_natureIcon ---@field private redPoint UnityEngine.GameObject ---@field private num ChipItem__Generate_num local ChipItemView = class("ChipItemView") function ChipItemView:ctor() end ---@private function ChipItemView:SetActive(result) self.gameObject:SetActive(result) end ---@private function ChipItemView: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) end ---@private function ChipItemView:InitGenerate__1(Root, data) --[[ Root --]] end ---@private function ChipItemView:InitGenerate__2(Root, data) --[[ Bg --]] local tmp = Root:Find("Bg").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.bg = tmp tmp.image = tmp:GetComponent(Enum.TypeInfo.Image) tmp.button = tmp:GetComponent(Enum.TypeInfo.Button) end ---@private function ChipItemView:InitGenerate__3(Root, data) --[[ Icon --]] local tmp = Root:Find("Icon").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.icon = tmp tmp.image = tmp:GetComponent(Enum.TypeInfo.Image) end ---@private function ChipItemView:InitGenerate__4(Root, data) --[[ Frame --]] local tmp = Root:Find("Frame").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.frame = tmp tmp.image = tmp:GetComponent(Enum.TypeInfo.Image) end ---@private function ChipItemView:InitGenerate__5(Root, data) --[[ NatureIcon --]] local tmp = Root:Find("NatureIcon").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.natureIcon = tmp tmp.image = tmp:GetComponent(Enum.TypeInfo.Image) end ---@private function ChipItemView:InitGenerate__6(Root, data) --[[ RedPoint --]] local tmp = Root:Find("RedPoint").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.redPoint = tmp end ---@private function ChipItemView:InitGenerate__7(Root, data) --[[ Num --]] local tmp = Root:Find("Num").gameObject if tolua.getpeer(tmp) == nil then tolua.setpeer(tmp, {}) end self.num = tmp tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI) end ---@private function ChipItemView:GenerateDestroy() if tolua.getpeer(self.bg) ~= nil then tolua.setpeer(self.bg, nil) end self.bg = nil if tolua.getpeer(self.icon) ~= nil then tolua.setpeer(self.icon, nil) end self.icon = nil if tolua.getpeer(self.frame) ~= nil then tolua.setpeer(self.frame, nil) end self.frame = nil if tolua.getpeer(self.natureIcon) ~= nil then tolua.setpeer(self.natureIcon, nil) end self.natureIcon = nil if tolua.getpeer(self.redPoint) ~= nil then tolua.setpeer(self.redPoint, nil) end self.redPoint = nil if tolua.getpeer(self.num) ~= nil then tolua.setpeer(self.num, nil) end self.num = nil self.transform = nil self.gameObject = nil self.inited = false end return ChipItemView