商店添加动画

dev_chengFeng
jiaoyangna 2020-09-04 16:54:58 +08:00
parent f6686cb1ae
commit 5a861862d5
5 changed files with 236 additions and 36 deletions

View File

@ -2680,7 +2680,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0.000030261404, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0.5}
--- !u!114 &5698167213016214844

View File

@ -239,13 +239,13 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1080514213629064}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 224197820049709340}
- {fileID: 224952098795657010}
m_Father: {fileID: 224496811525665260}
m_Father: {fileID: 7103197795649631257}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -315,12 +315,12 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1110423512699538}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3094083180744582287}
m_Father: {fileID: 224496811525665260}
m_Father: {fileID: 7103197795649631257}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -702,16 +702,16 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1240627858442754}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224496811525665260}
m_Father: {fileID: 7103197795649631257}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.99, y: 58}
m_AnchoredPosition: {x: 0.98999786, y: 58}
m_SizeDelta: {x: 224, y: 229}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &222471227823239058
@ -873,13 +873,14 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 224172487803996794}
- component: {fileID: 3407424664126843235}
m_Layer: 5
m_Name: shopItem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &224172487803996794
RectTransform:
m_ObjectHideFlags: 0
@ -891,17 +892,70 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3094864558833778807}
- {fileID: 7868471710346716691}
- {fileID: 224758322593848220}
- {fileID: 4300363014719737227}
m_Father: {fileID: 224014376810088690}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 237}
m_AnchoredPosition: {x: -2133, y: 252}
m_SizeDelta: {x: 216, y: 410}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &3407424664126843235
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1277509184846116}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fcf53bbee510dca40b2f81e3c0d426c6, type: 3}
m_Name:
m_EditorClassIdentifier:
tweenSequeue:
- initV3: {x: 0, y: -20, z: 0}
initFloat: 0
isInit: 1
changeV3: {x: 0, y: 0, z: 0}
changeFloat: 0
duration: 0.3
delay: 0
curveType: 11
changeType: 0
sequeueType: 1
loop: 0
loopType: 0
targetObj: {fileID: 4300363014719737227}
- initV3: {x: 0, y: 0, z: 0}
initFloat: 0
isInit: 1
changeV3: {x: 1.15, y: 1.15, z: 1.15}
changeFloat: 0
duration: 0.3
delay: 0
curveType: 0
changeType: 4
sequeueType: 1
loop: 0
loopType: 0
targetObj: {fileID: 4300363014719737227}
- initV3: {x: 1.15, y: 1.15, z: 1.15}
initFloat: 0
isInit: 0
changeV3: {x: 1, y: 1, z: 1}
changeFloat: 0
duration: 0.2
delay: 0
curveType: 0
changeType: 4
sequeueType: 0
loop: 0
loopType: 0
targetObj: {fileID: 4300363014719737227}
isPlayAudio: 1
isHaveCloseBtn: 0
isPlayOnOpen: 0
--- !u!1 &1306535499097282
GameObject:
m_ObjectHideFlags: 0
@ -1098,17 +1152,17 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1356305043388824}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3095000723107093779}
m_Father: {fileID: 224496811525665260}
m_Father: {fileID: 7103197795649631257}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.00000065565, y: -99.69507}
m_AnchoredPosition: {x: 0, y: -99.69507}
m_SizeDelta: {x: 132, y: 44}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &222986977202393806
@ -1819,13 +1873,14 @@ GameObject:
- component: {fileID: 222189988231697376}
- component: {fileID: 114000446925773324}
- component: {fileID: 114324413233415862}
- component: {fileID: 2788680312689078415}
m_Layer: 5
m_Name: item
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &224496811525665260
RectTransform:
m_ObjectHideFlags: 0
@ -1837,17 +1892,13 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 224778630658779020}
- {fileID: 224715751737728956}
- {fileID: 224192950655719764}
- {fileID: 224686678241914128}
- {fileID: 3184820659047775435}
- {fileID: 7103197795649631257}
m_Father: {fileID: 224014376810088690}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 113.59894, y: -335.30005}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -2133, y: 232}
m_SizeDelta: {x: 216, y: 434}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &222189988231697376
@ -1929,6 +1980,61 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &2788680312689078415
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1531013549419426}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fcf53bbee510dca40b2f81e3c0d426c6, type: 3}
m_Name:
m_EditorClassIdentifier:
tweenSequeue:
- initV3: {x: 0, y: -20, z: 0}
initFloat: 0
isInit: 1
changeV3: {x: 0, y: 0, z: 0}
changeFloat: 0
duration: 0.3
delay: 0
curveType: 11
changeType: 0
sequeueType: 1
loop: 0
loopType: 0
targetObj: {fileID: 7103197795649631257}
- initV3: {x: 0, y: 0, z: 0}
initFloat: 0
isInit: 1
changeV3: {x: 1.15, y: 1.15, z: 1.15}
changeFloat: 0
duration: 0.3
delay: 0
curveType: 0
changeType: 4
sequeueType: 1
loop: 0
loopType: 0
targetObj: {fileID: 7103197795649631257}
- initV3: {x: 1.15, y: 1.15, z: 1.15}
initFloat: 0
isInit: 0
changeV3: {x: 1, y: 1, z: 1}
changeFloat: 0
duration: 0.2
delay: 0
curveType: 0
changeType: 4
sequeueType: 0
loop: 0
loopType: 0
targetObj: {fileID: 7103197795649631257}
isPlayAudio: 1
isHaveCloseBtn: 0
isPlayOnOpen: 1
--- !u!1 &1581757897287800
GameObject:
m_ObjectHideFlags: 0
@ -1999,7 +2105,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3094801677810174199}
m_Father: {fileID: 224172487803996794}
m_Father: {fileID: 4300363014719737227}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -2862,6 +2968,44 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
--- !u!1 &224584889166571225
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4300363014719737227}
m_Layer: 5
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4300363014719737227
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 224584889166571225}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3094864558833778807}
- {fileID: 7868471710346716691}
- {fileID: 224758322593848220}
m_Father: {fileID: 224172487803996794}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 216, y: 410}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1332992662678900222
GameObject:
m_ObjectHideFlags: 0
@ -2891,7 +3035,7 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224496811525665260}
m_Father: {fileID: 7103197795649631257}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -3939,7 +4083,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3020615136999118653}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
@ -3949,7 +4093,7 @@ RectTransform:
- {fileID: 224153050928386494}
- {fileID: 224349495243028422}
- {fileID: 224180545808046118}
m_Father: {fileID: 224172487803996794}
m_Father: {fileID: 4300363014719737227}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@ -4545,6 +4689,46 @@ MonoBehaviour:
m_LineSpacing: 1
m_Text: "\u8DDD\u79BB\u6B21\u6570\u5237\u65B0\uFF1A"
LanguageIndex: 11740
--- !u!1 &4432752917476461362
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7103197795649631257}
m_Layer: 5
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7103197795649631257
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4432752917476461362}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 224778630658779020}
- {fileID: 224715751737728956}
- {fileID: 224192950655719764}
- {fileID: 224686678241914128}
- {fileID: 3184820659047775435}
m_Father: {fileID: 224496811525665260}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 216, y: 434}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &4696052057031592065
GameObject:
m_ObjectHideFlags: 0
@ -4731,7 +4915,7 @@ RectTransform:
m_Children:
- {fileID: 4712811155992804574}
- {fileID: 6386663473694090723}
m_Father: {fileID: 224172487803996794}
m_Father: {fileID: 4300363014719737227}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}

