| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046 | 
							- using System;
 
- using System.Collections;
 
- using System.Collections.Generic;
 
- using Edit;
 
- using I2.Loc;
 
- using MaidStatus;
 
- using MaidStatus.CsvData;
 
- using UnityEngine;
 
- using Yotogis;
 
- public class ProfileCtrl : MonoBehaviour
 
- {
 
- 	private bool m_enabledInput
 
- 	{
 
- 		get
 
- 		{
 
- 			return BaseMgr<ProfileMgr>.Instance.m_enabledInput;
 
- 		}
 
- 	}
 
- 	private bool m_enabledPersonalityInput
 
- 	{
 
- 		get
 
- 		{
 
- 			return BaseMgr<ProfileMgr>.Instance.m_enabledPersonalityInput;
 
- 		}
 
- 	}
 
- 	public void Init(GameObject goProfilePanel, Status status)
 
- 	{
 
- 		this.m_goProfilePanel = goProfilePanel;
 
- 		this.m_maidStatus = status;
 
- 		this.m_lContractType = UTY.GetChildObject(this.m_goProfilePanel, "ContractType/OutputField", false).GetComponent<UILabel>();
 
- 		GameObject childObject = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/Name/FirstName", false);
 
- 		this.m_inFirstName = childObject.GetComponent<UIInput>();
 
- 		this.m_clFirstName = childObject.GetComponent<BoxCollider>();
 
- 		EventDelegate.Add(this.m_inFirstName.onChange, new EventDelegate.Callback(BaseMgr<ProfileMgr>.Instance.OnChangeFirstName));
 
- 		GameObject childObject2 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/Name/LastName", false);
 
- 		this.m_inLastName = childObject2.GetComponent<UIInput>();
 
- 		this.m_clLastName = childObject2.GetComponent<BoxCollider>();
 
- 		EventDelegate.Add(this.m_inLastName.onChange, new EventDelegate.Callback(BaseMgr<ProfileMgr>.Instance.OnChangeLastName));
 
- 		this.m_buFirstName = UTY.GetChildObject(childObject, "Random", false).GetComponent<UIButton>();
 
- 		EventDelegate.Add(this.m_buFirstName.onClick, delegate()
 
- 		{
 
- 			this.m_inFirstName.RemoveFocus();
 
- 			this.m_inFirstName.value = MaidRandomName.GetFirstName();
 
- 		});
 
- 		this.m_buLastName = UTY.GetChildObject(childObject2, "Random", false).GetComponent<UIButton>();
 
- 		EventDelegate.Add(this.m_buLastName.onClick, delegate()
 
- 		{
 
- 			this.m_inLastName.RemoveFocus();
 
- 			this.m_inLastName.value = MaidRandomName.GetLastName();
 
- 		});
 
- 		this.m_lMaidClassName = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/MaidClass/Type", false).GetComponent<UILabel>();
 
- 		this.m_lMaidClassLevel = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/MaidClass/Level", false).GetComponent<UILabel>();
 
- 		this.m_lMaidClassExp = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/MaidClass/Exp", false).GetComponent<UILabel>();
 
- 		this.m_lMaidClassRequiredExp = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/MaidClass/RequiredExp", false).GetComponent<UILabel>();
 
- 		this.m_lYotogiClassName = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/YotogiClass/Type", false).GetComponent<UILabel>();
 
- 		this.m_lYotogiClassLevel = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/YotogiClass/Level", false).GetComponent<UILabel>();
 
- 		this.m_lYotogiClassExp = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/YotogiClass/Exp", false).GetComponent<UILabel>();
 
- 		this.m_lYotogiClassRequiredExp = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/YotogiClass/RequiredExp", false).GetComponent<UILabel>();
 
- 		this.m_lRelation = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Relation", false).GetComponent<UILabel>();
 
- 		this.m_lConditionText = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/ConditionText", false).GetComponent<UILabel>();
 
- 		this.m_lYotogiPlayCount = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/OthersPlayCount", false).GetComponent<UILabel>();
 
- 		this.m_lOthersPlayCount = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/YotogiPlayCount", false).GetComponent<UILabel>();
 
- 		this.m_lHp = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Hp", false).GetComponent<UILabel>();
 
- 		this.m_lLikability = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Likability", false).GetComponent<UILabel>();
 
- 		this.m_lMind = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Mind", false).GetComponent<UILabel>();
 
- 		this.m_lReception = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Reception", false).GetComponent<UILabel>();
 
- 		this.m_lCare = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Care", false).GetComponent<UILabel>();
 
- 		this.m_lStudyRate = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StudyRate", false).GetComponent<UILabel>();
 
- 		this.m_lTeachRate = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/TeachRate", false).GetComponent<UILabel>();
 
- 		GameObject childObject3 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/Personal/PopupList", false);
 
- 		this.m_pPersonal = childObject3.GetComponent<UIPopupList>();
 
- 		this.m_lPersonal = UTY.GetChildObject(childObject3, "LabelParent/Label", false).GetComponent<UILabel>();
 
- 		bool flag = GameMain.Instance.CharacterMgr.status.GetFlag("オープニング終了") == 1;
 
- 		List<Personal.Data> allDatas = Personal.GetAllDatas(true);
 
- 		List<Personal.Data> list = new List<Personal.Data>();
 
- 		foreach (Personal.Data data in allDatas)
 
- 		{
 
- 			string a = data.uniqueName.ToLower();
 
- 			if (data.oldPersonal)
 
- 			{
 
- 				if (a == "pure" || a == "cool" || a == "pride")
 
- 				{
 
- 					if (GameMain.Instance.CharacterMgr.status.isAvailableTransfer)
 
- 					{
 
- 						list.Add(data);
 
- 					}
 
- 				}
 
- 				else if (flag)
 
- 				{
 
- 					if (data.single)
 
- 					{
 
- 						list.Add(data);
 
- 					}
 
- 					else if (!string.IsNullOrEmpty(GameMain.Instance.CMSystem.CM3D2Path) && data.compatible)
 
- 					{
 
- 						list.Add(data);
 
- 					}
 
- 				}
 
- 			}
 
- 			else
 
- 			{
 
- 				list.Add(data);
 
- 			}
 
- 		}
 
- 		this.m_pPersonal.items.Clear();
 
- 		ProfileCtrl.m_dicPersonal = new Dictionary<string, Personal.Data>();
 
- 		foreach (Personal.Data data2 in list)
 
- 		{
 
- 			string drawName = data2.drawName;
 
- 			this.m_pPersonal.items.Add(drawName);
 
- 			ProfileCtrl.m_dicPersonal.Add(drawName, data2);
 
- 		}
 
- 		EventDelegate.Add(this.m_pPersonal.onChange, delegate()
 
- 		{
 
- 		});
 
- 		this.m_clPersonal = childObject3.GetComponent<BoxCollider>();
 
- 		this.m_goPersonalSelectorIcon = UTY.GetChildObject(childObject3, "Symbol", false);
 
- 		GameObject childObject4 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/SexualExperience/PopupList", false);
 
- 		this.m_pSexualExperience = childObject4.GetComponent<UIPopupList>();
 
- 		ProfileCtrl.m_dicSexualExperience = new Dictionary<string, Seikeiken>();
 
- 		for (int i = 0; i < Enum.GetValues(typeof(Seikeiken)).Length; i++)
 
- 		{
 
- 			Seikeiken seikeiken = (Seikeiken)i;
 
- 			ProfileCtrl.m_dicSexualExperience.Add(EnumConvert.GetString(seikeiken), seikeiken);
 
- 		}
 
- 		this.m_clSexualExperience = childObject4.GetComponent<BoxCollider>();
 
- 		this.m_goSexualExperienceSelectorIcon = UTY.GetChildObject(childObject4, "Symbol", false);
 
- 		this.m_lHeight = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Body/Height", false).GetComponent<UILabel>();
 
- 		this.m_lWeight = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Body/Weight", false).GetComponent<UILabel>();
 
- 		this.m_lBust = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Body/Bust/Bust", false).GetComponent<UILabel>();
 
- 		this.m_lCup = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Body/Bust/Cup", false).GetComponent<UILabel>();
 
- 		this.m_lWaist = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Body/Waist", false).GetComponent<UILabel>();
 
- 		this.m_lHip = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/Body/Hip", false).GetComponent<UILabel>();
 
- 		this.m_lCooking = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Cooking/Box", false).GetComponent<UILabel>();
 
- 		this.m_lDance = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Dance/Box", false).GetComponent<UILabel>();
 
- 		this.m_lVocal = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Vocal/Box", false).GetComponent<UILabel>();
 
- 		this.m_lLovely = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Lovely/Box", false).GetComponent<UILabel>();
 
- 		this.m_lElegance = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Elegance/Box", false).GetComponent<UILabel>();
 
- 		this.m_lCharm = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Charm/Box", false).GetComponent<UILabel>();
 
- 		this.m_lInran = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Inran/Box", false).GetComponent<UILabel>();
 
- 		this.m_lMValue = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/MValue/Box", false).GetComponent<UILabel>();
 
- 		this.m_lHentai = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Hentai/Box", false).GetComponent<UILabel>();
 
- 		this.m_lHousi = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/Housi/Box", false).GetComponent<UILabel>();
 
- 		this.m_lMaidPoint = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/MaidPoint", false).GetComponent<UILabel>();
 
- 		this.m_goMaidPointTitleAndFrame = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/ProfileBase/StatusPoints/MaidPoint/MaidPointTitleAndFrame", false);
 
- 		this.initMaidPointUIPosX = this.m_goMaidPointTitleAndFrame.transform.parent.localPosition.x;
 
- 		this.m_inFreeComment = UTY.GetChildObject(this.m_goProfilePanel, "Comment/FreeCommentWindow/FreeComment", false).GetComponent<UIInput>();
 
- 		EventDelegate.Add(this.m_inFreeComment.onChange, new EventDelegate.Callback(BaseMgr<ProfileMgr>.Instance.OnChangeFreeComment));
 
- 		this.m_lProfileComment = UTY.GetChildObject(this.m_goProfilePanel, "Comment/ProfileCommentWindow/ProfileComment", false).GetComponent<UILabel>();
 
- 		this.m_goProfileComment = UTY.GetChildObject(this.m_goProfilePanel, "Comment/ProfileCommentWindow/ProfileComment", false);
 
- 		this.m_goFreeComment = UTY.GetChildObject(this.m_goProfilePanel, "Comment/FreeCommentWindow/FreeComment", false);
 
- 		GameObject childObject5 = UTY.GetChildObject(this.m_goProfilePanel, "Comment/ProfileCommentWindow/ProfileTab", false);
 
- 		this.m_bProfileTab = childObject5.GetComponent<UIButton>();
 
- 		this.m_goProfileTabSelector = UTY.GetChildObject(childObject5, "SelectCursor", false);
 
- 		GameObject childObject6 = UTY.GetChildObject(this.m_goProfilePanel, "Comment/FreeCommentWindow/FreeTab", false);
 
- 		this.m_bFreeTab = childObject6.GetComponent<UIButton>();
 
- 		this.m_goFreeTabSelector = UTY.GetChildObject(childObject6, "SelectCursor", false);
 
- 		this.activeColor = new Color(this.m_bProfileTab.defaultColor.r, this.m_bProfileTab.defaultColor.g, this.m_bProfileTab.defaultColor.b, 1f);
 
- 		this.inActiveColor = this.m_bProfileTab.defaultColor;
 
- 		this.m_goMaidSkillParent = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/MaidSkillViewer/Contents/MaidSkillUnitParent", false);
 
- 		this.m_goMaidSkillViewer = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/MaidSkillViewer", false);
 
- 		this.m_maidSkillScrollView = UTY.GetChildObject(this.m_goMaidSkillViewer, "Contents", false).GetComponent<UIScrollView>();
 
- 		this.m_goCharacterParent = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/CharacterViewer/Contents/CharacterUnitParent", false);
 
- 		this.m_goCharacterViewer = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/CharacterViewer", false);
 
- 		this.m_characterScrollView = UTY.GetChildObject(this.m_goCharacterViewer, "Contents", false).GetComponent<UIScrollView>();
 
- 		this.m_goPropensityParent = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/PropensityViewer/Contents/CharacterUnitParent", false);
 
- 		this.m_goPropensityViewer = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/PropensityViewer", false);
 
- 		this.m_propensityScrollView = UTY.GetChildObject(this.m_goPropensityViewer, "Contents", false).GetComponent<UIScrollView>();
 
- 		this.m_goYotogiSkillParent = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/YotogiSkillViewer/Contents/YotogiSkillUnitParent", false);
 
- 		this.m_goYotogiSkillViewer = UTY.GetChildObject(this.m_goProfilePanel, "SubWindows/YotogiSkillViewer", false);
 
- 		this.m_yotogiSkillScrollView = UTY.GetChildObject(this.m_goYotogiSkillViewer, "Contents", false).GetComponent<UIScrollView>();
 
- 		this.m_dicSpriteName = new Dictionary<ProfileCtrl.LevelOfAchievement, string>
 
- 		{
 
- 			{
 
- 				ProfileCtrl.LevelOfAchievement.level_1,
 
- 				"cm3d2_edit_profile_yotogiskill_sign_batu"
 
- 			},
 
- 			{
 
- 				ProfileCtrl.LevelOfAchievement.level_2,
 
- 				"cm3d2_edit_profile_yotogiskill_sign_sankaku"
 
- 			},
 
- 			{
 
- 				ProfileCtrl.LevelOfAchievement.level_3,
 
- 				"cm3d2_edit_profile_yotogiskill_sign_maru"
 
- 			},
 
- 			{
 
- 				ProfileCtrl.LevelOfAchievement.level_4,
 
- 				"cm3d2_edit_profile_yotogiskill_sign_nijumaru"
 
- 			}
 
- 		};
 
- 		this.m_dicUpperBtn = new Dictionary<ProfileMgr.UpperButtonType, ProfileCtrl.UpperButton>();
 
- 		IEnumerator enumerator3 = Enum.GetValues(typeof(ProfileMgr.UpperButtonType)).GetEnumerator();
 
- 		try
 
- 		{
 
- 			while (enumerator3.MoveNext())
 
- 			{
 
- 				object obj = enumerator3.Current;
 
- 				ProfileMgr.UpperButtonType upperButtonType = (ProfileMgr.UpperButtonType)obj;
 
- 				if (upperButtonType != ProfileMgr.UpperButtonType.None)
 
- 				{
 
- 					GameObject childObject7 = UTY.GetChildObject(this.m_goProfilePanel, "UpperButton/" + upperButtonType.ToString(), false);
 
- 					UIButton component = childObject7.GetComponent<UIButton>();
 
- 					GameObject childObject8 = UTY.GetChildObject(childObject7, "SelectCursor", false);
 
- 					childObject8.SetActive(false);
 
- 					ProfileCtrl.UpperButton upperButton = new ProfileCtrl.UpperButton();
 
- 					upperButton.m_btnButton = component;
 
- 					upperButton.m_name = upperButtonType;
 
- 					upperButton.m_goSelectCursor = childObject8;
 
- 					this.m_dicUpperBtn.Add(upperButton.m_name, upperButton);
 
- 				}
 
- 			}
 
- 		}
 
- 		finally
 
- 		{
 
- 			IDisposable disposable;
 
- 			if ((disposable = (enumerator3 as IDisposable)) != null)
 
- 			{
 
- 				disposable.Dispose();
 
- 			}
 
- 		}
 
- 		this.m_dicSubViewer = new Dictionary<ProfileMgr.UpperButtonType, GameObject>
 
- 		{
 
- 			{
 
- 				ProfileMgr.UpperButtonType.MaidSkill,
 
- 				this.m_goMaidSkillViewer
 
- 			},
 
- 			{
 
- 				ProfileMgr.UpperButtonType.YotogiSkill,
 
- 				this.m_goYotogiSkillViewer
 
- 			},
 
- 			{
 
- 				ProfileMgr.UpperButtonType.Character,
 
- 				this.m_goCharacterViewer
 
- 			},
 
- 			{
 
- 				ProfileMgr.UpperButtonType.Propensity,
 
- 				this.m_goPropensityViewer
 
- 			}
 
- 		};
 
- 		this.initCommentWindow();
 
- 		this.LoadMaidParamData();
 
- 		this.SetEnableInput(this.m_enabledInput, this.m_enabledPersonalityInput);
 
- 		this.m_bInited = true;
 
- 	}
 
- 	private void SetEnableInput(bool enabledInput, bool enabledPersonalityInput)
 
- 	{
 
- 		this.m_inFirstName.enabled = enabledInput;
 
- 		this.m_inLastName.enabled = enabledInput;
 
- 		this.m_clFirstName.enabled = enabledInput;
 
- 		this.m_clLastName.enabled = enabledInput;
 
- 		this.m_buFirstName.gameObject.SetActive(enabledInput);
 
- 		this.m_buLastName.gameObject.SetActive(enabledInput);
 
- 		this.m_pPersonal.enabled = enabledPersonalityInput;
 
- 		this.m_clPersonal.enabled = enabledPersonalityInput;
 
- 		this.m_goPersonalSelectorIcon.SetActive(enabledPersonalityInput);
 
- 		this.m_pSexualExperience.enabled = enabledInput;
 
- 		this.m_clSexualExperience.enabled = enabledInput;
 
- 		this.m_goSexualExperienceSelectorIcon.SetActive(enabledInput);
 
- 		if (enabledInput)
 
- 		{
 
- 			this.m_lMaidPoint.alpha = 1f;
 
- 			this.m_goMaidPointTitleAndFrame.SetActive(true);
 
- 		}
 
- 		else
 
- 		{
 
- 			this.m_lMaidPoint.alpha = 0f;
 
- 			this.m_goMaidPointTitleAndFrame.SetActive(false);
 
- 		}
 
- 	}
 
- 	public void SetActiveViewerAndButton(ProfileMgr.UpperButtonType btn)
 
- 	{
 
- 		this.SetActiveViewer(btn);
 
- 		this.SetActiveButton(btn);
 
- 	}
 
- 	public void SetActiveViewer(ProfileMgr.UpperButtonType btn)
 
- 	{
 
- 		Vector3 localPosition = this.m_goMaidPointTitleAndFrame.transform.parent.localPosition;
 
- 		this.m_goMaidPointTitleAndFrame.transform.parent.localPosition = new Vector3(this.initMaidPointUIPosX, localPosition.y, localPosition.z);
 
- 		foreach (ProfileMgr.UpperButtonType upperButtonType in this.m_dicSubViewer.Keys)
 
- 		{
 
- 			if (btn == upperButtonType)
 
- 			{
 
- 				GameObject gameObject = this.m_dicSubViewer[upperButtonType];
 
- 				gameObject.SetActive(true);
 
- 				localPosition = this.m_goMaidPointTitleAndFrame.transform.parent.localPosition;
 
- 				this.m_goMaidPointTitleAndFrame.transform.parent.localPosition = new Vector3(-270f, localPosition.y, localPosition.z);
 
- 			}
 
- 			else
 
- 			{
 
- 				GameObject gameObject2 = this.m_dicSubViewer[upperButtonType];
 
- 				gameObject2.SetActive(false);
 
- 			}
 
- 		}
 
- 	}
 
- 	private void SetActiveButton(ProfileMgr.UpperButtonType btn)
 
- 	{
 
- 		foreach (ProfileMgr.UpperButtonType upperButtonType in this.m_dicUpperBtn.Keys)
 
- 		{
 
- 			ProfileCtrl.UpperButton upperButton;
 
- 			if (this.m_dicUpperBtn.TryGetValue(upperButtonType, out upperButton))
 
- 			{
 
- 				if (btn == upperButtonType)
 
- 				{
 
- 					upperButton.m_btnButton.defaultColor = this.activeColor;
 
- 					upperButton.m_goSelectCursor.SetActive(true);
 
- 				}
 
- 				else
 
- 				{
 
- 					upperButton.m_btnButton.defaultColor = this.inActiveColor;
 
- 					upperButton.m_goSelectCursor.SetActive(false);
 
- 				}
 
- 			}
 
- 		}
 
- 		ProfileMgr.currentActiveBtn = btn;
 
- 	}
 
- 	private void initCommentWindow()
 
- 	{
 
- 		this.m_goProfileComment.SetActive(true);
 
- 		this.m_goFreeComment.SetActive(false);
 
- 		this.m_goProfileTabSelector.SetActive(true);
 
- 		this.m_goFreeTabSelector.SetActive(false);
 
- 		this.m_bProfileTab.defaultColor = this.activeColor;
 
- 		this.m_bFreeTab.defaultColor = this.inActiveColor;
 
- 	}
 
- 	public void LoadMaidParamData()
 
- 	{
 
- 		this.UpdateProfileData(false);
 
- 		this.m_lContractType.GetComponent<Localize>().SetTerm(this.GetContractType(this.m_maidStatus.contract));
 
- 		this.m_inLastName.value = this.m_maidStatus.lastName;
 
- 		this.m_inFirstName.value = this.m_maidStatus.firstName;
 
- 		ClassData<JobClass.Data> selectedJobClass = this.m_maidStatus.selectedJobClass;
 
- 		if (selectedJobClass != null)
 
- 		{
 
- 			if (!GameUty.supportMultiLanguage)
 
- 			{
 
- 				this.m_lMaidClassName.text = selectedJobClass.data.drawName;
 
- 			}
 
- 			else
 
- 			{
 
- 				this.m_lMaidClassName.gameObject.GetComponent<Localize>().SetTerm(selectedJobClass.data.termName);
 
- 			}
 
- 			this.m_lMaidClassLevel.text = selectedJobClass.level.ToString();
 
- 			this.m_lMaidClassExp.text = selectedJobClass.cur_exp.ToString();
 
- 			this.m_lMaidClassRequiredExp.text = selectedJobClass.next_exp.ToString();
 
- 		}
 
- 		ClassData<YotogiClass.Data> selectedYotogiClass = this.m_maidStatus.selectedYotogiClass;
 
- 		if (selectedYotogiClass != null)
 
- 		{
 
- 			this.m_lYotogiClassName.text = selectedYotogiClass.data.drawName;
 
- 			this.m_lYotogiClassLevel.text = selectedYotogiClass.level.ToString();
 
- 			this.m_lYotogiClassExp.text = selectedYotogiClass.cur_exp.ToString();
 
- 			this.m_lYotogiClassRequiredExp.text = selectedYotogiClass.next_exp.ToString();
 
- 		}
 
- 		this.m_lHeight.text = this.m_maidStatus.body.height.ToString();
 
- 		this.m_lWeight.text = this.m_maidStatus.body.weight.ToString();
 
- 		this.m_lBust.text = this.m_maidStatus.body.bust.ToString();
 
- 		this.m_lWaist.text = this.m_maidStatus.body.waist.ToString();
 
- 		this.m_lHip.text = this.m_maidStatus.body.hip.ToString();
 
- 		this.m_lCup.text = this.m_maidStatus.body.cup;
 
- 		this.m_lRelation.GetComponent<Localize>().SetTerm(this.GetCondition(this.m_maidStatus.relation));
 
- 		this.m_lConditionText.GetComponent<UILabel>().text = this.m_maidStatus.conditionText;
 
- 		this.m_lConditionText.GetComponent<Localize>().SetTerm(this.m_maidStatus.conditionTermText);
 
- 		this.m_lYotogiPlayCount.text = this.m_maidStatus.playCountYotogi.ToString();
 
- 		this.m_lOthersPlayCount.text = this.m_maidStatus.playCountNightWork.ToString();
 
- 		this.m_lHp.text = this.m_maidStatus.maxHp.ToString();
 
- 		this.m_lLikability.text = this.m_maidStatus.likability.ToString();
 
- 		this.m_lMind.text = this.m_maidStatus.maxMind.ToString();
 
- 		this.m_lReception.text = this.m_maidStatus.reception.ToString();
 
- 		this.m_lCare.text = this.m_maidStatus.care.ToString();
 
- 		this.m_lStudyRate.text = this.ToPercent(this.m_maidStatus.studyRate).ToString();
 
- 		this.m_lTeachRate.text = this.ToPercent(this.m_maidStatus.teachRate).ToString();
 
- 		this.m_lCooking.text = this.m_maidStatus.cooking.ToString();
 
- 		this.m_lDance.text = this.m_maidStatus.dance.ToString();
 
- 		this.m_lVocal.text = this.m_maidStatus.vocal.ToString();
 
- 		this.m_lLovely.text = this.m_maidStatus.lovely.ToString();
 
- 		this.m_lElegance.text = this.m_maidStatus.elegance.ToString();
 
- 		this.m_lCharm.text = this.m_maidStatus.charm.ToString();
 
- 		this.m_lInran.text = this.m_maidStatus.inyoku.ToString();
 
- 		this.m_lMValue.text = this.m_maidStatus.mvalue.ToString();
 
- 		this.m_lHentai.text = this.m_maidStatus.hentai.ToString();
 
- 		this.m_lHousi.text = this.m_maidStatus.housi.ToString();
 
- 		this.m_lMaidPoint.text = SceneEdit.Instance.maidPoint.ToString();
 
- 		foreach (KeyValuePair<string, Personal.Data> keyValuePair in ProfileCtrl.m_dicPersonal)
 
- 		{
 
- 			if (this.m_maidStatus.personal.uniqueName == keyValuePair.Value.uniqueName)
 
- 			{
 
- 				this.m_pPersonal.value = keyValuePair.Key;
 
- 				break;
 
- 			}
 
- 		}
 
- 		this.m_pSexualExperience.value = this.GetSelectOptionNameFromSexualExpe(this.m_maidStatus.seikeiken);
 
- 		this.m_lProfileComment.text = this.m_maidStatus.profileComment;
 
- 		this.m_inFreeComment.value = this.m_maidStatus.freeComment;
 
- 	}
 
- 	public void SetLastName(string inputText)
 
- 	{
 
- 		this.m_maidStatus.lastName = this.AdjustStrLengthIfOver(inputText, 8);
 
- 	}
 
- 	public void SetFirstName(string inputText)
 
- 	{
 
- 		this.m_maidStatus.firstName = this.AdjustStrLengthIfOver(inputText, 8);
 
- 	}
 
- 	public void SetFreeCommnet(string inputText)
 
- 	{
 
- 		this.m_maidStatus.freeComment = this.AdjustStrLengthIfOver(inputText, 304);
 
- 	}
 
- 	public void SetPersonal(string selectValue)
 
- 	{
 
- 		Personal.Data personal;
 
- 		if (ProfileCtrl.m_dicPersonal.TryGetValue(selectValue, out personal))
 
- 		{
 
- 			this.m_maidStatus.SetPersonal(personal);
 
- 			Debug.Log(string.Concat(new object[]
 
- 			{
 
- 				"保存された性格:",
 
- 				this.m_maidStatus.personal,
 
- 				" = ",
 
- 				selectValue
 
- 			}));
 
- 		}
 
- 	}
 
- 	public void SetSexualExperience(string selectValue)
 
- 	{
 
- 		Seikeiken[] array = new Seikeiken[]
 
- 		{
 
- 			Seikeiken.No_No,
 
- 			Seikeiken.Yes_No,
 
- 			Seikeiken.No_Yes,
 
- 			Seikeiken.Yes_Yes
 
- 		};
 
- 		foreach (Seikeiken seikeiken in array)
 
- 		{
 
- 			if (EnumConvert.GetTerm(seikeiken) == selectValue)
 
- 			{
 
- 				Seikeiken initSeikeiken = Seikeiken.No_No;
 
- 				if (ProfileCtrl.m_dicSexualExperience.TryGetValue(EnumConvert.GetString(seikeiken), out initSeikeiken))
 
- 				{
 
- 					this.m_maidStatus.seikeiken = (this.m_maidStatus.initSeikeiken = initSeikeiken);
 
- 				}
 
- 				break;
 
- 			}
 
- 		}
 
- 	}
 
- 	private string GetSelectOptionNameFromSexualExpe(Seikeiken sexualExperience)
 
- 	{
 
- 		foreach (KeyValuePair<string, Seikeiken> keyValuePair in ProfileCtrl.m_dicSexualExperience)
 
- 		{
 
- 			if (keyValuePair.Value == sexualExperience)
 
- 			{
 
- 				return EnumConvert.GetTerm(keyValuePair.Value);
 
- 			}
 
- 		}
 
- 		return null;
 
- 	}
 
- 	private string GetContractType(Contract contractType)
 
- 	{
 
- 		return EnumConvert.GetTerm(contractType);
 
- 	}
 
- 	private string GetCondition(Relation relation)
 
- 	{
 
- 		return EnumConvert.GetTerm(relation);
 
- 	}
 
- 	private string AdjustStrLengthIfOver(string str, int length)
 
- 	{
 
- 		if (str.Length > length)
 
- 		{
 
- 			str = str.Substring(length);
 
- 			Debug.LogError(string.Format("入力された文字数が最大文字数を超えています。入力文字={0}, 最大文字数={1}", str, length));
 
- 		}
 
- 		return str;
 
- 	}
 
- 	private int AdjustIntIfOverRange(int value, int minNumber, int maxNumber)
 
- 	{
 
- 		if (value < minNumber)
 
- 		{
 
- 			value = minNumber;
 
- 			Debug.LogError(string.Format("入力された値が許容される最小値より小さいです。入力値={0}, 許容される値の範囲[{1}-{2}]", value, minNumber, maxNumber));
 
- 		}
 
- 		else if (value > maxNumber)
 
- 		{
 
- 			value = maxNumber;
 
- 			Debug.LogError(string.Format("入力された値が許容される最大値より大きいです。入力値={0}, 許容される値の範囲[{1}-{2}]", value, minNumber, maxNumber));
 
- 		}
 
- 		return value;
 
- 	}
 
- 	private void CheckValueRange(int value, int minNumber, int maxNumber)
 
- 	{
 
- 		if (value < minNumber || value > maxNumber)
 
- 		{
 
- 			Debug.LogError(string.Format("値が不適切です。値={0}, 許容される値の範囲[{1}-{2}]", value, minNumber, maxNumber));
 
- 		}
 
- 	}
 
- 	private bool CheckValueLength(string value, int length)
 
- 	{
 
- 		if (value.Length <= length)
 
- 		{
 
- 			return true;
 
- 		}
 
- 		Debug.LogError(string.Format("値の桁数が不適切です。値={0}, 許容される値の最大桁数={1}", value, length));
 
- 		return false;
 
- 	}
 
- 	public void ChangeCommentTab(string clickTab)
 
- 	{
 
- 		if (clickTab == ProfileMgr.CommentTab.ProfileTab.ToString())
 
- 		{
 
- 			this.m_bProfileTab.defaultColor = this.activeColor;
 
- 			this.m_bFreeTab.defaultColor = this.inActiveColor;
 
- 			this.m_goProfileComment.SetActive(true);
 
- 			this.m_goFreeComment.SetActive(false);
 
- 			this.m_goProfileTabSelector.SetActive(true);
 
- 			this.m_goFreeTabSelector.SetActive(false);
 
- 		}
 
- 		else if (clickTab == ProfileMgr.CommentTab.FreeTab.ToString())
 
- 		{
 
- 			this.m_bProfileTab.defaultColor = this.inActiveColor;
 
- 			this.m_bFreeTab.defaultColor = this.activeColor;
 
- 			this.m_goProfileComment.SetActive(false);
 
- 			this.m_goFreeComment.SetActive(true);
 
- 			this.m_goProfileTabSelector.SetActive(false);
 
- 			this.m_goFreeTabSelector.SetActive(true);
 
- 		}
 
- 	}
 
- 	private bool NotExist<K, V>(Dictionary<K, V> dic)
 
- 	{
 
- 		return dic == null || dic.Count == 0;
 
- 	}
 
- 	public void CreateMaidSkillViewer(Dictionary<string, ProfileCtrl.ProfileLabelUnit> dicProfileLabel)
 
- 	{
 
- 		this.m_dicProfileLabel = dicProfileLabel;
 
- 		this.CreateProfileItemInViewer(ProfileMgr.UpperButtonType.MaidSkill, this.m_goMaidSkillParent);
 
- 		this.SetActiveViewerAndButton(ProfileMgr.UpperButtonType.MaidSkill);
 
- 		this.AdjustTargetPosition(this.m_goMaidSkillParent, this.m_maidSkillScrollView);
 
- 	}
 
- 	public void CreateCharacterViewer(Dictionary<string, ProfileCtrl.ProfileLabelUnit> dicProfileLabel)
 
- 	{
 
- 		this.m_dicProfileLabel = dicProfileLabel;
 
- 		this.CreateProfileItemInViewer(ProfileMgr.UpperButtonType.Character, this.m_goCharacterParent);
 
- 		this.SetActiveViewerAndButton(ProfileMgr.UpperButtonType.Character);
 
- 		this.AdjustTargetPosition(this.m_goCharacterParent, this.m_characterScrollView);
 
- 	}
 
- 	public void CreatePropensityViewer(Dictionary<string, ProfileCtrl.ProfileLabelUnit> dicProfileLabel)
 
- 	{
 
- 		this.m_dicProfileLabel = dicProfileLabel;
 
- 		this.CreateProfileItemInViewer(ProfileMgr.UpperButtonType.Propensity, this.m_goPropensityParent);
 
- 		this.SetActiveViewerAndButton(ProfileMgr.UpperButtonType.Propensity);
 
- 		this.AdjustTargetPosition(this.m_goPropensityParent, this.m_propensityScrollView);
 
- 	}
 
- 	public void CreateYotogiSkill(Dictionary<string, ProfileCtrl.ProfileYotogiSkillUnit> dicYotogiSkill)
 
- 	{
 
- 		this.m_dicYotogiSkill = dicYotogiSkill;
 
- 		this.CreateProfileItemInViewer(ProfileMgr.UpperButtonType.YotogiSkill, this.m_goYotogiSkillParent);
 
- 		this.SetActiveViewerAndButton(ProfileMgr.UpperButtonType.YotogiSkill);
 
- 		this.AdjustTargetPosition(this.m_goYotogiSkillParent, this.m_yotogiSkillScrollView);
 
- 	}
 
- 	private void CreateProfileItemInViewer(ProfileMgr.UpperButtonType btnType, GameObject goParent)
 
- 	{
 
- 		this.ClearExistChildGameObject(goParent);
 
- 		GameObject gameObject = null;
 
- 		switch (btnType)
 
- 		{
 
- 		case ProfileMgr.UpperButtonType.MaidSkill:
 
- 		case ProfileMgr.UpperButtonType.Character:
 
- 		case ProfileMgr.UpperButtonType.Propensity:
 
- 		{
 
- 			gameObject = this.GetPrefabs(this.m_goProfileLabelUnitPrefab, "SceneEdit/Profile/Prefab/ProfileLabelUnit");
 
- 			List<ProfileCtrl.ProfileLabelUnit> list = new List<ProfileCtrl.ProfileLabelUnit>();
 
- 			foreach (KeyValuePair<string, ProfileCtrl.ProfileLabelUnit> keyValuePair in this.m_dicProfileLabel)
 
- 			{
 
- 				list.Add(keyValuePair.Value);
 
- 			}
 
- 			list.Sort((ProfileCtrl.ProfileLabelUnit a, ProfileCtrl.ProfileLabelUnit b) => int.Parse(a.m_id) - int.Parse(b.m_id));
 
- 			for (int i = 0; i < list.Count; i++)
 
- 			{
 
- 				GameObject gameObject2 = UnityEngine.Object.Instantiate<GameObject>(gameObject);
 
- 				this.SetTransformInfo(gameObject2, goParent);
 
- 				UILabel component = UTY.GetChildObject(gameObject2, "Parameter", false).GetComponent<UILabel>();
 
- 				component.text = list[i].m_parameter;
 
- 			}
 
- 			this.m_goProfileLabelUnitPrefab = gameObject;
 
- 			break;
 
- 		}
 
- 		case ProfileMgr.UpperButtonType.YotogiSkill:
 
- 			gameObject = this.GetPrefabs(this.m_goYotogiSkillUnitPrefab, "SceneEdit/Profile/Prefab/YotogiSkillUnit");
 
- 			foreach (KeyValuePair<string, ProfileCtrl.ProfileYotogiSkillUnit> keyValuePair2 in this.m_dicYotogiSkill)
 
- 			{
 
- 				GameObject gameObject3 = UnityEngine.Object.Instantiate<GameObject>(gameObject);
 
- 				this.SetTransformInfo(gameObject3, goParent);
 
- 				UILabel component2 = UTY.GetChildObject(gameObject3, "Number/Value", false).GetComponent<UILabel>();
 
- 				component2.text = keyValuePair2.Value.m_number;
 
- 				UILabel component3 = UTY.GetChildObject(gameObject3, "SkillName/Value", false).GetComponent<UILabel>();
 
- 				component3.text = keyValuePair2.Value.m_skillName;
 
- 				UISprite component4 = UTY.GetChildObject(gameObject3, "LevelOfAchievement/Icon", false).GetComponent<UISprite>();
 
- 				component4.spriteName = this.m_dicSpriteName[keyValuePair2.Value.m_levelOfAchievement];
 
- 			}
 
- 			this.m_goYotogiSkillUnitPrefab = gameObject;
 
- 			break;
 
- 		}
 
- 	}
 
- 	private void SetTransformInfo(GameObject copyPrefabs, GameObject goParent)
 
- 	{
 
- 		copyPrefabs.transform.parent = goParent.transform;
 
- 		copyPrefabs.transform.localScale = Vector3.one;
 
- 		copyPrefabs.transform.localPosition = Vector3.zero;
 
- 		copyPrefabs.transform.rotation = Quaternion.identity;
 
- 	}
 
- 	private GameObject GetPrefabs(GameObject prefabs, string prefabsPath)
 
- 	{
 
- 		if (prefabs == null)
 
- 		{
 
- 			prefabs = (Resources.Load(prefabsPath) as GameObject);
 
- 			if (prefabs == null)
 
- 			{
 
- 				Debug.LogError(string.Format("ロードされるプレハブが見つかりませんでした。パス={0}", prefabsPath));
 
- 			}
 
- 		}
 
- 		return prefabs;
 
- 	}
 
- 	private void AdjustTargetPosition(GameObject go, UIScrollView scrollView)
 
- 	{
 
- 		go.GetComponent<UIGrid>().Reposition();
 
- 		scrollView.ResetPosition();
 
- 	}
 
- 	private void AdjustTargetPositionGridAndTable(GameObject goGrid, GameObject goTable, UIScrollView scrollView)
 
- 	{
 
- 		goGrid.GetComponent<UIGrid>().Reposition();
 
- 		goTable.GetComponent<UITable>().Reposition();
 
- 		scrollView.ResetPosition();
 
- 	}
 
- 	private void ClearExistChildGameObject(GameObject parent)
 
- 	{
 
- 		IEnumerator enumerator = parent.transform.GetEnumerator();
 
- 		try
 
- 		{
 
- 			while (enumerator.MoveNext())
 
- 			{
 
- 				object obj = enumerator.Current;
 
- 				Transform transform = (Transform)obj;
 
- 				UnityEngine.Object.Destroy(transform.gameObject);
 
- 			}
 
- 		}
 
- 		finally
 
- 		{
 
- 			IDisposable disposable;
 
- 			if ((disposable = (enumerator as IDisposable)) != null)
 
- 			{
 
- 				disposable.Dispose();
 
- 			}
 
- 		}
 
- 		parent.transform.DetachChildren();
 
- 	}
 
- 	private int ToPercent(int number)
 
- 	{
 
- 		return (int)Math.Floor((double)(number / 10));
 
- 	}
 
- 	public void OnDisable()
 
- 	{
 
- 		if (!this.m_bInited)
 
- 		{
 
- 			return;
 
- 		}
 
- 		this.SetFirstName(this.m_inFirstName.value);
 
- 		this.SetLastName(this.m_inLastName.value);
 
- 		this.SetFreeCommnet(this.m_inFreeComment.value);
 
- 	}
 
- 	public void UpdateProfileData(bool updateYotogiSkill)
 
- 	{
 
- 		if (this.m_enabledInput)
 
- 		{
 
- 			this.m_maidStatus.mainChara = !this.m_enabledPersonalityInput;
 
- 			foreach (int featureId in this.m_maidStatus.features.GetKeyArray())
 
- 			{
 
- 				this.m_maidStatus.RemoveFeature(featureId);
 
- 			}
 
- 			List<Feature.Data> allDatas = Feature.GetAllDatas(true);
 
- 			foreach (Personal.Data.LearnFeature learnFeature in this.m_maidStatus.personal.acquisitionFeatureList)
 
- 			{
 
- 				if (learnFeature.isLearnPossible(this.m_maidStatus))
 
- 				{
 
- 					this.m_maidStatus.AddFeature(learnFeature.feature);
 
- 				}
 
- 			}
 
- 			AbstractClassData.ClassType classTypeFlags = AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New | AbstractClassData.ClassType.Old;
 
- 			this.m_maidStatus.yotogiClass.Clear();
 
- 			foreach (YotogiClass.Data data in this.m_maidStatus.yotogiClass.GetLearnPossibleClassDatas(false, classTypeFlags))
 
- 			{
 
- 				if (GameMain.Instance.CharacterMgr.status.IsYotogiClassOpenFlag(data.id))
 
- 				{
 
- 					this.m_maidStatus.yotogiClass.Add(data.id, false, true);
 
- 				}
 
- 			}
 
- 			int id = this.m_maidStatus.selectedJobClass.data.id;
 
- 			HashSet<int> hashSet = new HashSet<int>();
 
- 			foreach (KeyValuePair<int, ClassData<JobClass.Data>> keyValuePair in this.m_maidStatus.jobClass.GetAllDatas())
 
- 			{
 
- 				hashSet.Add(keyValuePair.Key);
 
- 			}
 
- 			HashSet<int> hashSet2 = new HashSet<int>();
 
- 			foreach (JobClass.Data data2 in this.m_maidStatus.jobClass.GetLearnPossibleClassDatas(false, classTypeFlags))
 
- 			{
 
- 				if (GameMain.Instance.CharacterMgr.status.IsJobClassOpenFlag(data2.id))
 
- 				{
 
- 					hashSet2.Add(data2.id);
 
- 				}
 
- 			}
 
- 			HashSet<int> hashSet3 = new HashSet<int>();
 
- 			foreach (int item in hashSet)
 
- 			{
 
- 				if (!hashSet2.Contains(item))
 
- 				{
 
- 					hashSet3.Add(item);
 
- 				}
 
- 			}
 
- 			HashSet<int> hashSet4 = new HashSet<int>();
 
- 			foreach (int item2 in hashSet2)
 
- 			{
 
- 				if (!hashSet.Contains(item2))
 
- 				{
 
- 					hashSet4.Add(item2);
 
- 				}
 
- 			}
 
- 			foreach (int id2 in hashSet3)
 
- 			{
 
- 				this.m_maidStatus.jobClass.Remove(id2, true);
 
- 			}
 
- 			int num = -1;
 
- 			foreach (int num2 in hashSet4)
 
- 			{
 
- 				this.m_maidStatus.jobClass.Add(num2, false, true);
 
- 				num = ((num >= num2) ? num : num2);
 
- 			}
 
- 			if (num != -1)
 
- 			{
 
- 				this.m_maidStatus.ChangeJobClass(num);
 
- 			}
 
- 			if (updateYotogiSkill)
 
- 			{
 
- 				this.m_maidStatus.yotogiSkill.Clear();
 
- 				List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this.m_maidStatus);
 
- 				foreach (Skill.Data data3 in learnPossibleSkills)
 
- 				{
 
- 					this.m_maidStatus.yotogiSkill.Add(data3.id);
 
- 				}
 
- 			}
 
- 			this.m_maidStatus.UpdateClassBonusStatus();
 
- 			this.m_maidStatus.sexPlayNumberOfPeople = MaidProfile.UpdateInitPlayNumber(this.m_maidStatus.maid);
 
- 		}
 
- 		this.m_maidStatus.UpdateBodyParam();
 
- 		this.m_maidStatus.profileComment = MaidProfile.Create(this.m_maidStatus.maid, !this.m_enabledInput);
 
- 	}
 
- 	private Status m_maidStatus;
 
- 	private ProfileCtrl.ProfileAttribute m_profileAttribute;
 
- 	private GameObject m_goProfilePanel;
 
- 	private GameObject m_goProfileComment;
 
- 	private GameObject m_goFreeComment;
 
- 	private GameObject m_goProfileTabSelector;
 
- 	private GameObject m_goFreeTabSelector;
 
- 	private GameObject m_goProfileLabelUnitPrefab;
 
- 	private GameObject m_goYotogiSkillUnitPrefab;
 
- 	private GameObject m_goMaidPointTitleAndFrame;
 
- 	private GameObject m_goMaidSkillParent;
 
- 	private GameObject m_goCharacterParent;
 
- 	private GameObject m_goPropensityParent;
 
- 	private GameObject m_goYotogiSkillParent;
 
- 	private GameObject m_goErogenousZoneParent;
 
- 	private GameObject m_goMaidSkillViewer;
 
- 	private GameObject m_goCharacterViewer;
 
- 	private GameObject m_goPropensityViewer;
 
- 	private GameObject m_goYotogiSkillViewer;
 
- 	private GameObject m_goPersonalSelectorIcon;
 
- 	private GameObject m_goSexualExperienceSelectorIcon;
 
- 	private UIScrollView m_maidSkillScrollView;
 
