| 
					
				 | 
			
			
				@@ -40,6 +40,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnMax.target.onClick.Add(OnBtnMaxClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnConfirm.onClick.Add(OnBtnConfirmClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnCancle.onClick.Add(OnBtnCancleClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_listItem.itemRenderer = ListItemRenderer; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void AddEventListener() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,7 +80,8 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_loaRarity.visible = itemCfg.itemType == ConstItemType.DRESS_UP; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtExchangeCount.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_comCost.target.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_listItem.numItems = itemCfg.itemsArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_listItem.visible = itemCfg.itemType == ConstItemType.GIFT_BAG && itemCfg.subType != ConstItemSubType.GIFT_BAG_AUTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void UpdateUseView() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -97,7 +99,17 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtShow.text = "选择使用数量"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtTips.text = string.Format("是否使用{0}个{1}?", _count, itemCfg.name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void ListItemRenderer(int index, GObject obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_itemId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ItemData itemData = ItemUtil.createItemData(itemCfg.itemsArr[index]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (obj.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                obj.data = new ItemView(obj as GComponent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (obj.data as ItemView).SetData(itemData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (obj.data as ItemView).ChangeTxtCountStyle(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnBtnAddClick() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _count++; 
			 |