源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
630 B

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