302 lines
7.9 KiB
Lua
302 lines
7.9 KiB
Lua
---@class LiveRoomReadyGoodsItem__Generate_text_info2
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_text_info1
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_text_name
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_item3
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public rectTransform UnityEngine.RectTransform
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_item2
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public rectTransform UnityEngine.RectTransform
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_item1
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public rectTransform UnityEngine.RectTransform
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_img_gift
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate_bg
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
---@field public switchSprite SwitchSprite
|
|
|
|
---@class LiveRoomReadyGoodsItem__Generate
|
|
---@field private gameObject UnityEngine.GameObject
|
|
---@field private transform UnityEngine.Transform
|
|
---@field private button UnityEngine.UI.Button
|
|
---@field private bg LiveRoomReadyGoodsItem__Generate_bg
|
|
---@field private img_gift LiveRoomReadyGoodsItem__Generate_img_gift
|
|
---@field private items UnityEngine.GameObject
|
|
---@field private item1 LiveRoomReadyGoodsItem__Generate_item1
|
|
---@field private item2 LiveRoomReadyGoodsItem__Generate_item2
|
|
---@field private item3 LiveRoomReadyGoodsItem__Generate_item3
|
|
---@field private text_name LiveRoomReadyGoodsItem__Generate_text_name
|
|
---@field private text_info1 LiveRoomReadyGoodsItem__Generate_text_info1
|
|
---@field private text_info2 LiveRoomReadyGoodsItem__Generate_text_info2
|
|
---@field private title_bid UnityEngine.GameObject
|
|
---@field private title_sell UnityEngine.GameObject
|
|
local LiveRoomReadyGoodsItemView = class("LiveRoomReadyGoodsItemView")
|
|
|
|
function LiveRoomReadyGoodsItemView:ctor()
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:SetActive(result)
|
|
self.gameObject:SetActive(result)
|
|
end
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView: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)
|
|
|
|
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__1(Root, data)
|
|
--[[
|
|
Root
|
|
--]]
|
|
|
|
self.button = Root:GetComponent(Enum.TypeInfo.Button)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView: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.switchSprite = tmp:GetComponent(Enum.TypeInfo.SwitchSprite)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__3(Root, data)
|
|
--[[
|
|
Rect/Image/img_gift
|
|
--]]
|
|
local tmp = Root:Find("Rect/Image/img_gift").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.img_gift = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__4(Root, data)
|
|
--[[
|
|
Rect/items
|
|
--]]
|
|
local tmp = Root:Find("Rect/items").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.items = tmp
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__5(Root, data)
|
|
--[[
|
|
Rect/items/item1
|
|
--]]
|
|
local tmp = Root:Find("Rect/items/item1").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.item1 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
|
|
self.item1.prefabName = "IconItem"
|
|
|
|
tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__6(Root, data)
|
|
--[[
|
|
Rect/items/item2
|
|
--]]
|
|
local tmp = Root:Find("Rect/items/item2").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.item2 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
|
|
self.item2.prefabName = "IconItem"
|
|
|
|
tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__7(Root, data)
|
|
--[[
|
|
Rect/items/item3
|
|
--]]
|
|
local tmp = Root:Find("Rect/items/item3").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.item3 = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
|
|
self.item3.prefabName = "IconItem"
|
|
|
|
tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__8(Root, data)
|
|
--[[
|
|
Rect/text_name
|
|
--]]
|
|
local tmp = Root:Find("Rect/text_name").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.text_name = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__9(Root, data)
|
|
--[[
|
|
bg1/text_info1
|
|
--]]
|
|
local tmp = Root:Find("bg1/text_info1").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.text_info1 = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__10(Root, data)
|
|
--[[
|
|
bg2/text_info2
|
|
--]]
|
|
local tmp = Root:Find("bg2/text_info2").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.text_info2 = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__11(Root, data)
|
|
--[[
|
|
title_bid
|
|
--]]
|
|
local tmp = Root:Find("title_bid").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.title_bid = tmp
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:InitGenerate__12(Root, data)
|
|
--[[
|
|
title_sell
|
|
--]]
|
|
local tmp = Root:Find("title_sell").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.title_sell = tmp
|
|
end
|
|
|
|
---@private
|
|
function LiveRoomReadyGoodsItemView:GenerateDestroy()
|
|
if tolua.getpeer(self.bg) ~= nil then
|
|
tolua.setpeer(self.bg, nil)
|
|
end
|
|
self.bg = nil
|
|
if tolua.getpeer(self.img_gift) ~= nil then
|
|
tolua.setpeer(self.img_gift, nil)
|
|
end
|
|
self.img_gift = nil
|
|
if tolua.getpeer(self.items) ~= nil then
|
|
tolua.setpeer(self.items, nil)
|
|
end
|
|
self.items = nil
|
|
if self.item1.GenerateDestroy ~= nil then
|
|
self.item1:GenerateDestroy()
|
|
end
|
|
if tolua.getpeer(self.item1) ~= nil then
|
|
tolua.setpeer(self.item1, nil)
|
|
end
|
|
self.item1 = nil
|
|
if self.item2.GenerateDestroy ~= nil then
|
|
self.item2:GenerateDestroy()
|
|
end
|
|
if tolua.getpeer(self.item2) ~= nil then
|
|
tolua.setpeer(self.item2, nil)
|
|
end
|
|
self.item2 = nil
|
|
if self.item3.GenerateDestroy ~= nil then
|
|
self.item3:GenerateDestroy()
|
|
end
|
|
if tolua.getpeer(self.item3) ~= nil then
|
|
tolua.setpeer(self.item3, nil)
|
|
end
|
|
self.item3 = nil
|
|
if tolua.getpeer(self.text_name) ~= nil then
|
|
tolua.setpeer(self.text_name, nil)
|
|
end
|
|
self.text_name = nil
|
|
if tolua.getpeer(self.text_info1) ~= nil then
|
|
tolua.setpeer(self.text_info1, nil)
|
|
end
|
|
self.text_info1 = nil
|
|
if tolua.getpeer(self.text_info2) ~= nil then
|
|
tolua.setpeer(self.text_info2, nil)
|
|
end
|
|
self.text_info2 = nil
|
|
if tolua.getpeer(self.title_bid) ~= nil then
|
|
tolua.setpeer(self.title_bid, nil)
|
|
end
|
|
self.title_bid = nil
|
|
if tolua.getpeer(self.title_sell) ~= nil then
|
|
tolua.setpeer(self.title_sell, nil)
|
|
end
|
|
self.title_sell = nil
|
|
self.transform = nil
|
|
self.gameObject = nil
|
|
self.inited = false
|
|
end
|
|
return LiveRoomReadyGoodsItemView |