DescScheduleTraining.cs 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. using System;
  2. using Schedule;
  3. public class DescScheduleTraining : DescScheduleBase
  4. {
  5. public override void Init(ScheduleTaskCtrl taskCtrl)
  6. {
  7. base.Init(taskCtrl);
  8. this.m_lReception = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Reception", true);
  9. this.m_lCare = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Care", true);
  10. this.m_lLovely = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Lovely", true);
  11. this.m_lElegance = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Elegance", true);
  12. this.m_lCharm = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Charm", true);
  13. this.m_lTeachRate = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "TeachRate", true);
  14. this.m_lMaidClassExp = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "MaidClassExp", true);
  15. this.m_lCooking = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Cooking", true);
  16. this.m_lVocal = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Vocal", true);
  17. this.m_lDance = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "Dance", true);
  18. this.m_lAppealPoint = new DescScheduleBase.ParamSet(this.m_goMaidParameterParent, "AP", true);
  19. this.m_listMaidItem.Add(this.m_lReception.GetVariableItem());
  20. this.m_listMaidItem.Add(this.m_lCare.GetVariableItem());
  21. this.m_listMaidItem.Add(this.m_lLovely.GetVariableItem());
  22. this.m_listMaidItem.Add(this.m_lElegance.GetVariableItem());
  23. this.m_listMaidItem.Add(this.m_lCharm.GetVariableItem());
  24. this.m_listMaidItem.Add(this.m_lTeachRate.GetVariableItem());
  25. this.m_listMaidItem.Add(this.m_lMaidClassExp.GetVariableItem());
  26. this.m_listMaidItem.Add(this.m_lCooking.GetVariableItem());
  27. this.m_listMaidItem.Add(this.m_lVocal.GetVariableItem());
  28. this.m_listMaidItem.Add(this.m_lDance.GetVariableItem());
  29. this.m_listMaidItem.Add(this.m_lAppealPoint.GetVariableItem());
  30. }
  31. private void ResetPosition()
  32. {
  33. this.m_taskScrollView.ResetPosition();
  34. }
  35. protected override void UpdateView(ScheduleCSVData.ScheduleBase work_data)
  36. {
  37. this.UpdateCurentValue();
  38. this.UpdateAddValue(this.GetAddValue_Trainig());
  39. base.ExamineDisplayItem();
  40. }
  41. protected override void UpdateCurentValue()
  42. {
  43. Slot slot = this.taskCtrl.ScheduleMgr.GetScheduleApi().slot[this.taskCtrl.CurrentActiveSlotNo];
  44. Maid maid = slot.maid;
  45. if (maid == null)
  46. {
  47. return;
  48. }
  49. this.m_lReception.CurrentValueText = maid.status.reception.ToString();
  50. this.m_lCare.CurrentValueText = maid.status.care.ToString();
  51. this.m_lLovely.CurrentValueText = maid.status.lovely.ToString();
  52. this.m_lElegance.CurrentValueText = maid.status.elegance.ToString();
  53. this.m_lCharm.CurrentValueText = maid.status.charm.ToString();
  54. this.m_lTeachRate.CurrentValueText = (maid.status.teachRate / 10).ToString();
  55. this.m_lMaidClassExp.CurrentValueText = maid.status.selectedJobClass.cur_exp.ToString();
  56. this.m_lCooking.CurrentValueText = maid.status.cooking.ToString();
  57. this.m_lVocal.CurrentValueText = maid.status.vocal.ToString();
  58. this.m_lDance.CurrentValueText = maid.status.dance.ToString();
  59. this.m_lAppealPoint.CurrentValueText = maid.status.appealPoint.ToString();
  60. }
  61. protected override void UpdateAddValue(MaidParams maidParam)
  62. {
  63. this.m_lReception.AddValueText = base.Sign(maidParam.reception, null);
  64. this.m_lCare.AddValueText = base.Sign(maidParam.care, null);
  65. this.m_lLovely.AddValueText = base.Sign(maidParam.lovely, null);
  66. this.m_lElegance.AddValueText = base.Sign(maidParam.elegance, null);
  67. this.m_lCharm.AddValueText = base.Sign(maidParam.charm, null);
  68. this.m_lTeachRate.AddValueText = base.Sign(maidParam.teach_rate, null);
  69. this.m_lMaidClassExp.AddValueText = base.Sign(maidParam.exp, null);
  70. this.m_lCooking.AddValueText = base.Sign(maidParam.cooking, null);
  71. this.m_lVocal.AddValueText = base.Sign(maidParam.vocal, null);
  72. this.m_lDance.AddValueText = base.Sign(maidParam.dance, null);
  73. this.m_lAppealPoint.AddValueText = base.Sign(maidParam.Ap, null);
  74. Slot slot = this.taskCtrl.ScheduleMgr.GetScheduleApi().slot[this.taskCtrl.CurrentActiveSlotNo];
  75. Maid maid = slot.maid;
  76. if (maid == null)
  77. {
  78. return;
  79. }
  80. if (maid.status.selectedJobClass.next_exp == 0)
  81. {
  82. this.m_lMaidClassExp.AddValueText = base.Sign(0, null);
  83. }
  84. }
  85. private MaidParams GetAddValue_Trainig()
  86. {
  87. foreach (ScheduleBase scheduleBase in this.taskCtrl.GetWorksData(ScheduleTaskCtrl.TaskType.Training))
  88. {
  89. if (scheduleBase.workType == ScheduleType.Training)
  90. {
  91. ScheduleTraining scheduleTraining = (ScheduleTraining)scheduleBase;
  92. if (scheduleTraining.id == this.intTaskInd)
  93. {
  94. MaidParams simulateeMaidParams = scheduleTraining.simulateeMaidParams;
  95. SalonParams simulateeSalonMaidParams = scheduleTraining.simulateeSalonMaidParams;
  96. return simulateeMaidParams;
  97. }
  98. }
  99. }
  100. return null;
  101. }
  102. protected Slot m_currentSlotInfo;
  103. protected float m_contentPosY;
  104. protected UIScrollView m_taskScrollView;
  105. protected UIScrollBar m_taskScrollBar;
  106. protected DescScheduleBase.ParamSet m_lCare;
  107. protected DescScheduleBase.ParamSet m_lReception;
  108. protected DescScheduleBase.ParamSet m_lTeachRate;
  109. protected DescScheduleBase.ParamSet m_lLovely;
  110. protected DescScheduleBase.ParamSet m_lElegance;
  111. protected DescScheduleBase.ParamSet m_lCharm;
  112. protected DescScheduleBase.ParamSet m_lCooking;
  113. protected DescScheduleBase.ParamSet m_lVocal;
  114. protected DescScheduleBase.ParamSet m_lDance;
  115. protected DescScheduleBase.ParamSet m_lAppealPoint;
  116. protected DescScheduleBase.ParamSet m_lMaidClassExp;
  117. }