From 9e0d1f04babb59944d1eebd6856be01fe511e087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A3=AE2003?= <2384017988@qq.com> Date: Sat, 11 Jul 2026 14:19:06 +0800 Subject: [PATCH] 1 --- .../UI/DefaultPanel/BossBoardCarstGongGao.prefab | 12 ++++++------ Assets/MyGame/aa/UI/Game/GameMainPanel_FishBase.cs | 11 ++++++++++- Assets/MyGame/aa/UI/Home/Sub/BackPack.prefab | 14 +++++++------- .../aa/UI/Home/Sub/ZhanLing/LevelGiftitem.cs | 8 ++++++-- 4 files changed, 29 insertions(+), 16 deletions(-) diff --git a/Assets/MyGame/aa/UI/DefaultPanel/BossBoardCarstGongGao.prefab b/Assets/MyGame/aa/UI/DefaultPanel/BossBoardCarstGongGao.prefab index f8b91b406..119d0aa1d 100644 --- a/Assets/MyGame/aa/UI/DefaultPanel/BossBoardCarstGongGao.prefab +++ b/Assets/MyGame/aa/UI/DefaultPanel/BossBoardCarstGongGao.prefab @@ -261,8 +261,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -50} - m_SizeDelta: {x: 965, y: 68} + m_AnchoredPosition: {x: 3.3382, y: -35} + m_SizeDelta: {x: 739.2659, y: 68} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &670689317359163242 CanvasRenderer: @@ -285,7 +285,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 0.09803922} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -352,7 +352,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -106} - m_SizeDelta: {x: 750, y: 100} + m_SizeDelta: {x: 965, y: 68} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4157826458431261933 CanvasRenderer: @@ -369,13 +369,13 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2654078965480511721} - m_Enabled: 0 + m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.4811321, g: 0.4811321, b: 0.4811321, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 diff --git a/Assets/MyGame/aa/UI/Game/GameMainPanel_FishBase.cs b/Assets/MyGame/aa/UI/Game/GameMainPanel_FishBase.cs index a49333cb1..15348d662 100644 --- a/Assets/MyGame/aa/UI/Game/GameMainPanel_FishBase.cs +++ b/Assets/MyGame/aa/UI/Game/GameMainPanel_FishBase.cs @@ -263,7 +263,8 @@ public class GameMainPanel_FishBase : GameMainPanel_Base } private void RefreshGGKCount() { - var props = GameManager.Instance.user?.props; + var user = GameManager.Instance.user; + var props = user?.props; int count = 0; if (props != null) { @@ -278,6 +279,14 @@ public class GameMainPanel_FishBase : GameMainPanel_Base } if (tmp_GGKCount != null) tmp_GGKCount.text = count.ToString(); + + // 同步更新游戏内金币显示(刮刮卡领奖、邮件领取等都会触发) + if (currSitData != null && user?.assets != null) + { + currSitData.goldNum = user.assets.gold; + if (currSitData.tMP_GoldNum != null) + currSitData.tMP_GoldNum.text = user.assets.gold.ToString(); + } } protected override void OnHide() { diff --git a/Assets/MyGame/aa/UI/Home/Sub/BackPack.prefab b/Assets/MyGame/aa/UI/Home/Sub/BackPack.prefab index dc3bdd508..70e8888a2 100644 --- a/Assets/MyGame/aa/UI/Home/Sub/BackPack.prefab +++ b/Assets/MyGame/aa/UI/Home/Sub/BackPack.prefab @@ -492,10 +492,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6434155105217974499} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 171, y: 0} + m_SizeDelta: {x: 342, y: 40} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &3081095988798373702 CanvasRenderer: @@ -3962,8 +3962,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.5} m_AnchorMax: {x: 0, y: 0.5} - m_AnchoredPosition: {x: 85.50006, y: -1.0000229} - m_SizeDelta: {x: 149, y: 20} + m_AnchoredPosition: {x: 171, y: 0} + m_SizeDelta: {x: 342, y: 40} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5857656829540272755 CanvasRenderer: @@ -4057,7 +4057,7 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 0, y: -2.17, z: 0, w: 0} + m_margin: {x: 13.465027, y: -2.17, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 diff --git a/Assets/MyGame/aa/UI/Home/Sub/ZhanLing/LevelGiftitem.cs b/Assets/MyGame/aa/UI/Home/Sub/ZhanLing/LevelGiftitem.cs index 8dd6e75c9..c157000da 100644 --- a/Assets/MyGame/aa/UI/Home/Sub/ZhanLing/LevelGiftitem.cs +++ b/Assets/MyGame/aa/UI/Home/Sub/ZhanLing/LevelGiftitem.cs @@ -16,16 +16,20 @@ public class LevelGiftitem : MonoBehaviour { public Image img_MianFei; public Image img_MianFeiDuiGou; + public Image img_MianFeiBackForword; + public TextMeshProUGUI tmp_MianFeiPropCount; public Image img_JingYing; public Image img_JingYingDuiGou; + public Image img_JingYingBackForword; public Image img_JingYingLocal; public TextMeshProUGUI tmp_JingYingPropCount; public Image img_ZhiZun; public Image img_ZhiZunDuiGou; + public Image img_ZhiZunBackForword; public Image img_ZhiZunLocal; public TextMeshProUGUI tmp_ZhiZunPropCount; @@ -71,13 +75,13 @@ public class LevelGiftitem : MonoBehaviour if (giftType == 1 && sprite_Gold != null) { target.sprite = sprite_Gold; - target.SetNativeSize(); + //target.SetNativeSize(); } else if (giftType == 2 && sprite_Diamond != null) { target.sprite = sprite_Diamond; - target.SetNativeSize(); + //target.SetNativeSize(); } else if (!string.IsNullOrEmpty(url))