【限时折扣】主界面按钮资源修改添加特效
parent
008b3671c4
commit
81f76cc4dc
Binary file not shown.
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 34 KiB |
|
@ -848,6 +848,14 @@ function this:OnSortingOrderChange()
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
if activityTabs then
|
||||
for _, tab in pairs(activityTabs) do
|
||||
if tab.effect then
|
||||
Util.SetParticleSortLayer(tab.effect, self.sortingOrder + 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function this:OnOpen()
|
||||
|
@ -899,6 +907,16 @@ function this.CreatActivity()
|
|||
activityTabs[k].timeImg = Util.GetGameObject(activityTabs[k].go, "Image_1")
|
||||
activityTabs[k].timeText = Util.GetGameObject(activityTabs[k].timeImg, "time"):GetComponent("Text")
|
||||
activityTabs[k].redpot = Util.GetGameObject(activityTabs[k].go, "redPoint")
|
||||
-- 限时折扣显示特效
|
||||
if v.Id == 13 then
|
||||
local effect = poolManager:LoadAsset("UI_Effect_jinkuang_Yuan", PoolManager.AssetType.GameObject)
|
||||
effect.transform:SetParent(activityTabs[k].go.transform)
|
||||
effect.transform.localScale = Vector3.New(1, 1, 1)
|
||||
effect.transform.localPosition = Vector3.New(0, 0, 0)
|
||||
effect:SetActive(true)
|
||||
Util.SetParticleSortLayer(effect, this.sortingOrder + 1)
|
||||
activityTabs[k].effect = effect
|
||||
end
|
||||
end
|
||||
activityTabs[k].go.gameObject.name = "tab"..v.Id
|
||||
activityTabs[k].go.gameObject:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue