public static void Show_Item_Top(CUIComponent com, CFR frData, CUIFormScript uiFrom)
		{
			Image componetInChild = Utility.GetComponetInChild<Image>(com.gameObject, "Image");
			IntimacyRelationViewUT.SetRelationBGImg(componetInChild, frData.state);
			IntimacyRelationViewUT.SetButtonParam(com.m_widgets[19], frData);
			if (IntimacyRelationViewUT.IsRelaState(frData.state))
			{
				com.m_widgets[19].CustomSetActive(true);
			}
			else
			{
				com.m_widgets[19].CustomSetActive(false);
			}
			COMDT_FRIEND_INFO friendInfo = frData.friendInfo;
			if (friendInfo == null)
			{
				return;
			}
			CUIHttpImageScript component = com.m_widgets[1].GetComponent<CUIHttpImageScript>();
			UT.SetHttpImage(component, friendInfo.szHeadUrl);
			Image componetInChild2 = Utility.GetComponetInChild<Image>(component.gameObject, "NobeImag");
			if (componetInChild2 && uiFrom != null)
			{
				MonoSingleton<NobeSys>.GetInstance().SetHeadIconBk(componetInChild2, (int)friendInfo.stGameVip.dwHeadIconId);
				MonoSingleton<NobeSys>.GetInstance().SetHeadIconBkEffect(componetInChild2, (int)friendInfo.stGameVip.dwHeadIconId, uiFrom, 1f, true);
			}
			GameObject gameObject = com.m_widgets[2];
			if (gameObject)
			{
				MonoSingleton<NobeSys>.GetInstance().SetNobeIcon(gameObject.GetComponent<Image>(), (int)friendInfo.stGameVip.dwCurLevel, false, false, friendInfo.ullUserPrivacyBits);
			}
			Text component2 = com.m_widgets[3].GetComponent<Text>();
			string text = UT.Bytes2String(friendInfo.szUserName);
			if (component2 != null)
			{
				component2.set_text(text);
			}
			GameObject genderImage = com.m_widgets[4];
			FriendShower.ShowGender(genderImage, (COM_SNSGENDER)friendInfo.bGender);
		}
        public static void Show_Item_Top(CUIComponent com, CFR frData)
        {
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[19], frData);
            if (frData.state == 1 || frData.state == 2)
            {
                com.m_widgets[19].CustomSetActive(true);
            }
            else
            {
                com.m_widgets[19].CustomSetActive(false);
            }
            COMDT_FRIEND_INFO friendInfo = frData.friendInfo;

            if (friendInfo == null)
            {
                return;
            }
            CUIHttpImageScript component = com.m_widgets[1].GetComponent <CUIHttpImageScript>();

            UT.SetHttpImage(component, friendInfo.szHeadUrl);
            GameObject gameObject = com.m_widgets[2];

            if (gameObject)
            {
                MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(gameObject.GetComponent <Image>(), (int)friendInfo.stGameVip.dwCurLevel, false);
            }
            Text   component2 = com.m_widgets[3].GetComponent <Text>();
            string text       = UT.Bytes2String(friendInfo.szUserName);

            if (component2 != null)
            {
                component2.text = text;
            }
            GameObject genderImage = com.m_widgets[4];

            FriendShower.ShowGender(genderImage, friendInfo.bGender);
        }
        public static void Show_Item_Middle(CUIComponent com, CFR frData)
        {
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[16], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[14], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[12], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[7], frData);
            int cDDays = frData.CDDays;

            if (cDDays != -1)
            {
                com.m_widgets[5].CustomSetActive(true);
                com.m_widgets[6].CustomSetActive(false);
                IntimacyRelationViewUT.Set_Middle_Text(com, true, string.Format(UT.FRData().IntimRela_CD_CountDown, cDDays));
                return;
            }
            if (frData.state == 24 && cDDays == -1)
            {
                com.m_widgets[5].CustomSetActive(true);
                com.m_widgets[6].CustomSetActive(true);
                com.m_widgets[10].CustomSetActive(false);
                IntimacyRelationViewUT.Set_Drop_Text(com, !frData.bInShowChoiseRelaList, frData);
                IntimacyRelationViewUT.Set_Drop_List(com, frData.bInShowChoiseRelaList);
                IntimacyRelationViewUT.Set_Middle_Text(com, false, string.Empty);
            }
            if (frData.state == 1 || frData.state == 2)
            {
                com.m_widgets[5].CustomSetActive(true);
                com.m_widgets[6].CustomSetActive(false);
                IntimacyRelationViewUT.Set_Middle_Text(com, true, IntimacyRelationViewUT.GetMiddleTextStr(frData.state));
            }
            if (frData.state == 20 || frData.state == 22)
            {
                if (frData.bReciveOthersRequest)
                {
                    com.m_widgets[5].CustomSetActive(true);
                    com.m_widgets[6].CustomSetActive(false);
                    string text = string.Empty;
                    if (frData.state == 20)
                    {
                        text = UT.FRData().IntimRela_Type_Gay;
                    }
                    if (frData.state == 22)
                    {
                        text = UT.FRData().IntimRela_Type_Lover;
                    }
                    string txt = string.Format(UT.FRData().IntimRela_Tips_ReceiveOtherReqRela, UT.Bytes2String(frData.friendInfo.szUserName), text);
                    IntimacyRelationViewUT.Set_Middle_Text(com, true, txt);
                }
                else
                {
                    com.m_widgets[5].CustomSetActive(true);
                    com.m_widgets[6].CustomSetActive(false);
                    IntimacyRelationViewUT.Set_Middle_Text(com, true, UT.FRData().IntimRela_Tips_Wait4TargetRspReqRela);
                }
            }
            if (frData.state == 21 || frData.state == 23)
            {
                if (frData.bReciveOthersRequest)
                {
                    com.m_widgets[5].CustomSetActive(true);
                    com.m_widgets[6].CustomSetActive(false);
                    string text2 = string.Empty;
                    if (frData.state == 21)
                    {
                        text2 = UT.FRData().IntimRela_Type_Gay;
                    }
                    if (frData.state == 23)
                    {
                        text2 = UT.FRData().IntimRela_Type_Lover;
                    }
                    IntimacyRelationViewUT.Set_Middle_Text(com, true, string.Format(UT.FRData().IntimRela_Tips_ReceiveOtherDelRela, UT.Bytes2String(frData.friendInfo.szUserName), text2));
                }
                else
                {
                    com.m_widgets[5].CustomSetActive(true);
                    com.m_widgets[6].CustomSetActive(false);
                    IntimacyRelationViewUT.Set_Middle_Text(com, true, UT.FRData().IntimRela_Tips_Wait4TargetRspDelRela);
                }
            }
        }
        public static void Show_Item_Bottom(CUIComponent com, CFR frData)
        {
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[12], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[14], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[16], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[20], frData);
            IntimacyRelationViewUT.SetButtonParam(com.m_widgets[22], frData);
            int cDDays = frData.CDDays;

            if (cDDays != -1)
            {
                com.m_widgets[11].CustomSetActive(true);
                IntimacyRelationViewUT.Set_2_Button(com, false, false, string.Empty, string.Empty);
                IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_ReSelect_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_DoSelect_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_Bottom_Text(com, true, UT.FRData().IntimRela_Tips_RelaHasDel);
                return;
            }
            if (frData.state == 24 && cDDays == -1)
            {
                com.m_widgets[11].CustomSetActive(true);
                string intimRela_Tips_OK     = UT.FRData().IntimRela_Tips_OK;
                string intimRela_Tips_Cancle = UT.FRData().IntimRela_Tips_Cancle;
                IntimacyRelationViewUT.Set_DoSelect_Button(com, frData.choiseRelation != -1, intimRela_Tips_OK);
                IntimacyRelationViewUT.Set_2_Button(com, false, false, intimRela_Tips_Cancle, intimRela_Tips_OK);
                IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_ReSelect_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_Bottom_Text(com, false, string.Empty);
            }
            if (frData.state == 1 || frData.state == 2)
            {
                com.m_widgets[11].CustomSetActive(true);
                IntimacyRelationViewUT.Set_2_Button(com, false, false, string.Empty, string.Empty);
                IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_ReSelect_Button(com, false, string.Empty);
                IntimacyRelationViewUT.Set_DoSelect_Button(com, false, string.Empty);
                COM_INTIMACY_STATE firstChoiseState = Singleton <CFriendContoller> .get_instance().model.FRData.GetFirstChoiseState();

                if (firstChoiseState == frData.state)
                {
                    IntimacyRelationViewUT.Set_Bottom_Text(com, true, UT.FRData().IntimRela_AleadyFristChoise);
                }
                else
                {
                    IntimacyRelationViewUT.Set_Bottom_Text(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_1_Button(com, true, UT.FRData().IntimRela_DoFristChoise);
                }
            }
            if (frData.state == 20 || frData.state == 22)
            {
                if (frData.bReciveOthersRequest)
                {
                    com.m_widgets[11].CustomSetActive(true);
                    IntimacyRelationViewUT.Set_2_Button(com, true, true, UT.FRData().IntimRela_Tips_Cancle, UT.FRData().IntimRela_Tips_OK);
                    IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_Bottom_Text(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_ReSelect_Button(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_DoSelect_Button(com, false, string.Empty);
                }
                else
                {
                    com.m_widgets[11].CustomSetActive(true);
                    IntimacyRelationViewUT.Set_2_Button(com, false, false, string.Empty, string.Empty);
                    IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_Bottom_Text(com, false, UT.FRData().IntimRela_Tips_Wait4TargetRspReqRela);
                    IntimacyRelationViewUT.Set_ReSelect_Button(com, true, UT.FRData().IntimRela_ReselectRelation);
                    IntimacyRelationViewUT.Set_DoSelect_Button(com, false, string.Empty);
                }
            }
            if (frData.state == 21 || frData.state == 23)
            {
                if (frData.bReciveOthersRequest)
                {
                    com.m_widgets[11].CustomSetActive(true);
                    IntimacyRelationViewUT.Set_2_Button(com, true, true, UT.FRData().IntimRela_Tips_Cancle, UT.FRData().IntimRela_Tips_OK);
                    IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_Bottom_Text(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_ReSelect_Button(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_DoSelect_Button(com, false, string.Empty);
                }
                else
                {
                    com.m_widgets[11].CustomSetActive(true);
                    IntimacyRelationViewUT.Set_2_Button(com, false, false, string.Empty, string.Empty);
                    IntimacyRelationViewUT.Set_1_Button(com, false, string.Empty);
                    IntimacyRelationViewUT.Set_Bottom_Text(com, false, UT.FRData().IntimRela_Tips_Wait4TargetRspDelRela);
                    IntimacyRelationViewUT.Set_ReSelect_Button(com, true, UT.FRData().IntimRela_ReDelRelation);
                    IntimacyRelationViewUT.Set_DoSelect_Button(com, false, string.Empty);
                }
            }
        }
		public static void Show_Item_Middle(CUIComponent com, CFR frData, CUIFormScript uiFrom)
		{
			IntimacyRelationViewUT.SetButtonParam(com.m_widgets[16], frData);
			IntimacyRelationViewUT.SetButtonParam(com.m_widgets[14], frData);
			IntimacyRelationViewUT.SetButtonParam(com.m_widgets[12], frData);
			IntimacyRelationViewUT.SetButtonParam(com.m_widgets[7], frData);
			int cDDays = frData.CDDays;
			GameObject obj = Utility.FindChild(com.gameObject, "mengban");
			obj.CustomSetActive(cDDays != -1);
			if (cDDays != -1)
			{
				com.m_widgets[5].CustomSetActive(true);
				com.m_widgets[6].CustomSetActive(false);
				IntimacyRelationViewUT.Set_Middle_Text(com, true, string.Format(UT.FRData().IntimRela_CD_CountDown, cDDays), false);
				return;
			}
			if (frData.state == COM_INTIMACY_STATE.COM_INTIMACY_STATE_VALUE_FULL && cDDays == -1)
			{
				com.m_widgets[5].CustomSetActive(true);
				com.m_widgets[6].CustomSetActive(true);
				com.m_widgets[10].CustomSetActive(false);
				IntimacyRelationViewUT.Set_Drop_Text(com, !frData.bInShowChoiseRelaList, frData);
				IntimacyRelationViewUT.Set_Drop_List(com, frData.bInShowChoiseRelaList);
				IntimacyRelationViewUT.Set_Middle_Text(com, false, string.Empty, false);
			}
			if (IntimacyRelationViewUT.IsRelaState(frData.state))
			{
				com.m_widgets[5].CustomSetActive(true);
				com.m_widgets[6].CustomSetActive(false);
				IntimacyRelationViewUT.Set_Middle_Text(com, true, IntimacyRelationViewUT.GetMiddleTextStr(frData.state), true);
				ushort num;
				CFriendModel.EIntimacyType eIntimacyType;
				bool flag;
				Singleton<CFriendContoller>.instance.model.GetFriendIntimacy(frData.ulluid, frData.worldID, out num, out eIntimacyType, out flag);
				if (num > 0)
				{
					int relaLevel = IntimacyRelationViewUT.CalcRelaLevel((int)num);
					string relaIconByRelaLevel = IntimacyRelationViewUT.GetRelaIconByRelaLevel(relaLevel, frData.state);
					if (!string.IsNullOrEmpty(relaIconByRelaLevel))
					{
						GameObject p = com.m_widgets[10];
						GameObject gameObject = Utility.FindChild(p, "Icon");
						if (gameObject != null)
						{
							Image component = gameObject.GetComponent<Image>();
							if (component != null)
							{
								component.gameObject.CustomSetActive(true);
								component.SetSprite(relaIconByRelaLevel, uiFrom, true, false, false, false);
								component.SetNativeSize();
							}
						}
					}
				}
			}
			if (IntimacyRelationViewUT.IsRelaStateConfirm(frData.state))
			{
				if (frData.bReciveOthersRequest)
				{
					com.m_widgets[5].CustomSetActive(true);
					com.m_widgets[6].CustomSetActive(false);
					COM_INTIMACY_STATE stateByConfirmState = IntimacyRelationViewUT.GetStateByConfirmState(frData.state);
					string relationText = IntimacyRelationViewUT.GetRelationText(stateByConfirmState);
					string txt = string.Format(UT.FRData().IntimRela_Tips_ReceiveOtherReqRela, UT.Bytes2String(frData.friendInfo.szUserName), relationText);
					IntimacyRelationViewUT.Set_Middle_Text(com, true, txt, false);
				}
				else
				{
					com.m_widgets[5].CustomSetActive(true);
					com.m_widgets[6].CustomSetActive(false);
					IntimacyRelationViewUT.Set_Middle_Text(com, true, UT.FRData().IntimRela_Tips_Wait4TargetRspReqRela, false);
				}
			}
			if (IntimacyRelationViewUT.IsRelaStateDeny(frData.state))
			{
				if (frData.bReciveOthersRequest)
				{
					com.m_widgets[5].CustomSetActive(true);
					com.m_widgets[6].CustomSetActive(false);
					COM_INTIMACY_STATE stateByDenyState = IntimacyRelationViewUT.GetStateByDenyState(frData.state);
					string relationText2 = IntimacyRelationViewUT.GetRelationText(stateByDenyState);
					string txt2 = string.Format(UT.FRData().IntimRela_Tips_ReceiveOtherDelRela, UT.Bytes2String(frData.friendInfo.szUserName), relationText2);
					IntimacyRelationViewUT.Set_Middle_Text(com, true, txt2, false);
				}
				else
				{
					com.m_widgets[5].CustomSetActive(true);
					com.m_widgets[6].CustomSetActive(false);
					IntimacyRelationViewUT.Set_Middle_Text(com, true, UT.FRData().IntimRela_Tips_Wait4TargetRspDelRela, false);
				}
			}
		}