- 	private UIScrollView m_characterScrollView;
 
- 	private UIScrollView m_propensityScrollView;
 
- 	private UIScrollView m_yotogiSkillScrollView;
 
- 	private UIScrollView m_attributeScrollView;
 
- 	private UILabel m_lContractType;
 
- 	private UILabel m_lMaidClassName;
 
- 	private UILabel m_lMaidClassLevel;
 
- 	private UILabel m_lMaidClassExp;
 
- 	private UILabel m_lMaidClassRequiredExp;
 
- 	private UILabel m_lYotogiClassName;
 
- 	private UILabel m_lYotogiClassLevel;
 
- 	private UILabel m_lYotogiClassExp;
 
- 	private UILabel m_lYotogiClassRequiredExp;
 
- 	private UILabel m_lHeight;
 
- 	private UILabel m_lWeight;
 
- 	private UILabel m_lBust;
 
- 	private UILabel m_lCup;
 
- 	private UILabel m_lWaist;
 
- 	private UILabel m_lHip;
 
- 	private UILabel m_lRelation;
 
- 	private UILabel m_lConditionText;
 
- 	private UILabel m_lYotogiPlayCount;
 
- 	private UILabel m_lOthersPlayCount;
 
- 	private UILabel m_lHp;
 
- 	private UILabel m_lLikability;
 
