ro-webgl/Assets/Lua/UI/GridViewItem/ChatSearchTabItem_Generate.lua
2025-09-17 20:19:08 +08:00

396 lines
10 KiB
Lua

---@class ChatSearchTabItem__Generate_greetBtn
---@field public gameObject UnityEngine.GameObject
---@field public button UnityEngine.UI.Button
---@class ChatSearchTabItem__Generate_commentNum
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class ChatSearchTabItem__Generate_upVote
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class ChatSearchTabItem__Generate_photoPart_photo4
---@field public gameObject UnityEngine.GameObject
---@field public image UnityEngine.UI.Image
---@class ChatSearchTabItem__Generate_photoPart_photo3
---@field public gameObject UnityEngine.GameObject
---@field public image UnityEngine.UI.Image
---@class ChatSearchTabItem__Generate_photoPart_photo2
---@field public gameObject UnityEngine.GameObject
---@field public image UnityEngine.UI.Image
---@class ChatSearchTabItem__Generate_photoPart_photo1
---@field public gameObject UnityEngine.GameObject
---@field public image UnityEngine.UI.Image
---@class ChatSearchTabItem__Generate_photoPart
---@field public gameObject UnityEngine.GameObject
---@field public photo1 ChatSearchTabItem__Generate_photoPart_photo1
---@field public photo2 ChatSearchTabItem__Generate_photoPart_photo2
---@field public photo3 ChatSearchTabItem__Generate_photoPart_photo3
---@field public photo4 ChatSearchTabItem__Generate_photoPart_photo4
---@class ChatSearchTabItem__Generate_post
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class ChatSearchTabItem__Generate_marry
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class ChatSearchTabItem__Generate_nation
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class ChatSearchTabItem__Generate_age
---@field public gameObject UnityEngine.GameObject
---@field public text UnityEngine.UI.Text
---@class ChatSearchTabItem__Generate_location
---@field public gameObject UnityEngine.GameObject
---@field public text TMPro.TextMeshProUGUI
---@class ChatSearchTabItem__Generate_name
---@field public gameObject UnityEngine.GameObject
---@field public text TMPro.TextMeshProUGUI
---@class ChatSearchTabItem__Generate_headItem
---@field public gameObject UnityEngine.GameObject
---@field public layoutElement UnityEngine.UI.LayoutElement
---@class ChatSearchTabItem__Generate
---@field private gameObject UnityEngine.GameObject
---@field private transform UnityEngine.Transform
---@field private rectTransform UnityEngine.RectTransform
---@field private headItem ChatSearchTabItem__Generate_headItem
---@field private name ChatSearchTabItem__Generate_name
---@field private location ChatSearchTabItem__Generate_location
---@field private age ChatSearchTabItem__Generate_age
---@field private nation ChatSearchTabItem__Generate_nation
---@field private marry ChatSearchTabItem__Generate_marry
---@field private post ChatSearchTabItem__Generate_post
---@field private photoPart ChatSearchTabItem__Generate_photoPart
---@field private upVote ChatSearchTabItem__Generate_upVote
---@field private commentNum ChatSearchTabItem__Generate_commentNum
---@field private greetBtn ChatSearchTabItem__Generate_greetBtn
local ChatSearchTabItemView = class("ChatSearchTabItemView")
function ChatSearchTabItemView:ctor()
end
---@private
function ChatSearchTabItemView:SetActive(result)
self.gameObject:SetActive(result)
end
---@private
function ChatSearchTabItemView: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)
self:InitGenerate__16(Root,data)
end
---@private
function ChatSearchTabItemView:InitGenerate__1(Root, data)
--[[
Root
--]]
self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
end
---@private
function ChatSearchTabItemView:InitGenerate__2(Root, data)
--[[
TopPart/HeadInfo/HeadItem
--]]
local tmp = Root:Find("TopPart/HeadInfo/HeadItem").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
self.headItem.prefabName = "HeadItem"
tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
end
---@private
function ChatSearchTabItemView:InitGenerate__3(Root, data)
--[[
TopPart/Panel/Panel1/Name
--]]
local tmp = Root:Find("TopPart/Panel/Panel1/Name").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.name = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
end
---@private
function ChatSearchTabItemView:InitGenerate__4(Root, data)
--[[
TopPart/Panel/Panel1/Location
--]]
local tmp = Root:Find("TopPart/Panel/Panel1/Location").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.location = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
end
---@private
function ChatSearchTabItemView:InitGenerate__5(Root, data)
--[[
TopPart/Panel/Panel2/Panel1/Age
--]]
local tmp = Root:Find("TopPart/Panel/Panel2/Panel1/Age").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.age = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function ChatSearchTabItemView:InitGenerate__6(Root, data)
--[[
TopPart/Panel/Panel2/Panel2/Nation
--]]
local tmp = Root:Find("TopPart/Panel/Panel2/Panel2/Nation").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.nation = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function ChatSearchTabItemView:InitGenerate__7(Root, data)
--[[
TopPart/Panel/Panel2/Panel3/Marry
--]]
local tmp = Root:Find("TopPart/Panel/Panel2/Panel3/Marry").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.marry = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function ChatSearchTabItemView:InitGenerate__8(Root, data)
--[[
TopPart/Panel/Panel3/Post
--]]
local tmp = Root:Find("TopPart/Panel/Panel3/Post").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.post = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function ChatSearchTabItemView:InitGenerate__9(Root, data)
--[[
PhotoPart
--]]
local tmp = Root:Find("PhotoPart").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.photoPart = tmp
end
---@private
function ChatSearchTabItemView:InitGenerate__10(Root, data)
--[[
PhotoPart/Photo1
--]]
local tmp = Root:Find("PhotoPart/Photo1").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.photoPart.photo1 = tmp
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
end
---@private
function ChatSearchTabItemView:InitGenerate__11(Root, data)
--[[
PhotoPart/Photo2
--]]
local tmp = Root:Find("PhotoPart/Photo2").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.photoPart.photo2 = tmp
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
end
---@private
function ChatSearchTabItemView:InitGenerate__12(Root, data)
--[[
PhotoPart/Photo3
--]]
local tmp = Root:Find("PhotoPart/Photo3").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.photoPart.photo3 = tmp
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
end
---@private
function ChatSearchTabItemView:InitGenerate__13(Root, data)
--[[
PhotoPart/Photo4
--]]
local tmp = Root:Find("PhotoPart/Photo4").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.photoPart.photo4 = tmp
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
end
---@private
function ChatSearchTabItemView:InitGenerate__14(Root, data)
--[[
BottomPart/UpPanel/UpVote
--]]
local tmp = Root:Find("BottomPart/UpPanel/UpVote").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.upVote = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function ChatSearchTabItemView:InitGenerate__15(Root, data)
--[[
BottomPart/CommentPanel/CommentNum
--]]
local tmp = Root:Find("BottomPart/CommentPanel/CommentNum").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.commentNum = tmp
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
end
---@private
function ChatSearchTabItemView:InitGenerate__16(Root, data)
--[[
BottomPart/GreetBtn
--]]
local tmp = Root:Find("BottomPart/GreetBtn").gameObject
if tolua.getpeer(tmp) == nil then
tolua.setpeer(tmp, {})
end
self.greetBtn = tmp
tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
end
---@private
function ChatSearchTabItemView:GenerateDestroy()
if tolua.getpeer(self.photoPart.photo4) ~= nil then
tolua.setpeer(self.photoPart.photo4, nil)
end
if tolua.getpeer(self.photoPart.photo3) ~= nil then
tolua.setpeer(self.photoPart.photo3, nil)
end
if tolua.getpeer(self.photoPart.photo2) ~= nil then
tolua.setpeer(self.photoPart.photo2, nil)
end
if tolua.getpeer(self.photoPart.photo1) ~= nil then
tolua.setpeer(self.photoPart.photo1, nil)
end
if tolua.getpeer(self.photoPart) ~= nil then
tolua.setpeer(self.photoPart, nil)
end
if self.headItem.GenerateDestroy ~= nil then
self.headItem:GenerateDestroy()
end
if tolua.getpeer(self.headItem) ~= nil then
tolua.setpeer(self.headItem, nil)
end
if tolua.getpeer(self.name) ~= nil then
tolua.setpeer(self.name, nil)
end
self.name = nil
if tolua.getpeer(self.location) ~= nil then
tolua.setpeer(self.location, nil)
end
self.location = nil
if tolua.getpeer(self.age) ~= nil then
tolua.setpeer(self.age, nil)
end
self.age = nil
if tolua.getpeer(self.nation) ~= nil then
tolua.setpeer(self.nation, nil)
end
self.nation = nil
if tolua.getpeer(self.marry) ~= nil then
tolua.setpeer(self.marry, nil)
end
self.marry = nil
if tolua.getpeer(self.post) ~= nil then
tolua.setpeer(self.post, nil)
end
self.post = nil
if tolua.getpeer(self.upVote) ~= nil then
tolua.setpeer(self.upVote, nil)
end
self.upVote = nil
if tolua.getpeer(self.commentNum) ~= nil then
tolua.setpeer(self.commentNum, nil)
end
self.commentNum = nil
if tolua.getpeer(self.greetBtn) ~= nil then
tolua.setpeer(self.greetBtn, nil)
end
self.greetBtn = nil
self.transform = nil
self.gameObject = nil
self.inited = false
end
return ChatSearchTabItemView