瀏覽代碼

抽奖,卡牌选择补充提交

zhangyuqian 1 年之前
父節點
當前提交
3449d133a4
共有 23 個文件被更改,包括 62 次插入19 次删除
  1. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ListCardFightItem.cs
  2. 49 19
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs
  3. 2 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxVideoView.cs
  4. 8 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs
  5. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png
  6. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0.png
  7. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png
  8. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png
  9. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_10!a.png
  10. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_10.png
  11. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_11!a.png
  12. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_11.png
  13. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_2.png
  14. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png
  15. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png
  16. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png
  17. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_6!a.png
  18. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_6.png
  19. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_7!a.png
  20. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_7.png
  21. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_8!a.png
  22. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_8.png
  23. 二進制
      GameClient/Assets/ResIn/UI/Main/Main_fui.bytes

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ListCardFightItem.cs

@@ -18,6 +18,7 @@ namespace UI.Main
         public UI_ComDodgeFightStar m_dodgeStar1;
         public UI_ComDodgeFightStar m_dodgeStar2;
         public UI_ComDodgeFightStar m_dodgeStar3;
+        public GImage m_useIcon;
         public GGraph m_effect;
         public Transition m_t0;
         public const string URL = "ui://mfvz4q8kr1a99f";
@@ -78,6 +79,7 @@ namespace UI.Main
             m_dodgeStar1 = (UI_ComDodgeFightStar)UI_ComDodgeFightStar.Create(comp.GetChild("dodgeStar1"));
             m_dodgeStar2 = (UI_ComDodgeFightStar)UI_ComDodgeFightStar.Create(comp.GetChild("dodgeStar2"));
             m_dodgeStar3 = (UI_ComDodgeFightStar)UI_ComDodgeFightStar.Create(comp.GetChild("dodgeStar3"));
+            m_useIcon = (GImage)comp.GetChild("useIcon");
             m_effect = (GGraph)comp.GetChild("effect");
             m_t0 = comp.GetTransition("t0");
         }
@@ -99,6 +101,7 @@ namespace UI.Main
             m_dodgeStar2 = null;
             m_dodgeStar3.Dispose();
             m_dodgeStar3 = null;
+            m_useIcon = null;
             m_effect = null;
             m_t0 = null;
             if(disposeTarget && target != null)

+ 49 - 19
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs

@@ -164,6 +164,18 @@ namespace GFGGame
                     UpdateItem(_ui.target.GetChild("item" + i).asCom, i, 10);
                 }
             }
+
+            //修改,因为加了抽奖动画,在进入后就直接筛选掉所有不是新的
+            for (int i = 0; i < _rewardList.Count; i++)
+            {
+                UI_LuckyBoxBonusShowItem item = UI_LuckyBoxBonusShowItem.Proxy(_itemObjList[i]);
+                if (!item.m_comIcon.m_imgNew.visible)
+                {
+                    _recordTurnIndex.Add(i);
+                    _recordOpenIndex.Add(i);
+                }
+                UI_LuckyBoxBonusShowItem.ProxyEnd();
+            }
             Timers.inst.Add(0.5f, 1, UpDataTimeTouchLoaBg);
         }
 
@@ -274,7 +286,7 @@ namespace GFGGame
             item.m_t0.Play();
             if (item.target.data == null)
             {
-                //item.target.onClick.Add(ShowItemTips);
+                item.target.onClick.Add(ShowItemTips);
             }
             item.target.data = index;
 
@@ -296,7 +308,8 @@ namespace GFGGame
             GObject obj = context.sender as GObject;
             int index = (int)obj.data;
             _chooseIndex = index;
-            HandClickItem(index);
+            GoodsItemTipsController.ShowItemTips(_itemIdList[index]);
+            //HandClickItem(index);
         }
 
         private void HandClickItem(int index)
@@ -327,7 +340,9 @@ namespace GFGGame
                 _ui.m_BtnPass.visible = false;
 
             if (!_recordOpenIndex.Contains(index))
+            {
                 TurnItem(index);
+            }
             else
             {
                 if (!_recordTurnIndex.Contains(index))
@@ -350,24 +365,23 @@ namespace GFGGame
             }
             _touchLoaBg = false;
             Timers.inst.Add(0.5f, 1, UpDataTimeTouchLoaBg);