- 	private UILabel m_lMind;
 
- 	private UILabel m_lReception;
 
- 	private UILabel m_lCare;
 
- 	private UILabel m_lStudyRate;
 
- 	private UILabel m_lTeachRate;
 
- 	private UILabel m_lCooking;
 
- 	private UILabel m_lDance;
 
- 	private UILabel m_lVocal;
 
- 	private UILabel m_lLovely;
 
- 	private UILabel m_lElegance;
 
- 	private UILabel m_lCharm;
 
- 	private UILabel m_lInran;
 
- 	private UILabel m_lMValue;
 
- 	private UILabel m_lHentai;
 
- 	private UILabel m_lHousi;
 
- 	private UILabel m_lMaidPoint;
 
- 	private UILabel m_lProfileComment;
 
- 	private UIInput m_inFreeComment;
 
- 	private UIInput m_inFirstName;
 
- 	private UIInput m_inLastName;
 
- 	private UIButton m_buFirstName;
 
- 	private UIButton m_buLastName;
 
- 	private UIPopupList m_pPersonal;
 
- 	private UILabel m_lPersonal;
 
- 	private UIPopupList m_pSexualExperience;
 
- 	private UIButton m_bProfileTab;
 
- 	private UIButton m_bFreeTab;
 
- 	private BoxCollider m_clFirstName;
 
