From c69a995072b6c3736a15009051edbf32d2b2e96b Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Fri, 8 Dec 2023 18:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E7=95=8C=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=E5=A6=96=E7=B2=BE=E5=95=86=E5=BA=97=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CumulativeSignInPage.prefab | 96 +++++++++++++++++-- .../UI/RechargeView/RechargeView.prefab | 64 ++++++------- .../Prefabs/UI/ShopView/ShopView.prefab | 91 ++++++++++++++++-- .../Operating/CumulativeSignInPage.lua | 23 +++-- 4 files changed, 216 insertions(+), 58 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/CumulativeSignInPage/CumulativeSignInPage.prefab b/Assets/ManagedResources/Prefabs/UI/CumulativeSignInPage/CumulativeSignInPage.prefab index 60ccf3eb4c..efd7d3e6d8 100644 --- a/Assets/ManagedResources/Prefabs/UI/CumulativeSignInPage/CumulativeSignInPage.prefab +++ b/Assets/ManagedResources/Prefabs/UI/CumulativeSignInPage/CumulativeSignInPage.prefab @@ -24810,7 +24810,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1862588987161868606 RectTransform: m_ObjectHideFlags: 0 @@ -24818,17 +24818,18 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2469661706645627800} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: 0, y: 0, z: 0.38268343, w: 0.92387956} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] + m_Children: + - {fileID: 3421734237657735256} m_Father: {fileID: 6128766117451419684} m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 45} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -8.5, y: 0} - m_SizeDelta: {x: 190, y: 116} + m_AnchoredPosition: {x: 0, y: -6.5} + m_SizeDelta: {x: 132.8, y: 51.3} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &3882425868587615665 CanvasRenderer: @@ -24858,7 +24859,7 @@ MonoBehaviour: m_Calls: [] m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - m_Sprite: {fileID: 21300000, guid: 199e74fa77e340c41815c9b3d3ae3d3b, type: 3} + m_Sprite: {fileID: 21300000, guid: 39c938ebd659a774f842cd232a29cd81, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 @@ -25745,6 +25746,85 @@ MonoBehaviour: m_VerticalOverflow: 0 m_LineSpacing: 1 m_Text: "\u7B2C\u4E00\u5929" +--- !u!1 &3892419943502126898 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3421734237657735256} + - component: {fileID: 7263364755225299687} + - component: {fileID: 4751877426310218833} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3421734237657735256 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3892419943502126898} + 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: 1862588987161868606} + 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: 3.1, y: 0} + m_SizeDelta: {x: 126.6, y: 30} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7263364755225299687 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3892419943502126898} + m_CullTransparentMesh: 0 +--- !u!114 &4751877426310218833 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3892419943502126898} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.7607844, b: 0.5019608, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 12800000, guid: be22547d075a3fa439f78ce38cdb4beb, type: 3} + m_FontSize: 30 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 3 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: "\u5DF2\u9886\u53D6" --- !u!1 &4037441224200676493 GameObject: m_ObjectHideFlags: 0 @@ -25784,7 +25864,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 1099, y: 161} + m_AnchoredPosition: {x: 1497, y: 161} m_SizeDelta: {x: 135, y: 164} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8195621685162958145 diff --git a/Assets/ManagedResources/Prefabs/UI/RechargeView/RechargeView.prefab b/Assets/ManagedResources/Prefabs/UI/RechargeView/RechargeView.prefab index 665131dacb..82ac5cc002 100644 --- a/Assets/ManagedResources/Prefabs/UI/RechargeView/RechargeView.prefab +++ b/Assets/ManagedResources/Prefabs/UI/RechargeView/RechargeView.prefab @@ -362,9 +362,9 @@ RectTransform: m_Father: {fileID: 7302376467385853434} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 88, y: -27.5} m_SizeDelta: {x: 0, y: 54} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2584905128268111516 @@ -948,10 +948,10 @@ RectTransform: m_Father: {fileID: 8312955512334950455} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 74.9} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 424, y: -37.45} + m_SizeDelta: {x: 56, y: 74.9} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &464356722378884689 CanvasRenderer: @@ -1739,10 +1739,10 @@ RectTransform: m_Father: {fileID: 8312955512334950455} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 84.95} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 156, y: -37.45} + m_SizeDelta: {x: 68, y: 84.95} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1088701170764945780 CanvasRenderer: @@ -2644,10 +2644,10 @@ RectTransform: m_Father: {fileID: 8312955512334950455} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 51} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 61, y: -37.45} + m_SizeDelta: {x: 122, y: 51} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4737725430561649768 CanvasRenderer: @@ -2718,9 +2718,9 @@ RectTransform: m_Father: {fileID: 8312955512334950455} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 396, y: -37.45} m_SizeDelta: {x: 0, y: 54} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &177341635030693569 @@ -2792,10 +2792,10 @@ RectTransform: m_Father: {fileID: 8312955512334950455} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 60} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 293, y: -37.45} + m_SizeDelta: {x: 206, y: 60} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2909736135784968746 CanvasRenderer: @@ -3070,7 +3070,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0.39976883, y: -47.896736} - m_SizeDelta: {x: 0, y: 74.9} + m_SizeDelta: {x: 452, y: 74.9} m_Pivot: {x: 0.50000006, y: 0.5000005} --- !u!114 &1855110437659185165 MonoBehaviour: @@ -3443,7 +3443,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 12, y: -121.89997} - m_SizeDelta: {x: 0, y: 55} + m_SizeDelta: {x: 88, y: 55} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6323395715852626071 CanvasRenderer: @@ -4168,10 +4168,10 @@ RectTransform: m_Father: {fileID: 7302376467385853434} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 55} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 44, y: -27.5} + m_SizeDelta: {x: 88, y: 55} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &3822165279810349626 CanvasRenderer: @@ -4351,7 +4351,7 @@ MonoBehaviour: m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_FontData: - m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3} + m_Font: {fileID: 12800000, guid: be22547d075a3fa439f78ce38cdb4beb, type: 3} m_FontSize: 35 m_FontStyle: 0 m_BestFit: 0 @@ -4630,9 +4630,9 @@ RectTransform: m_Father: {fileID: 7457893688675853356} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 102, y: -25} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 102, y: 0} m_SizeDelta: {x: 0, y: 40} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2512873450111914899 diff --git a/Assets/ManagedResources/Prefabs/UI/ShopView/ShopView.prefab b/Assets/ManagedResources/Prefabs/UI/ShopView/ShopView.prefab index fa2eff73bf..9b7a2fa840 100644 --- a/Assets/ManagedResources/Prefabs/UI/ShopView/ShopView.prefab +++ b/Assets/ManagedResources/Prefabs/UI/ShopView/ShopView.prefab @@ -3394,7 +3394,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &6568412163398122902 RectTransform: m_ObjectHideFlags: 0 @@ -3415,7 +3415,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: -8.4, y: 339.8} - m_SizeDelta: {x: 113.36, y: 36.62} + m_SizeDelta: {x: 224.4, y: 36.6} m_Pivot: {x: 0, y: 0.5} --- !u!222 &5803790866370294490 CanvasRenderer: @@ -3882,7 +3882,7 @@ RectTransform: 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: 80.2, y: 0.33007812} + m_AnchoredPosition: {x: 19.3, y: 0.40001} m_SizeDelta: {x: 160, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8045386314834705208 @@ -4269,7 +4269,7 @@ RectTransform: 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: 97.1, y: 0.33007812} + m_AnchoredPosition: {x: 20.4, y: 0.33007812} m_SizeDelta: {x: 160, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4442769295836979941 @@ -4313,7 +4313,7 @@ MonoBehaviour: m_HorizontalOverflow: 1 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: 6480000 + m_Text: 6480 --- !u!1 &2966244765711655929 GameObject: m_ObjectHideFlags: 0 @@ -5505,7 +5505,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &6147611533293072015 RectTransform: m_ObjectHideFlags: 0 @@ -5519,13 +5519,14 @@ RectTransform: m_Children: - {fileID: 3634600858481224999} - {fileID: 2743676562598227169} + - {fileID: 6844367956252662908} m_Father: {fileID: 7103197795649631257} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: -8.4, y: 339.8} - m_SizeDelta: {x: 113.36, y: 36.62} + m_SizeDelta: {x: 224.4, y: 36.6} m_Pivot: {x: 0, y: 0.5} --- !u!222 &4149596862472250209 CanvasRenderer: @@ -6112,7 +6113,7 @@ RectTransform: 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: 44.3, y: 3.1} + m_AnchoredPosition: {x: -16.7, y: 2.8} m_SizeDelta: {x: 156, y: 136} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2930769896908733736 @@ -6442,6 +6443,80 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6702875514458386531} m_CullTransparentMesh: 0 +--- !u!1 &6951557752397024573 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6844367956252662908} + - component: {fileID: 1115127927171304198} + - component: {fileID: 3767438193697143194} + m_Layer: 5 + m_Name: itemIcon + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &6844367956252662908 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6951557752397024573} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -100} + m_LocalScale: {x: 0.3, y: 0.3, z: 0.5} + m_Children: [] + m_Father: {fileID: 6147611533293072015} + m_RootOrder: 2 + 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: -14.9, y: 2.8} + m_SizeDelta: {x: 156, y: 136} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &1115127927171304198 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6951557752397024573} + m_CullTransparentMesh: 0 +--- !u!114 &3767438193697143194 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6951557752397024573} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: de6cd38183296a14c8a07417420b1763, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 --- !u!1 &7242527415321435171 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/CumulativeSignInPage.lua b/Assets/ManagedResources/~Lua/Modules/Operating/CumulativeSignInPage.lua index 92a3e4b650..cc24d65983 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/CumulativeSignInPage.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/CumulativeSignInPage.lua @@ -130,6 +130,7 @@ function CumulativeSignInPage:CreateSignList() self.signInList[i].go.gameObject.name = "signInReward_"..i self.signInList[i].receiveBtn = Util.GetGameObject(self.signInList[i].go, "receiveBtn") --领取按钮 self.signInList[i].receivedIma = Util.GetGameObject(self.signInList[i].go, "received"):GetComponent("Image") --领取图片 + self.signInList[i].receivedTxt = Util.GetGameObject(self.signInList[i].go, "received/Text"):GetComponent("Text") self.signInList[i].redPoint = Util.GetGameObject(self.signInList[i].go, "redPoint") --红点 Util.GetGameObject(self.signInList[i].go, "Text"):GetComponent("Text").text=string.format(Language[12324],i) --第几天 self.signInRewardList[i] = SubUIManager.Open(SubUIConfig.ItemView, Util.GetGameObject(self.signInList[i].go, "rewardPos").transform) @@ -169,8 +170,8 @@ function CumulativeSignInPage:RefreshSignSingle(i,signInfo,signInPre) --默认已过去的天数都赋值已领取图片 signInPre.receivedIma.gameObject:SetActive(true) signInPre.receiveBtn.gameObject:SetActive(true) - signInPre.receivedIma.sprite=self.spLoader:LoadSprite(receiveImage[1]) - self:SetIcon(1,signInPre.receivedIma.gameObject) + --signInPre.receivedIma.sprite=self.spLoader:LoadSprite(receiveImage[1]) + self:SetIcon(1,signInPre.receivedTxt) signInPre.redPoint.gameObject:SetActive(false) elseif i == SignData.days then --当已第一次签到 设置图片 @@ -183,8 +184,8 @@ function CumulativeSignInPage:RefreshSignSingle(i,signInfo,signInPre) signInPre.receivedIma.gameObject:SetActive(false) else signInPre.receivedIma.gameObject:SetActive(true) - signInPre.receivedIma.sprite=self.spLoader:LoadSprite(receiveImage[1]) - self:SetIcon(1,signInPre.receivedIma.gameObject) + --signInPre.receivedIma.sprite=self.spLoader:LoadSprite(receiveImage[1]) + self:SetIcon(1,signInPre.receivedTxt) end signInPre.redPoint:SetActive(self:CheckRedPoint())--红点显隐 signInPre.receiveBtn:SetActive(self:CheckIsReceive())--该奖励按钮是否可点击 @@ -245,13 +246,15 @@ end --设置图片转换 index 1已领取 2再领一次 function CumulativeSignInPage:SetIcon(index,root) if index==1 then - root:GetComponent("Image"):SetNativeSize() - root.transform.localEulerAngles = Vector3.New(0, 0, 0) - root.transform.sizeDelta = Vector2.New(190, 116) + --root:GetComponent("Image"):SetNativeSize() + --root.transform.localEulerAngles = Vector3.New(0, 0, 0) + --root.transform.sizeDelta = Vector2.New(190, 116) + root.text="已领取" elseif index==2 then - root:GetComponent("Image"):SetNativeSize() - root.transform.localEulerAngles = Vector3.New(0, 0, 6.2) - root.transform.sizeDelta = Vector2.New(185.57, 99.26) + root.text="再领一次" + --root:GetComponent("Image"):SetNativeSize() + --root.transform.localEulerAngles = Vector3.New(0, 0, 6.2) + --root.transform.sizeDelta = Vector2.New(185.57, 99.26) end end