| 
					
				 | 
			
			
				@@ -4,6 +4,7 @@ using System.Linq; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using ET; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using FairyGUI; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using UI.ClothingDecompose; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using UI.CommonGame; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,7 +34,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.Dispose(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnInit() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnInit(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -46,6 +46,8 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnBack.onClick.Add(OnClickBtnBack); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_bg.url = ResPathUtil.GetBgImgPath("quanping_moren_bg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listTab.onClickItem.Add((EventContext context) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 int index = _ui.m_listTab.GetChildIndex(context.data as GObject); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -87,7 +89,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnHide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _valueBarController.OnHide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Timers.inst.Remove(CheckGuide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnClickBtnRarity(int rarity) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,27 +97,31 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _clothingDatas = DecomposeDataManager.Instance.GetDecomposeDataByRarity(rarity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_list.visible = _clothingDatas != null && _clothingDatas.Count > 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_txtNone.visible = _clothingDatas == null || _clothingDatas.Count == 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (_clothingDatas == null) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_list.numItems = _clothingDatas.Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_btnSelect.selected = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_listReward.visible = _clothingDatas != null && _clothingDatas.Count > 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             CancleAll(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateConsume(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private void ListItemRander(int index, GObject obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void ListItemRander(int index, GObject obj)  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            UI_ListItem item = UI_ListItem.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComItem item = UI_ComItem.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_clothingDatas[index]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             RarityIconController.UpdateRarityIcon(item.m_loaRarity, itemCfg.id, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string ext = ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_ViewType.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_ItemType.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg.res, ext); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_txtName.text = itemCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_imgSelect.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             long itemHasCount = DecomposeDataManager.Instance.ItemCanDecomposeCount(itemCfg.id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_txtHasCount.text = itemHasCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             long itemCount = _decomposeData.ContainsKey(_clothingDatas[index]) ? _decomposeData[_clothingDatas[index]] : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_txtCount.text = itemCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_imgSelect.visible = itemCount > 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_txtDecomHasCount.text ="/" + itemHasCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_txtDecomCount.text = itemCount.ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (itemCount > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_TouchType.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_TouchType.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_btnMinus.visible = itemCount > 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (item.m_btnMinus.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,14 +129,14 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_btnMinus.data = index; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (item.m_loaItem.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (item.m_loaBg.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.m_loaItem.onClick.Add(OnListItemClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_loaBg.onClick.Add(OnListItemClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_loaItem.data = index; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_loaBg.data = index; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.target.data = itemCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            UI_ListItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnListItemClick(EventContext context) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,16 +158,15 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //     return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            UI_ListItem item = UI_ListItem.Proxy(com); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComItem item = UI_ComItem.Proxy(com); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_btnMinus.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_imgSelect.visible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_TouchType.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _decomposeData[itemId] = _decomposeData[itemId] + 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _decomposeCount += 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_txtCount.text = _decomposeData[itemId].ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            UI_ListItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_txtDecomCount.text = _decomposeData[itemId].ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateConsume(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnClickBtnMinus(EventContext context) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -170,23 +174,21 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int index = (int)((context.sender as GButton).data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int childIndex = _ui.m_list.ItemIndexToChildIndex(index); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GComponent com = _ui.m_list.GetChildAt(childIndex).asCom; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            UI_ListItem item = UI_ListItem.Proxy(com); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComItem item = UI_ComItem.Proxy(com); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int itemId = (com.data as ItemCfg).id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _decomposeData[itemId] = _decomposeData[itemId] - 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _decomposeCount -= 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_txtCount.text = _decomposeData[itemId].ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_txtDecomCount.text = _decomposeData[itemId].ToString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (_decomposeData[itemId] == 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 _decomposeData.Remove(itemId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.m_imgSelect.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_TouchType.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 item.m_btnMinus.visible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            UI_ListItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateConsume(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnClickBtnSelect() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -203,6 +205,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void SelectAll() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_clothingDatas == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             long lastCount = DecomposeDataManager.MaxCount - _decomposeCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (int i = 0; i < _clothingDatas.Count; i++) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -224,17 +229,17 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_list.numItems = _clothingDatas.Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void CancleAll() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _decomposeData.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_list.numItems = _clothingDatas.Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _decomposeCount = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _decomposeData.Clear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_clothingDatas != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_list.numItems = _clothingDatas.Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void UpdateConsume() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             DecomposeCfg cfg = DecomposeCfgArray.Instance.GetCfg(_curRarity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.consumeId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listReward.numItems = _decomposeCount > 0 ? cfg.itemsArr.Length : 0; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -300,7 +305,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 OnClickBtnRarity(_curRarity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.FU_ZHUANG_FEN_JIE, 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnClickBtnRule() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -335,7 +339,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GuideController.TryGuide(_ui.m_btnDecompose, ConstGuideId.CLOTHING_DECOMPOSE, 5, "分解获得的材料可用于新服饰合成。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GuideController.TryCompleteGuide(ConstGuideId.CLOTHING_DECOMPOSE, 5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GuideController.TryGuide(_ui.m_btnBack, ConstGuideId.CLOTHING_SYNTHETIC, 1, "回到绣坊界面。"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |