|
@@ -27,16 +27,33 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private int MAX_NAME_LENGTH
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return (!Product.DOPLGBNE) ? 8 : 11;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public void Init(GameObject goProfilePanel, Status status)
|
|
|
{
|
|
|
this.m_goProfilePanel = goProfilePanel;
|
|
|
this.m_maidStatus = status;
|
|
|
+ string f_strObjName = "CharacterInfo/Name/FirstName";
|
|
|
+ string f_strObjName2 = "CharacterInfo/Name/LastName";
|
|
|
+ if (Product.DOPLGBNE)
|
|
|
+ {
|
|
|
+ UTY.GetChildObject(base.gameObject, "CharacterInfo/Name", false).SetActive(false);
|
|
|
+ UTY.GetChildObject(base.gameObject, "CharacterInfo/EnZone", false).SetActive(true);
|
|
|
+ f_strObjName = "CharacterInfo/EnZone/NameZone/Name/FirstName";
|
|
|
+ f_strObjName2 = "CharacterInfo/EnZone/NameZone/Name/LastName";
|
|
|
+ }
|
|
|
this.m_lContractType = UTY.GetChildObject(this.m_goProfilePanel, "ContractType/OutputField", false).GetComponent<UILabel>();
|
|
|
- GameObject childObject = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/Name/FirstName", false);
|
|
|
+ GameObject childObject = UTY.GetChildObject(this.m_goProfilePanel, f_strObjName, 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);
|
|
|
+ GameObject childObject2 = UTY.GetChildObject(this.m_goProfilePanel, f_strObjName2, 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));
|
|
@@ -52,13 +69,12 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
this.m_inLastName.RemoveFocus();
|
|
|
this.m_inLastName.value = MaidRandomName.GetLastName();
|
|
|
});
|
|
|
- if (Product.SIBD)
|
|
|
- {
|
|
|
- Vector3 localPosition = this.m_inLastName.transform.localPosition;
|
|
|
- Vector3 localPosition2 = this.m_inFirstName.transform.localPosition;
|
|
|
- this.m_inLastName.transform.localPosition = localPosition2;
|
|
|
- this.m_inFirstName.transform.localPosition = localPosition;
|
|
|
- }
|
|
|
+ GameObject childObject3 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/EnZone/NickNameAndAge/Name/NickName", false);
|
|
|
+ this.m_inNickName = childObject3.GetComponent<UIInput>();
|
|
|
+ this.m_clNickName = childObject3.GetComponent<BoxCollider>();
|
|
|
+ GameObject childObject4 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/EnZone/NickNameAndAge/Age/Age", false);
|
|
|
+ this.m_inAgeInput = childObject4.GetComponent<UIInput>();
|
|
|
+ this.m_clAgeInput = childObject4.GetComponent<BoxCollider>();
|
|
|
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>();
|
|
@@ -78,9 +94,9 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
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>();
|
|
|
+ GameObject childObject5 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/Personal/PopupList", false);
|
|
|
+ this.m_pPersonal = childObject5.GetComponent<UIPopupList>();
|
|
|
+ this.m_lPersonal = UTY.GetChildObject(childObject5, "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>();
|
|
@@ -114,7 +130,7 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
this.m_pPersonal.items.Clear();
|
|
|
- if (Product.SPP)
|
|
|
+ if (Product.AEWDA)
|
|
|
{
|
|
|
this.m_pPersonal.isLocalized = true;
|
|
|
ProfileCtrl.m_dicPersonal = new Dictionary<string, Personal.Data>();
|
|
@@ -138,18 +154,18 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
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>();
|
|
|
+ this.m_clPersonal = childObject5.GetComponent<BoxCollider>();
|
|
|
+ this.m_goPersonalSelectorIcon = UTY.GetChildObject(childObject5, "Symbol", false);
|
|
|
+ GameObject childObject6 = UTY.GetChildObject(this.m_goProfilePanel, "CharacterInfo/SexualExperience/PopupList", false);
|
|
|
+ this.m_pSexualExperience = childObject6.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_clSexualExperience = childObject6.GetComponent<BoxCollider>();
|
|
|
+ this.m_goSexualExperienceSelectorIcon = UTY.GetChildObject(childObject6, "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>();
|
|
@@ -172,14 +188,23 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
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>();
|
|
|
+ if (Product.AEWDA)
|
|
|
+ {
|
|
|
+ UILabel componentInChildren = this.m_inFreeComment.GetComponentInChildren<UILabel>();
|
|
|
+ if (componentInChildren != null)
|
|
|
+ {
|
|
|
+ componentInChildren.spacingX = 0;
|
|
|
+ }
|
|
|
+ this.m_lProfileComment.spacingX = 0;
|
|
|
+ }
|
|
|
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);
|
|
|
+ GameObject childObject7 = UTY.GetChildObject(this.m_goProfilePanel, "Comment/ProfileCommentWindow/ProfileTab", false);
|
|
|
+ this.m_bProfileTab = childObject7.GetComponent<UIButton>();
|
|
|
+ this.m_goProfileTabSelector = UTY.GetChildObject(childObject7, "SelectCursor", false);
|
|
|
+ GameObject childObject8 = UTY.GetChildObject(this.m_goProfilePanel, "Comment/FreeCommentWindow/FreeTab", false);
|
|
|
+ this.m_bFreeTab = childObject8.GetComponent<UIButton>();
|
|
|
+ this.m_goFreeTabSelector = UTY.GetChildObject(childObject8, "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);
|
|
@@ -223,14 +248,14 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
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);
|
|
|
+ GameObject childObject9 = UTY.GetChildObject(this.m_goProfilePanel, "UpperButton/" + upperButtonType.ToString(), false);
|
|
|
+ UIButton component = childObject9.GetComponent<UIButton>();
|
|
|
+ GameObject childObject10 = UTY.GetChildObject(childObject9, "SelectCursor", false);
|
|
|
+ childObject10.SetActive(false);
|
|
|
ProfileCtrl.UpperButton upperButton = new ProfileCtrl.UpperButton();
|
|
|
upperButton.m_btnButton = component;
|
|
|
upperButton.m_name = upperButtonType;
|
|
|
- upperButton.m_goSelectCursor = childObject8;
|
|
|
+ upperButton.m_goSelectCursor = childObject10;
|
|
|
this.m_dicUpperBtn.Add(upperButton.m_name, upperButton);
|
|
|
}
|
|
|
}
|
|
@@ -266,14 +291,33 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
this.LoadMaidParamData();
|
|
|
this.SetEnableInput(this.m_enabledInput, this.m_enabledPersonalityInput);
|
|
|
this.m_bInited = true;
|
|
|
- if (Product.VBA)
|
|
|
+ if (Product.FDAWBW)
|
|
|
{
|
|
|
- UIWFPositionStore component2 = UTY.GetChildObject(base.gameObject, "Layout_jp_public", false).GetComponent<UIWFPositionStore>();
|
|
|
+ UIWFPositionStore component2 = UTY.GetChildObject(base.gameObject, "Layout_public", false).GetComponent<UIWFPositionStore>();
|
|
|
if (component2 != null)
|
|
|
{
|
|
|
component2.Apply();
|
|
|
}
|
|
|
UTY.GetChildObject(base.gameObject, "UpperButton/Character", false).GetComponent<UISprite>().width = 392;
|
|
|
+ BoxCollider component3 = UTY.GetChildObject(base.gameObject, "UpperButton/Character", false).GetComponent<BoxCollider>();
|
|
|
+ component3.size = new Vector3(392f, component3.size.y, 0f);
|
|
|
+ }
|
|
|
+ if (Product.DOPLGBNE)
|
|
|
+ {
|
|
|
+ UIWFPositionStore component4 = UTY.GetChildObject(base.gameObject, "Layout_en", false).GetComponent<UIWFPositionStore>();
|
|
|
+ if (component4 != null)
|
|
|
+ {
|
|
|
+ component4.Apply();
|
|
|
+ }
|
|
|
+ if (Product.FDAWBW)
|
|
|
+ {
|
|
|
+ UTY.GetChildObject(base.gameObject, "UpperButton", false).transform.localPosition = new Vector3(0f, -69f, 0f);
|
|
|
+ UTY.GetChildObject(base.gameObject, "Comment", false).transform.localPosition = new Vector3(UTY.GetChildObject(base.gameObject, "Comment", false).transform.localPosition.x, -42f, 0f);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ UTY.GetChildObject(base.gameObject, "Comment", false).transform.localPosition = new Vector3(UTY.GetChildObject(base.gameObject, "Comment", false).transform.localPosition.x, -124f, 0f);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -285,6 +329,9 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
this.m_clLastName.enabled = enabledInput;
|
|
|
this.m_buFirstName.gameObject.SetActive(enabledInput);
|
|
|
this.m_buLastName.gameObject.SetActive(enabledInput);
|
|
|
+ Behaviour inAgeInput = this.m_inAgeInput;
|
|
|
+ this.m_clAgeInput.enabled = enabledInput;
|
|
|
+ inAgeInput.enabled = enabledInput;
|
|
|
this.m_pPersonal.enabled = enabledPersonalityInput;
|
|
|
this.m_clPersonal.enabled = enabledPersonalityInput;
|
|
|
this.m_goPersonalSelectorIcon.SetActive(enabledPersonalityInput);
|
|
@@ -368,11 +415,13 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
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;
|
|
|
+ this.m_inNickName.value = this.m_maidStatus.nickName;
|
|
|
+ this.m_inAgeInput.value = this.m_maidStatus.age.ToString();
|
|
|
ClassData<JobClass.Data> selectedJobClass = this.m_maidStatus.selectedJobClass;
|
|
|
if (selectedJobClass != null)
|
|
|
{
|
|
|
this.m_lMaidClassName.text = selectedJobClass.data.drawName;
|
|
|
- Utility.SetLocalizeTerm(this.m_lMaidClassName, selectedJobClass.data.termName);
|
|
|
+ Utility.SetLocalizeTerm(this.m_lMaidClassName, selectedJobClass.data.termName, false);
|
|
|
this.m_lMaidClassLevel.text = selectedJobClass.level.ToString();
|
|
|
this.m_lMaidClassExp.text = selectedJobClass.cur_exp.ToString();
|
|
|
this.m_lMaidClassRequiredExp.text = selectedJobClass.next_exp.ToString();
|
|
@@ -429,12 +478,38 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
|
|
|
public void SetLastName(string inputText)
|
|
|
{
|
|
|
- this.m_maidStatus.lastName = this.AdjustStrLengthIfOver(inputText, 8);
|
|
|
+ this.m_maidStatus.lastName = this.AdjustStrLengthIfOver(inputText, this.MAX_NAME_LENGTH);
|
|
|
}
|
|
|
|
|
|
public void SetFirstName(string inputText)
|
|
|
{
|
|
|
- this.m_maidStatus.firstName = this.AdjustStrLengthIfOver(inputText, 8);
|
|
|
+ this.m_maidStatus.firstName = this.AdjustStrLengthIfOver(inputText, this.MAX_NAME_LENGTH);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void SetNickName(string inputText)
|
|
|
+ {
|
|
|
+ this.m_maidStatus.nickName = this.AdjustStrLengthIfOver(inputText, this.MAX_NAME_LENGTH);
|
|
|
+ }
|
|
|
+
|
|
|
+ public string SetAge(string inputText)
|
|
|
+ {
|
|
|
+ int num = Status.minAge;
|
|
|
+ if (!int.TryParse(inputText, out num))
|
|
|
+ {
|
|
|
+ num = Status.minAge;
|
|
|
+ }
|
|
|
+ num = wf.Math.RoundMinMax(num, Status.minAge, Status.maxAge);
|
|
|
+ this.m_maidStatus.age = num;
|
|
|
+ return this.m_maidStatus.age.ToString();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void SubmitAge()
|
|
|
+ {
|
|
|
+ if (this.m_inAgeInput.isSelected)
|
|
|
+ {
|
|
|
+ this.m_inAgeInput.RemoveFocus();
|
|
|
+ }
|
|
|
+ this.m_inAgeInput.value = this.m_maidStatus.age.ToString();
|
|
|
}
|
|
|
|
|
|
public void SetFreeCommnet(string inputText)
|
|
@@ -631,11 +706,11 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
Localize localize = component.gameObject.AddComponent<Localize>();
|
|
|
if (btnType == ProfileMgr.UpperButtonType.Character)
|
|
|
{
|
|
|
- Utility.SetLocalizeTerm(localize, "MaidStatus/性癖タイプ/" + list[i].m_parameter);
|
|
|
+ Utility.SetLocalizeTerm(localize, "MaidStatus/性癖タイプ/" + list[i].m_parameter, false);
|
|
|
}
|
|
|
else if (btnType == ProfileMgr.UpperButtonType.Propensity)
|
|
|
{
|
|
|
- Utility.SetLocalizeTerm(localize, "MaidStatus/性癖タイプ/" + list[i].m_parameter);
|
|
|
+ Utility.SetLocalizeTerm(localize, "MaidStatus/性癖タイプ/" + list[i].m_parameter, false);
|
|
|
}
|
|
|
}
|
|
|
this.m_goProfileLabelUnitPrefab = gameObject;
|
|
@@ -729,6 +804,8 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
}
|
|
|
this.SetFirstName(this.m_inFirstName.value);
|
|
|
this.SetLastName(this.m_inLastName.value);
|
|
|
+ this.SetNickName(this.m_inNickName.value);
|
|
|
+ this.SetAge(this.m_inAgeInput.value);
|
|
|
this.SetFreeCommnet(this.m_inFreeComment.value);
|
|
|
}
|
|
|
|
|
@@ -952,6 +1029,10 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
|
|
|
private UIInput m_inLastName;
|
|
|
|
|
|
+ private UIInput m_inNickName;
|
|
|
+
|
|
|
+ private UIInput m_inAgeInput;
|
|
|
+
|
|
|
private UIButton m_buFirstName;
|
|
|
|
|
|
private UIButton m_buLastName;
|
|
@@ -970,6 +1051,10 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
|
|
|
private BoxCollider m_clLastName;
|
|
|
|
|
|
+ private BoxCollider m_clNickName;
|
|
|
+
|
|
|
+ private BoxCollider m_clAgeInput;
|
|
|
+
|
|
|
private BoxCollider m_clPersonal;
|
|
|
|
|
|
private BoxCollider m_clSexualExperience;
|
|
@@ -994,8 +1079,6 @@ public class ProfileCtrl : MonoBehaviour
|
|
|
|
|
|
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;
|