StatusMgr.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. using System;
  2. using System.Collections.Generic;
  3. using MaidStatus;
  4. using UnityEngine;
  5. public class StatusMgr : BaseCreatePanel
  6. {
  7. public override void Init()
  8. {
  9. this.m_goPanel = base.GetPanel("StatusPanel");
  10. this.m_ctrl = base.GetCtrl<StatusCtrl>();
  11. this.m_ctrl.Init(this, this.m_goPanel);
  12. this.m_goPanel.SetActive(false);
  13. }
  14. public void OpenStatusPanel()
  15. {
  16. Debug.Log("ステータスをオープンしました。");
  17. base.SetDurationToFadeIn(0f);
  18. base.SetDurationToFadeOut(0f);
  19. base.BaseOpenPanel();
  20. }
  21. public void UpdateMaidStatus(Maid maid)
  22. {
  23. this.m_maid = maid;
  24. StatusCtrl.Status status = this.LoadData();
  25. this.m_ctrl.CreateViewer(status);
  26. }
  27. protected override void OpenPanel()
  28. {
  29. }
  30. public void CloseStatusPanel()
  31. {
  32. base.BaseClosePanel();
  33. }
  34. protected override void AfterClose()
  35. {
  36. if (this.sceneMgr != null)
  37. {
  38. this.sceneMgr.CloseScene();
  39. }
  40. }
  41. protected override void SetFadeTargetPanel()
  42. {
  43. this.fadeTargetPanel = this.m_goPanel;
  44. }
  45. private StatusCtrl.Status LoadData()
  46. {
  47. StatusCtrl.Status status = new StatusCtrl.Status();
  48. status.maidIcon = this.m_maid.GetThumIcon();
  49. status.firstName = this.m_maid.status.firstName;
  50. status.lastName = this.m_maid.status.lastName;
  51. status.contractType = EnumConvert.GetString(this.m_maid.status.contract);
  52. status.contractTypeTerm = EnumConvert.GetTerm(this.m_maid.status.contract);
  53. status.personal = this.m_maid.status.personal.drawName;
  54. status.personalTerm = this.m_maid.status.personal.termName;
  55. status.sexualExperience = EnumConvert.GetString(this.m_maid.status.seikeiken);
  56. status.sexualExperienceTerm = EnumConvert.GetTerm(this.m_maid.status.seikeiken);
  57. ClassData<JobClass.Data> selectedJobClass = this.m_maid.status.selectedJobClass;
  58. if (selectedJobClass != null)
  59. {
  60. status.maidClassName = selectedJobClass.data.drawName;
  61. status.maidClassNameTerm = selectedJobClass.data.termName;
  62. status.maidClassLevel = selectedJobClass.level;
  63. status.maidClassExp = selectedJobClass.cur_exp;
  64. status.maidClassRequiredExp = selectedJobClass.next_exp;
  65. }
  66. ClassData<YotogiClass.Data> selectedYotogiClass = this.m_maid.status.selectedYotogiClass;
  67. if (selectedYotogiClass != null)
  68. {
  69. status.yotogiClassName = selectedYotogiClass.data.drawName;
  70. status.yotogiClassLevel = selectedYotogiClass.level;
  71. status.yotogiClassExp = selectedYotogiClass.cur_exp;
  72. status.yotogiClassRequiredExp = selectedYotogiClass.next_exp;
  73. }
  74. status.height = this.m_maid.status.body.height;
  75. status.weight = this.m_maid.status.body.weight;
  76. status.bust = this.m_maid.status.body.bust;
  77. status.cup = this.m_maid.status.body.cup;
  78. status.waist = this.m_maid.status.body.waist;
  79. status.hip = this.m_maid.status.body.hip;
  80. status.hp = this.m_maid.status.maxHp;
  81. status.mind = this.m_maid.status.maxMind;
  82. status.likability = this.m_maid.status.likability;
  83. status.care = this.m_maid.status.care;
  84. status.reception = this.m_maid.status.reception;
  85. status.cooking = this.m_maid.status.cooking;
  86. status.dance = this.m_maid.status.dance;
  87. status.vocal = this.m_maid.status.vocal;
  88. status.appeal = this.m_maid.status.maxAppealPoint;
  89. status.studyRate = this.m_maid.status.studyRate;
  90. status.teachRate = this.m_maid.status.teachRate;
  91. status.lovely = this.m_maid.status.lovely;
  92. status.elegance = this.m_maid.status.elegance;
  93. status.charm = this.m_maid.status.charm;
  94. status.inran = this.m_maid.status.inyoku;
  95. status.mValue = this.m_maid.status.mvalue;
  96. status.hentai = this.m_maid.status.hentai;
  97. status.housi = this.m_maid.status.housi;
  98. status.relation = EnumConvert.GetString(this.m_maid.status.relation);
  99. status.relationTerm = EnumConvert.GetTerm(this.m_maid.status.relation);
  100. if (this.m_maid.status.OldStatus != null)
  101. {
  102. if (this.m_maid.status.OldStatus.isMarriage)
  103. {
  104. status.relation = "嫁";
  105. }
  106. if (this.m_maid.status.OldStatus.isNewWife)
  107. {
  108. status.relation = "新妻";
  109. }
  110. }
  111. status.conditionText = this.m_maid.status.conditionText;
  112. status.conditionTextTerm = this.m_maid.status.conditionTermText;
  113. status.yotogiPlayCount = this.m_maid.status.playCountYotogi;
  114. status.othersPlayCount = this.m_maid.status.playCountNightWork;
  115. status.ranking = this.m_maid.status.popularRank;
  116. status.acquisitionOfClientEvaluation = this.m_maid.status.totalEvaluations;
  117. status.acquisitionOfWorkingFunds = this.m_maid.status.totalSales;
  118. status.daysOfEmployment = this.m_maid.status.employmentElapsedDay;
  119. if (this.m_maid.status.heroineType == HeroineType.Sub)
  120. {
  121. SubMaid.Data.CharacterStatus subCharaStatus = this.m_maid.status.subCharaStatus;
  122. status.contractType = subCharaStatus.contractText;
  123. status.personal = subCharaStatus.personalText;
  124. }
  125. if (this.m_maid.status.OldStatus != null)
  126. {
  127. status.mouth = this.m_maid.status.OldStatus.sexual.mouth;
  128. status.throat = this.m_maid.status.OldStatus.sexual.throat;
  129. status.nipple = this.m_maid.status.OldStatus.sexual.nipple;
  130. status.curi = this.m_maid.status.OldStatus.sexual.curi;
  131. }
  132. return status;
  133. }
  134. protected StatusCtrl m_ctrl;
  135. protected Maid m_maid;
  136. protected Dictionary<int, string> m_dicCrownIcon;
  137. }