zhaoyang 3 лет назад
Родитель
Сommit
3b99f5d34f

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs

@@ -107,6 +107,7 @@ namespace GFGGame
                 {
                     UI_LuckyBoxBonusItem itemUI = UI_LuckyBoxBonusItem.Proxy(itemObject);
                     UpdateItem(itemUI, itemData, i);
+                    UI_LuckyBoxBonusItem.ProxyEnd();
                     Timers.inst.Add(0.3f * i, 1, (object param) =>
                     {
                         itemObject.visible = true;
@@ -138,6 +139,7 @@ namespace GFGGame
             _ui.m_itemOne.visible = true;
             UI_LuckyBoxBonusItem itemUI = UI_LuckyBoxBonusItem.Proxy(_ui.m_itemOne);
             UpdateItem(itemUI, itemData, 0);
+            UI_LuckyBoxBonusItem.ProxyEnd();
             _ui.m_loaBg.touchable = true;
         }
 

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxPreShowView.cs

@@ -65,6 +65,7 @@ namespace GFGGame
             listItem.m_list.numItems = luckyBoxBonusData.itemList.Count;
             listItem.m_list.ResizeToFit();
             listItem.target.height = listItem.m_list.y + listItem.m_list.height;
+            UI_CompLuckyBoxBonusListItem.ProxyEnd();
         }
     }
 }

+ 8 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs

@@ -120,6 +120,7 @@ namespace GFGGame
 
                 index++;
                 star = _ui.target.GetChild(string.Format("comStar{0}_{1}_{2}", _ui.m_ctrlBuyType.selectedIndex, _ui.m_ctrlRewardsType.selectedIndex, index));
+                UI_ComStar.ProxyEnd();
             }
 
         }
@@ -178,6 +179,7 @@ namespace GFGGame
                     UI_ComStar comStar = UI_ComStar.Proxy(comStars[i]);
                     comStar.target.GetChildAt(2).asCom.visible = true;
                     comStar.target.GetChildAt(1).asCom.visible = false;
+                    UI_ComStar.ProxyEnd();
                     // comStar.m_c1.selectedIndex = 1;
                     curComStar = comStars[i];
                     lastPos = Vector2.right;
@@ -210,7 +212,7 @@ namespace GFGGame
             UI_ComStar comStar = UI_ComStar.Proxy(curComStar);
             comStar.m_imgLine.rotation += angle;
             comStar.m_imgLine.width = Vector2.Distance(targetPos, (Vector2)curComStar.data);
-
+            UI_ComStar.ProxyEnd();
 
         }
 
@@ -220,6 +222,7 @@ namespace GFGGame
 
             UI_ComStar comStar = UI_ComStar.Proxy(clickComStars[clickComStars.Count - 1]);
             comStar.m_imgLine.visible = false;
+            UI_ComStar.ProxyEnd();
 
 
             if (showGuide && clickComStars.Count < 2)
@@ -260,6 +263,8 @@ namespace GFGGame
                 notClickComStar.m_imgLine.visible = false;
                 notClickComStar.target.GetChildAt(3).asCom.visible = true;
                 notClickComStar.target.GetChildAt(1).asCom.visible = false;
+                UI_ComStar.ProxyEnd();
+
             }
 
         }
@@ -270,6 +275,8 @@ namespace GFGGame
             {
                 UI_ComStar comStar = UI_ComStar.Proxy(clickComStars[i]);
                 comStar.target.GetChildAt(4).asCom.visible = true;
+                UI_ComStar.ProxyEnd();
+
             }
             Timers.inst.Add(0.5f, 1, SetEndEffect);
         }

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -109,6 +109,7 @@ namespace GFGGame
 
             item.m_loaBg.url = ResPathUtil.GetBgImgPath(cfg.resArr[0]);
             item.target.data = id;
+            UI_ComListBgItem.ProxyEnd();
         }
         private void CheckTime(object param = null)
         {
@@ -125,6 +126,7 @@ namespace GFGGame
             TimeUtil.FormattingTime(curTime, endTime, out int num, out string str);
             UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(0)).m_txtTime.text = string.Format("{0}", num);
             UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(0)).m_txtTimeStr.text = string.Format("{0}", str);
+            UI_ComListBgItem.ProxyEnd();
         }
         private void OnListBgScroll()
         {
@@ -184,6 +186,7 @@ namespace GFGGame
                 string resPath1 = ResPathUtil.GetViewEffectPath("ui_cj", "ui_cj_sl");
                 SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_btnBuyOne.m_holder, resPath1, out _gameObject1, out _wrapper1);
                 SceneController.AddObjectToView(_gameObject2, _wrapper2, _ui.m_btnBuyTen.m_holder, resPath1, out _gameObject2, out _wrapper2);
+                UI_ComListBgItem.ProxyEnd();
 
             }
         }
@@ -235,7 +238,7 @@ namespace GFGGame
             bgIndex++;
             if (bgIndex >= resArr.Length) bgIndex = 0;
             item.m_loaBg.url = ResPathUtil.GetBgImgPath(resArr[bgIndex]);
-
+            UI_ComListBgItem.ProxyEnd();
         }
         protected override void OnHide()
         {