557 lines
15 KiB
Lua
557 lines
15 KiB
Lua
---@class ChatSearchTabItem__Generate_greetBtn
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public button UnityEngine.UI.Button
|
|
---@field public lock UnityEngine.GameObject
|
|
---@field public redPoint UnityEngine.GameObject
|
|
|
|
---@class ChatSearchTabItem__Generate_commentNum
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class ChatSearchTabItem__Generate_upVote
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@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 mask1 UnityEngine.GameObject
|
|
---@field public photo1 ChatSearchTabItem__Generate_photoPart_photo1
|
|
---@field public mask2 UnityEngine.GameObject
|
|
---@field public photo2 ChatSearchTabItem__Generate_photoPart_photo2
|
|
---@field public mask3 UnityEngine.GameObject
|
|
---@field public photo3 ChatSearchTabItem__Generate_photoPart_photo3
|
|
---@field public mask4 UnityEngine.GameObject
|
|
---@field public photo4 ChatSearchTabItem__Generate_photoPart_photo4
|
|
|
|
---@class ChatSearchTabItem__Generate_post
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class ChatSearchTabItem__Generate_marry
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class ChatSearchTabItem__Generate_nation
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class ChatSearchTabItem__Generate_online
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class ChatSearchTabItem__Generate_location
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class ChatSearchTabItem__Generate_age
|
|
---@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_headIconNode_headIcon
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
|
|
---@class ChatSearchTabItem__Generate_headIconNode
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public headIcon ChatSearchTabItem__Generate_headIconNode_headIcon
|
|
|
|
---@class ChatSearchTabItem__Generate
|
|
---@field private gameObject UnityEngine.GameObject
|
|
---@field private transform UnityEngine.Transform
|
|
---@field private rectTransform UnityEngine.RectTransform
|
|
---@field private headIconNode ChatSearchTabItem__Generate_headIconNode
|
|
---@field private name ChatSearchTabItem__Generate_name
|
|
---@field private age ChatSearchTabItem__Generate_age
|
|
---@field private location ChatSearchTabItem__Generate_location
|
|
---@field private online ChatSearchTabItem__Generate_online
|
|
---@field private age111 UnityEngine.GameObject
|
|
---@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)
|
|
self:InitGenerate__17(Root,data)
|
|
self:InitGenerate__18(Root,data)
|
|
self:InitGenerate__19(Root,data)
|
|
self:InitGenerate__20(Root,data)
|
|
self:InitGenerate__21(Root,data)
|
|
self:InitGenerate__22(Root,data)
|
|
self:InitGenerate__23(Root,data)
|
|
self:InitGenerate__24(Root,data)
|
|
self:InitGenerate__25(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)
|
|
--[[
|
|
Left/HeadInfo/HeadBorder/HeadIconNode
|
|
--]]
|
|
local tmp = Root:Find("Left/HeadInfo/HeadBorder/HeadIconNode").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.headIconNode = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__3(Root, data)
|
|
--[[
|
|
Left/HeadInfo/HeadBorder/HeadIconNode/HeadIcon
|
|
--]]
|
|
local tmp = Root:Find("Left/HeadInfo/HeadBorder/HeadIconNode/HeadIcon").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.headIconNode.headIcon = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__4(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel1/Name
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/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__5(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel1/Age/Age
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel1/Age/Age").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.age = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__6(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel1/Age/Location
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel1/Age/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__7(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel1/Online
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel1/Online").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.online = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__8(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel2/Panel1/Age111
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel2/Panel1/Age111").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.age111 = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__9(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel2/Panel2/Nation
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel2/Panel2/Nation").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.nation = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__10(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel2/Panel3/Marry
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel2/Panel3/Marry").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.marry = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__11(Root, data)
|
|
--[[
|
|
Right/TopPart/Panel3/Post
|
|
--]]
|
|
local tmp = Root:Find("Right/TopPart/Panel3/Post").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.post = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__12(Root, data)
|
|
--[[
|
|
Right/PhotoPart
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.photoPart = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__13(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask1
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask1").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.photoPart.mask1 = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__14(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask1/Photo1
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask1/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__15(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask2
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask2").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.photoPart.mask2 = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__16(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask2/Photo2
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask2/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__17(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask3
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask3").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.photoPart.mask3 = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__18(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask3/Photo3
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask3/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__19(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask4
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask4").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.photoPart.mask4 = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__20(Root, data)
|
|
--[[
|
|
Right/PhotoPart/Mask4/Photo4
|
|
--]]
|
|
local tmp = Root:Find("Right/PhotoPart/Mask4/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__21(Root, data)
|
|
--[[
|
|
Right/BottomPart/UpPanel/UpVote
|
|
--]]
|
|
local tmp = Root:Find("Right/BottomPart/UpPanel/UpVote").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.upVote = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__22(Root, data)
|
|
--[[
|
|
Right/BottomPart/CommentPanel/CommentNum
|
|
--]]
|
|
local tmp = Root:Find("Right/BottomPart/CommentPanel/CommentNum").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.commentNum = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__23(Root, data)
|
|
--[[
|
|
Right/BottomPart/GreetBtn
|
|
--]]
|
|
local tmp = Root:Find("Right/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:InitGenerate__24(Root, data)
|
|
--[[
|
|
Right/BottomPart/GreetBtn/Lock
|
|
--]]
|
|
local tmp = Root:Find("Right/BottomPart/GreetBtn/Lock").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.greetBtn.lock = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:InitGenerate__25(Root, data)
|
|
--[[
|
|
Right/BottomPart/GreetBtn/RedPoint
|
|
--]]
|
|
local tmp = Root:Find("Right/BottomPart/GreetBtn/RedPoint").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.greetBtn.redPoint = tmp
|
|
end
|
|
|
|
---@private
|
|
function ChatSearchTabItemView:GenerateDestroy()
|
|
if tolua.getpeer(self.greetBtn.redPoint) ~= nil then
|
|
tolua.setpeer(self.greetBtn.redPoint, nil)
|
|
end
|
|
if tolua.getpeer(self.greetBtn.lock) ~= nil then
|
|
tolua.setpeer(self.greetBtn.lock, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.photo4) ~= nil then
|
|
tolua.setpeer(self.photoPart.photo4, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.mask4) ~= nil then
|
|
tolua.setpeer(self.photoPart.mask4, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.photo3) ~= nil then
|
|
tolua.setpeer(self.photoPart.photo3, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.mask3) ~= nil then
|
|
tolua.setpeer(self.photoPart.mask3, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.photo2) ~= nil then
|
|
tolua.setpeer(self.photoPart.photo2, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.mask2) ~= nil then
|
|
tolua.setpeer(self.photoPart.mask2, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.photo1) ~= nil then
|
|
tolua.setpeer(self.photoPart.photo1, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart.mask1) ~= nil then
|
|
tolua.setpeer(self.photoPart.mask1, nil)
|
|
end
|
|
if tolua.getpeer(self.photoPart) ~= nil then
|
|
tolua.setpeer(self.photoPart, nil)
|
|
end
|
|
if tolua.getpeer(self.headIconNode.headIcon) ~= nil then
|
|
tolua.setpeer(self.headIconNode.headIcon, nil)
|
|
end
|
|
if tolua.getpeer(self.headIconNode) ~= nil then
|
|
tolua.setpeer(self.headIconNode, nil)
|
|
end
|
|
self.headIconNode = nil
|
|
if tolua.getpeer(self.name) ~= nil then
|
|
tolua.setpeer(self.name, nil)
|
|
end
|
|
self.name = nil
|
|
if tolua.getpeer(self.age) ~= nil then
|
|
tolua.setpeer(self.age, nil)
|
|
end
|
|
self.age = nil
|
|
if tolua.getpeer(self.location) ~= nil then
|
|
tolua.setpeer(self.location, nil)
|
|
end
|
|
self.location = nil
|
|
if tolua.getpeer(self.online) ~= nil then
|
|
tolua.setpeer(self.online, nil)
|
|
end
|
|
self.online = nil
|
|
if tolua.getpeer(self.age111) ~= nil then
|
|
tolua.setpeer(self.age111, nil)
|
|
end
|
|
self.age111 = 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 |