| 
					
				 | 
			
			
				@@ -28,12 +28,20 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             packageName = UI_TravelDressupUI.PACKAGE_NAME; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui = UI_TravelDressupUI.Create(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.viewCom = _ui.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            isfullScreen = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.viewCom.Center(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.modal = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_list.itemRenderer = RenderListItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_list.onClickItem.Add(OnListItemClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnCancle.onClick.Add(Hide); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnGo.onClick.Add(OnBtnGoClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_comDress0.target.onClick.Add(OnComDressClick0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_comDress1.target.onClick.Add(OnComDressClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_comDress2.target.onClick.Add(OnComDressClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comDress0.m_c1.selectedIndex = 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void AddEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -71,10 +79,42 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_list.numItems = _travelSuitIds.Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comDress1.m_c1.selectedIndex = _ui.m_comDress1.target.data == null ? 0 : 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_ui.m_comDress1.target.data != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                UpdateComDress(_ui.m_comDress1.target, (int)_ui.m_comDress1.target.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_comDress2.m_c1.selectedIndex = _ui.m_comDress2.target.data == null ? 0 : 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_ui.m_comDress2.target.data != null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                UpdateComDress(_ui.m_comDress2.target, (int)_ui.m_comDress2.target.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void RenderListItem(int index, GObject obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComDress item = UI_ComDress.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_c1.selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComDress.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UpdateComDress(obj, _travelSuitIds[index]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private void UpdateComDress(GObject obj, int travelSuitId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            TravelSuitCfg travelSuitCfg = TravelSuitCfgArray.Instance.GetCfg(travelSuitId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(travelSuitCfg.suitId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComDress item = UI_ComDress.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_txtName.text = suitCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_loaDress.url = ResPathUtil.GetIconPath(suitCfg.res, "png"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            RarityIconController.UpdateRarityIcon(item.m_loaRarity, suitCfg.id, false, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.target.data = travelSuitCfg.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            UI_ComDress.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnListItemClick(EventContext context) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -83,15 +123,17 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 PromptController.Instance.ShowFloatTextPrompt("行囊已满"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            GObject obj = context.sender as GObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (obj.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                PromptController.Instance.ShowFloatTextPrompt("请选择游历要带的服装"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            GObject obj = context.data as GObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int travelSuitId = (int)obj.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _selectTravelSuitIds.Add(travelSuitId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_ui.m_comDress1.target.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comDress1.target.data = travelSuitId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _ui.m_comDress2.target.data = travelSuitId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UpdateView(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -103,6 +145,12 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnComDressClick(EventContext context) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             GObject obj = context.sender as GObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (obj.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                PromptController.Instance.ShowFloatTextPrompt("请选择游历要带的服装"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int travelSuitId = (int)obj.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _selectTravelSuitIds.Remove(travelSuitId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             obj.data = null; 
			 |