zhaoyang 3 年之前
父節點
當前提交
8c86f2aba4

+ 4 - 5
GameClient/Assets/Game/HotUpdate/Data/CustomSuitDataManager.cs

@@ -6,10 +6,9 @@ namespace GFGGame
 {
     public class CustomSuitDataManager
     {
-        public static int currentIndex
-        {
-            get { return StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_CUSTOME_SUIT_INDEX); }
-        }
+        private static int _currentIndex;
+        public static int currentIndex { get; set; }
+
 
         private static Dictionary<int, CustomSuitData> _dataDic = new Dictionary<int, CustomSuitData>();
         public static void SaveSuit(int index, List<int> arrayList, int bgID = 0, int suitId = 0, bool pic = false)
@@ -64,7 +63,7 @@ namespace GFGGame
         {
             if (currentIndex != index)
             {
-                StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_CUSTOME_SUIT_INDEX, index).Coroutine();
+                currentIndex = index;
             }
             CustomSuitSProxy.UpdateCustomSuit(index, EquipDataCache.cacher.equipDatas, EquipDataCache.cacher.bgId, EquipDataCache.cacher.suitId, EquipDataCache.cacher.picStatus).Coroutine();
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/RoleDataManager.cs

@@ -13,7 +13,7 @@ namespace GFGGame
         public static string roleName;
         public static int rechargeTotal;
         public static int rechargeTotalMon;
-        public static string slogan;
+        public static string slogan = "";
 
         public static int power
         {

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/FriendSProxy.cs

@@ -134,6 +134,7 @@ namespace GFGGame
                             FriendDataManager.Instance.AddApplyData(friendInfo);
                         }
                     }
+                    FriendDataManager.Instance.Count = response.TakeGiftCount;
                     return true;
                 }
             }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/ItemProxy.cs

@@ -25,6 +25,7 @@ namespace GFGGame
                     ItemDataManager.InitServerData(response.Items);
                     //自定义套装
                     CustomSuitDataManager.InitServerData(response.CustomSuits);
+                    CustomSuitDataManager.currentIndex=response.CustomSuitPos;
                     //!!!必须放在最后,标记数据初始化完成
                     GameGlobal.DataInited = true;
                     return true;

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/Friend/FriendAddView.cs

@@ -92,19 +92,19 @@ namespace GFGGame
             {
                 item.m_btnAdd.onClick.Add(OnBtnAddClick);
             }
-            item.target.data = roleInfoData.roleId;
+            item.m_btnAdd.data = roleInfoData.roleId;
             UI_ListSearchItem.ProxyEnd();
         }
 
         //添加好友
         private async void OnBtnAddClick(EventContext context)
         {
-            GObject obj = context.data as GObject;
-            int roleId = (int)obj.data;
+            GObject obj = context.sender as GObject;
+            long roleId = (long)obj.data;
             bool result = await FriendSProxy.ReqApplyForFriend(roleId);
             if (result)
             {
-                UI_ListSearchItem item = UI_ListSearchItem.Proxy();
+                UI_ListSearchItem item = UI_ListSearchItem.Proxy(obj.parent);
                 item.m_c1.selectedIndex = 1;
                 UI_ListSearchItem.ProxyEnd();
             }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/RoleInfoView.cs

@@ -55,7 +55,7 @@ namespace GFGGame
             }
             _ui.m_btnSound.selected = SoundManager.Instance.isOn;
             _ui.m_btnMusic.selected = MusicManager.Instance.isOn;
-
+            _ui.m_txtSlogan.text = RoleDataManager.slogan;
         }
 
         protected override void OnHide()