ro-table/Asstes/Resources/Script/FrameWork/GUI/cell/AuctionSignUpSelectCell.txt
2025-06-04 05:02:57 +08:00

32 lines
715 B
Plaintext

AuctionSignUpSelectCell = class("AuctionSignUpSelectCell", ItemCell)
function AuctionSignUpSelectCell:Init()
local obj = self:LoadPreferb("cell/ItemCell", self.gameObject)
obj.transform.localPosition = Vector3.zero
AuctionSignUpSelectCell.super.Init(self)
self:FindObjs()
self:AddEvts()
end
function AuctionSignUpSelectCell:FindObjs()
self.choose = self:FindGO("Choose")
end
function AuctionSignUpSelectCell:AddEvts()
self:AddCellClickEvent()
end
function AuctionSignUpSelectCell:SetData(data)
self.gameObject:SetActive(data ~= nil)
if data then
AuctionSignUpSelectCell.super.SetData(self, data)
end
end
function AuctionSignUpSelectCell:SetChoose(isChoose)
self.choose:SetActive(isChoose)
end