-
             if (_recordOpenIndex.Count >= _rewardList.Count)
             {
                 _chooseIndex = -1;
                 this.Hide();
             }
-            //else
-            //{
-            //    for (int index = 0; index < _rewardList.Count; index++)
-            //    {
-            //        if (!_recordOpenIndex.Contains(index))
-            //        {
-            //            _chooseIndex = index;
-            //            HandClickItem(index);
-            //            break;
-            //        }
-            //    }
-            //}
+            else
+            {
+                for (int index = 0; index < _rewardList.Count; index++)
+                {
+                    if (!_recordOpenIndex.Contains(index))
+                    {
+                        _chooseIndex = index;
+                        HandClickItem(index);
+                        break;
+                    }
+                }
+            }
         }
 
         private void OnClickBtnPass()
@@ -547,7 +561,13 @@ namespace GFGGame
 
                 UI_LuckyBoxBonusShowItem item = UI_LuckyBoxBonusShowItem.Proxy(_itemObjList[index]);
                 if (!item.m_comIcon.m_imgNew.visible)
-                    _recordTurnIndex.Add(index);
+                {
+                    if(!_recordTurnIndex.Contains(index))
+                    {
+                        _recordTurnIndex.Add(index);
+                    }
+                }
+                    
 
                 //先翻开牌面 
                 //item.m_comIcon.m_FlipOpenType.selectedIndex = 0;
@@ -557,8 +577,15 @@ namespace GFGGame
                 ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_itemIdList[index]);
 
                 // 点击特效
-                _effectUIDic.Add("CK_Cirle_DJ" + index, EffectUIPool.CreateEffectUI(item.m_comIcon.m_click_eff, "ui_LuckyBox", "CK_Cirle_DJ"));
-                // 翻开特效
+                if (!_effectUIDic.ContainsKey("CK_Cirle_DJ" + index))
+                {
+                    _effectUIDic.Add("CK_Cirle_DJ" + index, EffectUIPool.CreateEffectUI(item.m_comIcon.m_click_eff, "ui_LuckyBox", "CK_Cirle_DJ"));
+                }
+                else
+                {
+                    _effectUIDic["CK_Cirle_DJ" + index] = EffectUIPool.CreateEffectUI(item.m_comIcon.m_click_eff, "ui_LuckyBox", "CK_Cirle_DJ");
+                }
+                    // 翻开特效
                 switch (itemCfg.rarity)
                 {
                     case 1:
@@ -585,7 +612,10 @@ namespace GFGGame
 
 
                 //item.m_comIcon.m_t0.Play();
-                _recordOpenIndex.Add(index);
+                if(!_recordOpenIndex.Contains(index))
+                {
+                    _recordOpenIndex.Add(index);
+                }
                 UI_LuckyBoxBonusShowItem.ProxyEnd();
             }
         }

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

@@ -23,6 +23,7 @@ namespace GFGGame
         public void Show(List<ItemData> _reward = null)
         {
             MusicManager.Instance.Stop();
+            FairyGUI.GRoot.inst.touchable = false;
             string path = ResPathUtil.GetUUIPrefabPath("UILuckyBox");
             handle = YooAssets.LoadAssetSync<GameObject>(path);
             _ui = handle.InstantiateSync(UGUIManager.Instance.desktop.transform);
@@ -126,6 +127,7 @@ namespace GFGGame
             videoHandle = null;
             GameObject.Destroy(_ui);
             _ui = null;
+            FairyGUI.GRoot.inst.touchable = true;
             ViewManager.Show<LuckyBoxBonusShowView>(_rewardList);
         }
     }

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs

@@ -232,6 +232,14 @@ namespace GFGGame
                 //EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_comEff.m_holder, "ui_fight_new", "kp_Select");
                 // _effects.Add(_effectUI);
             }
+            if(index == 0)
+            {
+                item.m_useIcon.visible = true;
+            }
+            else
+            {
+                item.m_useIcon.visible = false;
+            }
 
             item.target.asCom.RemoveChild(_comSelected);
             if (_selectedIndex == index) { 

二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_10!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_10.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_11!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_11.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_2.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_6!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_6.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_7!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_7.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_8!a.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_8.png


二進制
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes