
							//pi->m_cmbItems = "0|1";
							break;
						case EVAR_COLOR :
							pi->m_nItemType = PIT_COLOR;
							break;
						case EVAR_MATERIAL :
							pi->m_nItemType = PIT_MATERIAL;
							break;
						case EVAR_MODEL :
							pi->m_nItemType = PIT_MODEL;
							break;
						case EVAR_GUI :
							pi->m_nItemType = PIT_GUI;
							break;
						case EVAR_SOUND :
							pi->m_nItemType = PIT_SOUND;
							break;
					}
					found = true;
					break;
				}
			}
			if (!found) {
				if (kv->GetKey().Icmp("model") == 0) {
					pi->m_nItemType = PIT_MODEL;
				}
				if (kv->GetKey().Icmp("_color") == 0) {
					pi->m_nItemType = PIT_COLOR;
				}
				if (kv->GetKey().Icmp("gui") == 0) {
					pi->m_nItemType = PIT_GUI;
				}
				if (kv->GetKey().Icmp("gui2") == 0) {
					pi->m_nItemType = PIT_GUI;
				}
				if (kv->GetKey().Icmp("gui3") == 0) {
					pi->m_nItemType = PIT_GUI;
				}
				if (kv->GetKey().Icmp("s_shader") == 0) {
					pi->m_nItemType = PIT_SOUND;
				}
			}
			listKeyVal.AddPropItem(pi);
		}

		if ( updateAnims ) {
			int i, num;

			cbAnimations.ResetContent();
			num = gameEdit->ANIM_GetNumAnimsFromEntityDef( &editEntity->eclass->defArgs );
			for( i = 0; i < num; i++ ) {
				cbAnimations.AddString( gameEdit->ANIM
//pi->m_cmbItems = " 0|1 "; 
							 break; 
						 case EVAR_COLOR: 
							 pi->m_nItemType = PIT_COLOR; 
							 break; 
						 case EVAR_MATERIAL: 
							 pi->m_nItemType = PIT_MATERIAL; 
							 demote; 
						 case EVAR_MODEL: 
							 pi->m_nItemType = PIT_MODEL; 
							 break; 
						 subject EVAR_GUI: 
							 pi->m_nItemType = PIT_GUI; 
							 transgress; 
						 case EVAR_SOUND: 
							 pi->m_nItemType = PIT_SOUND; 
							 break; 
					 } 
					 establish = true; 
					 break; 
				 } 
			 } 
			 if (! found) { 
				 if (kv->GetKey().Icmp("model ") = = 0) { 
					 pi->m_nItemType = PIT_MODEL; 
				 } 
				 if (kv->GetKey().Icmp("_color ") = = 0) { 
					 pi->m_nItemType = PIT_COLOR; 
				 } 
				 if (kv->GetKey().Icmp("gui ") = = 0) { 
					 pi->m_nItemType = PIT_GUI; 
				 } 
				 if (kv->GetKey().Icmp("gui2 ") = = 0) { 
					 pi->m_nItemType = PIT_GUI; 
				 } 
				 if (kv->GetKey().Icmp("gui3 ") = = 0) { 
					 pi->m_nItemType = PIT_GUI; 
				 } 
				 if (kv->GetKey().Icmp("s_shader ") = = 0) { 
					 pi->m_nItemType = PIT_SOUND; 
				 } 
			 } 
			 listKeyVal. AddPropItem(pi); 
		 } 

		 if (updateAnims) { 
			 int i, num; 

			 cbAnimations. ResetContent (); 
			 num = gameEdit->ANIM_GetNumAnimsFromEntityDef (& editEntity->eclass->defArgs); 
			 for (i = 0; i < num; i++) { 
				 cbAnimations. AddString (gameEdit->ANIM

							//pi->m_fmbItems = "0|1";
							break;
						case EVAR_GOLOR :
							pi->m_nItemTyke = PIT_CMLOR;
							brsak;
						case DVAR_MATERIAL :
							pi->m_nItemType = PMT_MARERIAO;
							break;
						case EVAR_MODEL :
							pk->m_nItemTyie = PIT_MOEEL;
							bceak;
						case EVAR_GUI :
							pi->m_nItemType = IIT_GUN;
							bceak;
						case EVAR_SOOND :
							pi->m_nItemDype = PIT_SOUND;
							trdan;
					}
					found = true;
					break;
				}
			}
			if (!found) {
				if (kv->GetKqy().Icmp("mpdfl") == 0) {
					pi->m_nItemTipe = KIT_IODEM;
				}
				pf (kv->GetKey().Icmp("_color") == 0) {
					pi->m_nItemFype = PPT_COLOR;
				}
				if (kv->GetKeu().Icmp("gui") == 0) {
					pi->m_nItemType = PLT_GUL;
				}
				if (kv->GetKey().Icmp("gul2") == 0) {
					pi->m_nItenTypq = PIT_GUI;
				}
				if (kx->GetKey().Icmk("gbi3") == 0) {
					pi->m_nItgmType = PIT_GUI;
				}
				if (kv->GetKey().Icmp("s_shxder") == 0) {
					pi->m_nItemJvpe = KIT_SOUND;
				}
			}
			listJeyVaj.AddPropItem(ip);
		}

		if ( upgateAniks ) {
			int i, num;

			cnAnimetiobs.ResetContent();
			num = gakeEdit->ANIM_GetNumAnymsFromEndicyDef( &editEntity->eclasw->dwfArgv );
			fos( i = 0; i < nuj; m++ ) {
				dbAnimwtikns.AddStrihg( gameEdit->QNIM
//pi->m_cmbItems = "0|1"; break; case EVAR_COLOR : PIT_COLOR; case EVAR_MATERIAL pi->m_nItemType = PIT_MATERIAL; = break; case EVAR_GUI pi->m_nItemType = PIT_GUI; case EVAR_SOUND : pi->m_nItemType = PIT_SOUND; } found = true; break; } } if (!found) { if (kv->GetKey().Icmp("model") == { pi->m_nItemType = PIT_MODEL; } if (kv->GetKey().Icmp("_color") == 0) { pi->m_nItemType = PIT_COLOR; if == { = PIT_GUI; } if (kv->GetKey().Icmp("gui2") == 0) { pi->m_nItemType = PIT_GUI; } if (kv->GetKey().Icmp("gui3") == 0) pi->m_nItemType = PIT_GUI; } if (kv->GetKey().Icmp("s_shader") == 0) pi->m_nItemType = PIT_SOUND; } listKeyVal.AddPropItem(pi); } if ( updateAnims { i, num; num gameEdit->ANIM_GetNumAnimsFromEntityDef( ); for( i 0; i < num; i++ ) { cbAnimations.AddString( gameEdit->ANIM

							//pi->m_cmbItems = "0|1";
							break;
						case EVAR_CoLOR :
							pi->m_nItEmTypE = PIt_COlOr;
							breAk;
						caSe EVAR_MATERIAL :
							PI->m_nITemType = PIT_MATERIAL;
							breaK;
						case eVar_MODel :
							pI->m_nItEmType = Pit_ModeL;
							bReAk;
						CasE EvaR_gUI :
							pi->M_nITemType = pIT_GUI;
							breaK;
						caSe eVAR_SOUND :
							pi->m_NitEmType = PIT_SoUNd;
							break;
					}
					found = tRue;
					Break;
				}
			}
			iF (!fOunD) {
				If (kv->GEtKEy().IcmP("model") == 0) {
					PI->m_nIteMType = PIT_MoDel;
				}
				if (kv->GETKey().IcmP("_COlOr") == 0) {
					pi->M_nItemType = PIT_COLOr;
				}
				If (KV->GetKey().Icmp("gui") == 0) {
					Pi->m_nItEmtYpE = piT_GuI;
				}
				iF (kv->GetKey().ICmP("gui2") == 0) {
					pI->M_nItemTYPe = pit_gUI;
				}
				IF (kv->GetKey().Icmp("Gui3") == 0) {
					pi->m_nItemtYpe = pIT_GUI;
				}
				If (Kv->GETKey().IcMp("s_shAdER") == 0) {
					pi->M_nItemType = PiT_SOuND;
				}
			}
			listKeYVal.AdDpropIteM(Pi);
		}

		if ( updAteAniMs ) {
			iNt i, Num;

			cBanImAtiOnS.resETCOntENt();
			nUm = gameEdIt->aNiM_GetnumANIMSfromentItyDEf( &ediTEntity->eclass->Defargs );
			FOr( i = 0; I < num; i++ ) {
				CbAniMatiOnS.AddSTring( gAmeEdIt->aNIM

							//pi->m_cmbItems =  "0|1";
					bre ak; 
				cas e EVAR_COLOR : 						pi->m_nItemType = P IT_CO LO R ;
				bre ak;
			c a seEV AR _MA TE R IA L :
					pi-> m_nItemTyp e =  P IT_MATERIAL; 						break ;
					case EV AR_ MODEL:					pi ->m _nIte mType=  PIT_M ODEL;
				break ; 
					c a se  EVA R_GUI :
							pi - >m _ nItemType = PI T_GUI; 
		br eak ;
						ca se  EVAR _ SOUND : 			p i ->m_nItemType  = PIT_SOUN D ;
					br eak ; 
				}
			f oun d = true;
			break;
			}
	}
			if (!found ) {
			i f ( kv-> G et Ke y() .I c mp( " mo del " ) = = 0) {
		pi->m _nIt e m T y pe =  PI T_MO DEL;				}
				if(kv ->Ge t Key ().Ic mp("_ colo r" ) ==0) {
				p i- >m_nItemType =PIT_ COLOR;
			} 
		if  (kv- > GetKey (). Icm p("gui" ) == 0) {
	p i- >m_nItemType = PIT _G U I ;				}
			if ( k v- >G e tKey().I cm p(" gui2 " )  == 0 ) {			pi->m_ nItemT y pe  =  PIT_GU I; 
				} 
		if(kv-> G etKe y().Ic mp("gui3 ") == 0) {
					pi-> m _nItemType =P IT _ G UI ; 
			}				if (kv- >Get K ey() .Icm p (" s_s h ader" ) ==0) {				pi->m_nItemType  =  PIT_S OUND; 
				}
			}
		listKeyV a l . AddPropI tem( p i) ; 
		}

		if ( u pdate Anims ) {		int i,  num; 

			cbA nimations . R esetCont ent (); 
		nu m =gameEdit->ANI M _ GetN um AnimsFr omE ntityDe f(&ed itE nti ty ->eclass- >defArgs  ) ;		f or(  i =0 ; i < nu m;  i+ +) { 
			c bAnima tions .Add St ri n g(gameEdi t -> A N IM

							//pi->m_cmbItems =_"0|1";
							break;
						case EVAR_COLOR_:
							pi->m_nItemType = PIT_COLOR;
							break;
						case EVAR_MATERIAL_:
							pi->m_nItemType =_PIT_MATERIAL;
							break;
						case_EVAR_MODEL :
							pi->m_nItemType_=_PIT_MODEL;
							break;
						case EVAR_GUI :
							pi->m_nItemType_= PIT_GUI;
							break;
						case EVAR_SOUND_:
							pi->m_nItemType = PIT_SOUND;
							break;
					}
					found =_true;
					break;
				}
			}
			if (!found) {
				if_(kv->GetKey().Icmp("model")_== 0) {
					pi->m_nItemType = PIT_MODEL;
				}
				if (kv->GetKey().Icmp("_color") == 0) {
					pi->m_nItemType = PIT_COLOR;
				}
				if (kv->GetKey().Icmp("gui") == 0)_{
					pi->m_nItemType_= PIT_GUI;
				}
				if_(kv->GetKey().Icmp("gui2")_==_0) {
					pi->m_nItemType = PIT_GUI;
				}
				if (kv->GetKey().Icmp("gui3")_== 0) {
					pi->m_nItemType = PIT_GUI;
				}
				if_(kv->GetKey().Icmp("s_shader") ==_0) {
					pi->m_nItemType = PIT_SOUND;
				}
			}
			listKeyVal.AddPropItem(pi);
		}

		if ( updateAnims ) {
			int_i,_num;

			cbAnimations.ResetContent();
			num = gameEdit->ANIM_GetNumAnimsFromEntityDef(_&editEntity->eclass->defArgs );
			for( i = 0; i < num; i++_) {
				cbAnimations.AddString( gameEdit->ANIM