|  | @@ -19,6 +19,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          private const int maxHeight = 1030;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          private EffectUI _effectUI1;
 | 
	
		
			
				|  |  | +        private int counTime = 0;  //定时器计数
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          public override void Dispose()
 | 
	
		
			
				|  |  |          {
 | 
	
	
		
			
				|  | @@ -36,13 +37,13 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              base.OnInit();
 | 
	
		
			
				|  |  |              _ui = UI_RewardUI.Create();
 | 
	
		
			
				|  |  |              this.viewCom = _ui.target;
 | 
	
		
			
				|  |  | -            this.viewCom.Center();
 | 
	
		
			
				|  |  | -            this.modal = true;
 | 
	
		
			
				|  |  | +            //this.viewCom.Center();
 | 
	
		
			
				|  |  | +            //this.modal = true;
 | 
	
		
			
				|  |  |              //viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
 | 
	
		
			
				|  |  | +            isfullScreen = true;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            _ui.m_listReward.itemRenderer = RenderListRewardItem;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            this.viewCom.onClick.Add(this.Hide);
 | 
	
		
			
				|  |  | +            _ui.m_comList.m_listReward.itemRenderer = RenderListRewardItem;
 | 
	
		
			
				|  |  | +            _ui.m_bg.onClick.Add(this.Hide);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          protected override void OnShown()
 | 
	
		
			
				|  |  |          {
 | 
	
	
		
			
				|  | @@ -71,27 +72,38 @@ namespace GFGGame
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              _listItemDatas.AddRange(suitPart);
 | 
	
		
			
				|  |  | +            //_ui.m_listReward.SetVirtual();  //有虚拟列表的时候,没有办法居中显示列表
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            //_ui.m_listReward.SetVirtual();
 | 
	
		
			
				|  |  | -            _ui.m_listReward.numItems = _listItemDatas.Count;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            _ui.m_listReward.ResizeToFit();
 | 
	
		
			
				|  |  | -            if (_ui.m_listReward.height > maxHeight)
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -                _ui.m_listReward.height = maxHeight;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            Timers.inst.Add(1f, 1, OnTimerUpdate, 1);
 | 
	
		
			
				|  |  | +            _ui.m_downTipsText.visible = false;
 | 
	
		
			
				|  |  | +            _ui.m_comList.m_listReward.numItems = 0;
 | 
	
		
			
				|  |  | +            counTime = 0;
 | 
	
		
			
				|  |  | +            Timers.inst.Add(0.1f, 3, OnTimerUpdate, 1);
 | 
	
		
			
				|  |  |              //邊框左上角特效
 | 
	
		
			
				|  |  |              //_effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderTitle, "ui_hd", "GXHD");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          private void OnTimerUpdate(object param)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | +            counTime += 1;
 | 
	
		
			
				|  |  | +            if (counTime == 1)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderTitle, "ui_hd", "GXHD");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            else if (counTime == 2)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.m_comList.m_listReward.numItems = _listItemDatas.Count;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            Timers.inst.Remove(OnTimerUpdate);
 | 
	
		
			
				|  |  | -            _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderTitle, "ui_hd", "GXHD");
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                _ui.m_comList.m_listReward.ResizeToFit();
 | 
	
		
			
				|  |  | +                if (_ui.m_comList.m_listReward.height > maxHeight)
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    _ui.m_comList.m_listReward.height = maxHeight;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            else if (counTime == 3)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.m_downTipsText.visible = true;
 | 
	
		
			
				|  |  | +                Timers.inst.Remove(OnTimerUpdate);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          protected override void OnHide()
 | 
	
	
		
			
				|  | @@ -99,6 +111,8 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              EffectUIPool.Recycle(_effectUI1);
 | 
	
		
			
				|  |  |              _effectUI1 = null;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +            Timers.inst.Remove(OnTimerUpdate);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              for (int i = 0; i < _effects.Count; i++)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  if (_effects[i] != null)
 | 
	
	
		
			
				|  | @@ -147,7 +161,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              item.m_comRewardItem.m_imgOnceBonus.visible = _listItemDatas[index].isOnceBonus;
 | 
	
		
			
				|  |  |              //特效("ui_ck", "ui_ck_zl");
 | 
	
		
			
				|  |  | -            int childIndex = _ui.m_listReward.ItemIndexToChildIndex(index);
 | 
	
		
			
				|  |  | +            int childIndex = _ui.m_comList.m_listReward.ItemIndexToChildIndex(index);
 | 
	
		
			
				|  |  |              if (_effects.Count <= childIndex)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holderReware, "ui_hd", "GXHD_WuPin");
 |