瀏覽代碼

修改相册UI

leiyasi 1 年之前
父節點
當前提交
6a30685cbb

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseView.cs

@@ -146,6 +146,9 @@ namespace GFGGame
         /// <returns></returns>
         private async Task PicAdaption()
         {
+            _ui.m_mainUIShow.visible = false;
+            _ui.m_frame.visible = false;
+
             await Task.Delay(5);
             float orginHeight = _ui.m_frame.height;
             float curHeight = _ui.m_heightAdaptHelper.size.y;
@@ -160,6 +163,9 @@ namespace GFGGame
                 _ui.m_mainUIShow.y = _ui.m_frame.y +
                     ((_ui.m_frame.height * _ui.m_frame.scale.y) - (_ui.m_mainUIShow.height * _ui.m_mainUIShow.scale.y)) / 2;
             }
+            _ui.m_mainUIShow.visible = true;
+            _ui.m_frame.visible = true;
+
         }
 
         private void OnBtnRuleClick()

+ 7 - 14
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/OtherRoleInfoView.cs

@@ -60,6 +60,7 @@ namespace GFGGame
             }
 
             UpdateInfo();
+            UpdateView();
         }
 
         protected override void OnHide()
@@ -99,25 +100,17 @@ namespace GFGGame
             PoemPhotoData poemPhotoData = _roleDetailInfo.showPhotoList[index];
             UI_ListPhotoItem item = UI_ListPhotoItem.Proxy(obj);
             item.target.data = index;
-
-            if (poemPhotoData != null)
-            {
-                item.m_type.SetSelectedIndex(0);
-            }
-            else
+            if (poemPhotoData != null && poemPhotoData.Ntexture != null)
             {
                 item.m_type.SetSelectedIndex(1);
+                item.m_comPhoto.m_loaPhoto.texture = poemPhotoData == null ? null : poemPhotoData.Ntexture;
             }
-
-
-            if (RoleInfoManager.GetPosType(index) == MonthCardType.Gold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.Gold)
-            || RoleInfoManager.GetPosType(index) == MonthCardType.BlackGold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.BlackGold))
+            // 隐藏
+            else
             {
-                item.m_comPhoto.m_loaPhoto.texture = null;
-                return;
+                item.m_type.SetSelectedIndex(3);
             }
-
-            item.m_comPhoto.m_loaPhoto.texture = poemPhotoData == null ? null : poemPhotoData.Ntexture;
+            
             UI_ListPhotoItem.ProxyEnd();
         }
 

+ 18 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs

@@ -9,9 +9,16 @@ namespace GFGGame
     {
 
         private UI_PhoneBindingUI _ui;
+        private EffectUI _effectUI1;
+        private EffectUI _effectUI2;
 
         public override void Dispose()
         {
+            EffectUIPool.Recycle(_effectUI1);
+            _effectUI1 = null;
+            EffectUIPool.Recycle(_effectUI2);
+            _effectUI2 = null;
+
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -34,6 +41,8 @@ namespace GFGGame
             _ui.m_icon.url = ResPathUtil.GetIconPath(ItemCfgArray.Instance.GetCfg(ConstItemID.DIAMOND_RED));
             _ui.m_btnGetCode.onClick.Add(OnBtnGetCode);
             _ui.m_btnClose.onClick.Add(Hide);
+
+            AddEffect();
         }
 
         protected override void OnShown()
@@ -55,5 +64,14 @@ namespace GFGGame
         {
 
         }
+
+        private void AddEffect()
+        {
+            //邊框左上角特效
+            _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderLeftTop, "ui_Activity", "Com_window_L_up");
+
+            //邊框右下角特效
+            _effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_holderRightDowm, "ui_Activity", "Com_window_R_Down");
+        }
     }
 }

二進制
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes