|
ChuanwenItem = ChuanwenItem or BaseClass(BaseItem)
|
|
function ChuanwenItem:__init(parent,prefab_asset)
|
|
self.base_file = "common"
|
|
self.layout_file = "chuanwen"
|
|
self.layer_name = "Top"
|
|
self:Load()
|
|
|
|
SetLocalPositionZ(self.transform,-5000)
|
|
end
|
|
|
|
function ChuanwenItem:Load_callback()
|
|
self.gameObject:SetActive(false)
|
|
self.transform.localPosition = Vector3(0,ScreenHeight / 2 - 91, 0)
|
|
-- self.text = self:GetChild("Text")
|
|
-- self.mask = self:GetChild("mask").transform
|
|
-- self.mask.localPosition = Vector3(0,ScreenHeight / 2 - 160, 0)
|
|
-- self.transform.sizeDelta = Vector2(ScreenWidth,ScreenHeight)
|
|
-- self:AddUIZDepth()
|
|
end
|