View File

@ -190,6 +190,7 @@ function this.InitRedPointAllRelate()
RPData:SetParent(RedPointType.TimeLimited, RedPointType.DynamicActivity)
RPData:SetParent(RedPointType.QianKunBox, RedPointType.DynamicActivity)
RPData:SetParent(RedPointType.PoZhenZhuXianTask, RedPointType.DynamicActivity)
RPData:SetParent(RedPointType.PoZhenZhuXianRecharge, RedPointType.DynamicActivity)
-- 好友红点
RPData:SetParent(RedPointType.Friend_GetAllReward, RedPointType.Friend_Reward)

View File

@ -103,10 +103,10 @@ function RoleEquipPanel:InitComponent()
Util.GetGameObject(self.transform, "scroll").transform,
this.equipPre,
this.ScrollBar,
Vector2.New(-v2.x * 2, -v2.y * 2),
Vector2.New(v2.width, v2.height),
1,
5,
Vector2.New(50, 15)
Vector2.New(40, 15)
)
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1

View File

@ -127,7 +127,7 @@ function this:RemoveListener()
end
--界面打开时调用(用于子类重写)
function this:OnOpen(...)
end
--界面关闭时调用(用于子类重写)
function this:OnClose()
@ -136,6 +136,7 @@ function this:OnClose()
self._TimeCounter = nil
end
-- 物品节点回收
for _, item in pairs(_GoodsItemList) do
Util.SetColor(item.gameObject, Color.New(1,1,1,1))
@ -384,11 +385,16 @@ function this:RefreshItemList(isTop)
local itemData = itemlist[index]
self:RechargeShopItemAdapter(shopItem, itemData)
end)
--
if isTop then
self.RechargeScrollView:SetIndex(1)
end
self.RechargeScrollView:ForeachItemGO(function (index, go)
Timer.New(function ()
go.gameObject:SetActive(true)
PlayUIAnim(go.gameObject)
end, 0.03*(index-1)):Start()
end)
else
-- 重置列表
self.RechargeScrollView.gameObject:SetActive(false)
@ -401,6 +407,13 @@ function this:RefreshItemList(isTop)
if isTop then
self.ScrollView:SetIndex(1)
end
self.ScrollView:ForeachItemGO(function (index, go)
Timer.New(function ()
go.gameObject:SetActive(true)
PlayUIAnim(go.gameObject)
end, 0.03*(index-1)):Start()
end)
end
end
@ -555,7 +568,9 @@ end
---=====================================对外接口=============================----
-- 设置要显示的商店类型
function this:ShowShop(shopType,_sortingOrder)
--
self.ScrollView:ForeachItemGO(function (index, go)
go.gameObject:SetActive(false)
end)
self.titleBg:GetComponent("Canvas").sortingOrder = _sortingOrder + 1
this.sortingOrder = _sortingOrder
-- 红点销毁