- 	private BoxCollider m_clLastName;
 
- 	private BoxCollider m_clPersonal;
 
- 	private BoxCollider m_clSexualExperience;
 
- 	private static Dictionary<string, Personal.Data> m_dicPersonal;
 
- 	private static Dictionary<string, Seikeiken> m_dicSexualExperience;
 
- 	private Dictionary<ProfileMgr.UpperButtonType, GameObject> m_dicSubViewer;
 
- 	private Dictionary<ProfileMgr.UpperButtonType, ProfileCtrl.UpperButton> m_dicUpperBtn;
 
- 	private Dictionary<string, ProfileCtrl.ProfileLabelUnit> m_dicProfileLabel;
 
- 	private Dictionary<string, ProfileCtrl.ProfileYotogiSkillUnit> m_dicYotogiSkill;
 
- 	private Dictionary<ProfileCtrl.LevelOfAchievement, string> m_dicSpriteName;
 
- 	private bool m_bInited;
 
- 	private Color activeColor;
 
- 	private Color inActiveColor;
 
- 	private const int MAX_NAME_LENGTH = 8;
 
- 	private const int MAX_FREE_COMMENT_LENGTH = 304;
 
- 	private const int MAX_EROGENOUSZONE_UNIT = 7;
 
- 	private const int MAX_ATTRIBUTE_UNIT = 10;
 
- 	private const int DENOMINATOR = 10;
 
- 	private const string MAID_SKILL_UNIT_PARENT_PATH = "SubWindows/MaidSkillViewer/Contents/MaidSkillUnitParent";
 
- 	private const string CHARACTER_UNIT_PARENT_PATH = "SubWindows/CharacterViewer/Contents/CharacterUnitParent";
 
- 	private const string PROPENSITY_UNIT_PARENT_PATH = "SubWindows/PropensityViewer/Contents/CharacterUnitParent";
 
- 	private const string YOTOGI_SKILL_UNIT_PARENT_PATH = "SubWindows/YotogiSkillViewer/Contents/YotogiSkillUnitParent";
 
- 	private const string ATTRIBUTE_UNIT_PARENT_PATH = "SubWindows/AttributeViewer/Contents/Attribute/AttributeUnitParent";
 
- 	private const string EROGENOUS_ZONE_UNIT_PARENT_PATH = "SubWindows/AttributeViewer/Contents/ErogenousZone/ErogenousZoneParent";
 
- 	private const string PROFILE_LABEL_UNIT_PREFAB_PATH = "SceneEdit/Profile/Prefab/ProfileLabelUnit";
 
- 	private const string PROFILE_YOTOGI_SKILL_UNIT_PREFAB_PATH = "SceneEdit/Profile/Prefab/YotogiSkillUnit";
 
- 	private const string PROFILE_ATTRIBUTE_UNIT_PREFAB_PATH = "SceneEdit/Profile/Prefab/AttributeUnit";
 
- 	private const string PROFILE_EROGENOUS_ZONE_UNIT_PREFAB_PATH = "SceneEdit/Profile/Prefab/ErogenousZoneUnit";
 
- 	private float initMaidPointUIPosX;
 
- 	public enum LevelOfAchievement
 
- 	{
 
- 		level_1,
 
- 		level_2,
 
- 		level_3,
 
- 		level_4
 
- 	}
 
- 	private class UpperButton
 
- 	{
 
- 		public ProfileMgr.UpperButtonType m_name;
 
- 		public GameObject m_goSelectCursor;
 
- 		public UIButton m_btnButton;
 
- 	}
 
- 	public class ProfileLabelUnit
 
- 	{
 
- 		public string m_id;
 
- 		public string m_parameter;
 
- 	}
 
- 	public class ProfileYotogiSkillUnit
 
- 	{
 
- 		public string m_id;
 
- 		public string m_number;
 
- 		public string m_skillName;
 
- 		public ProfileCtrl.LevelOfAchievement m_levelOfAchievement;
 
- 	}
 
- 	public class ProfileAttribute
 
- 	{
 
- 		public ProfileAttribute()
 
- 		{
 
- 			this.m_listAttributeUnitName = new List<string>();
 
- 		}
 
- 		public List<string> m_listAttributeUnitName;
 
- 	}
 
- 	public class ErogenousZoneUnit
 
- 	{
 
- 		public string m_category;
 
- 		public int m_PercentNumber;
 
- 	}
 
- }
 
 
  |