DaytimeTaskCtrl.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using Schedule;
  5. using UnityEngine;
  6. public class DaytimeTaskCtrl : BaseCreateViewerCtrl
  7. {
  8. public void Init(ScheduleMgr scheduleMgr, ScheduleCtrl scheduleCtrl, GameObject goPanel)
  9. {
  10. this.m_scheduleMgr = scheduleMgr;
  11. this.m_scheduleCtrl = scheduleCtrl;
  12. this.m_goDaytimeTaskViewer = UTY.GetChildObject(goPanel, "DaytimeTaskViewer", false);
  13. }
  14. private void InitViewer()
  15. {
  16. this.m_unitPrefabPath = "SceneDaily/Schedule/Prefab/DaytimeTaskUnit";
  17. GameObject childObject = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "TaskViewer", false);
  18. this.m_goUnitParent = UTY.GetChildObject(childObject, "Contents/TaskUnitParent", false);
  19. this.m_content = UTY.GetChildObject(childObject, "Contents", false);
  20. this.m_contentPosY = this.m_content.transform.localPosition.y;
  21. this.m_taskScrollView = UTY.GetChildObject(childObject, "Contents", false).GetComponent<UIScrollView>();
  22. this.m_goParameterViewer = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer", false);
  23. this.m_goMaidParameterParent = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer/MaidParameter/ParameterParent", false);
  24. GameObject childObject2 = UTY.GetChildObject(this.m_goMaidParameterParent, "StudyRate", false);
  25. this.m_lStudyRate = UTY.GetChildObject(childObject2, "Value", false).GetComponent<UILabel>();
  26. this.m_lCurrentStudyRate = UTY.GetChildObject(childObject2, "CurrentValue", false).GetComponent<UILabel>();
  27. GameObject childObject3 = UTY.GetChildObject(this.m_goMaidParameterParent, "Reception", false);
  28. this.m_lReception = UTY.GetChildObject(childObject3, "Value", false).GetComponent<UILabel>();
  29. this.m_lCurrentReception = UTY.GetChildObject(childObject3, "CurrentValue", false).GetComponent<UILabel>();
  30. GameObject childObject4 = UTY.GetChildObject(this.m_goMaidParameterParent, "Care", false);
  31. this.m_lCare = UTY.GetChildObject(childObject4, "Value", false).GetComponent<UILabel>();
  32. this.m_lCurrentCare = UTY.GetChildObject(childObject4, "CurrentValue", false).GetComponent<UILabel>();
  33. GameObject childObject5 = UTY.GetChildObject(this.m_goMaidParameterParent, "Lovely", false);
  34. this.m_lLovely = UTY.GetChildObject(childObject5, "Value", false).GetComponent<UILabel>();
  35. this.m_lCurrentLovely = UTY.GetChildObject(childObject5, "CurrentValue", false).GetComponent<UILabel>();
  36. GameObject childObject6 = UTY.GetChildObject(this.m_goMaidParameterParent, "Elegance", false);
  37. this.m_lElegance = UTY.GetChildObject(childObject6, "Value", false).GetComponent<UILabel>();
  38. this.m_lCurrentElegance = UTY.GetChildObject(childObject6, "CurrentValue", false).GetComponent<UILabel>();
  39. GameObject childObject7 = UTY.GetChildObject(this.m_goMaidParameterParent, "Charm", false);
  40. this.m_lCharm = UTY.GetChildObject(childObject7, "Value", false).GetComponent<UILabel>();
  41. this.m_lCurrentCharm = UTY.GetChildObject(childObject7, "CurrentValue", false).GetComponent<UILabel>();
  42. GameObject childObject8 = UTY.GetChildObject(this.m_goMaidParameterParent, "TeachRate", false);
  43. this.m_lTeachRate = UTY.GetChildObject(childObject8, "Value", false).GetComponent<UILabel>();
  44. this.m_lCurrentTeachRate = UTY.GetChildObject(childObject8, "CurrentValue", false).GetComponent<UILabel>();
  45. GameObject childObject9 = UTY.GetChildObject(this.m_goMaidParameterParent, "MaidClassExp", false);
  46. this.m_lMaidClassExp = UTY.GetChildObject(childObject9, "Value", false).GetComponent<UILabel>();
  47. this.m_lCurrentMaidClassExp = UTY.GetChildObject(childObject9, "CurrentValue", false).GetComponent<UILabel>();
  48. this.m_listMaidParameter = new List<ScheduleCtrl.VariableItem>
  49. {
  50. new ScheduleCtrl.VariableItem(childObject2, this.m_lStudyRate),
  51. new ScheduleCtrl.VariableItem(childObject3, this.m_lReception),
  52. new ScheduleCtrl.VariableItem(childObject4, this.m_lCare),
  53. new ScheduleCtrl.VariableItem(childObject5, this.m_lLovely),
  54. new ScheduleCtrl.VariableItem(childObject6, this.m_lElegance),
  55. new ScheduleCtrl.VariableItem(childObject7, this.m_lCharm),
  56. new ScheduleCtrl.VariableItem(childObject8, this.m_lTeachRate),
  57. new ScheduleCtrl.VariableItem(childObject9, this.m_lMaidClassExp)
  58. };
  59. this.m_goSalonParameter = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer/SalonParameter", false);
  60. this.m_goSalonParameterParent = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer/SalonParameter/ParameterParent", false);
  61. GameObject childObject10 = UTY.GetChildObject(this.m_goSalonParameterParent, "Cleanliness", false);
  62. this.m_lCleanliness = UTY.GetChildObject(childObject10, "Value", false).GetComponent<UILabel>();
  63. GameObject childObject11 = UTY.GetChildObject(this.m_goSalonParameterParent, "Brilliant", false);
  64. this.m_lBrilliant = UTY.GetChildObject(childObject11, "Value", false).GetComponent<UILabel>();
  65. GameObject childObject12 = UTY.GetChildObject(this.m_goSalonParameterParent, "Income", false);
  66. this.m_lIncome = UTY.GetChildObject(childObject12, "Value", false).GetComponent<UILabel>();
  67. this.m_listSalonParameter = new List<ScheduleCtrl.VariableItem>
  68. {
  69. new ScheduleCtrl.VariableItem(childObject10, this.m_lCleanliness),
  70. new ScheduleCtrl.VariableItem(childObject11, this.m_lBrilliant),
  71. new ScheduleCtrl.VariableItem(childObject12, this.m_lIncome)
  72. };
  73. this.m_taskScrollBar = UTY.GetChildObject(childObject, "Scroll Bar", false).GetComponent<UIScrollBar>();
  74. this.m_spBGOfParameterViewer = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer/BG", false).GetComponent<UISprite>();
  75. this.m_goTitleOfMaidParameter = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer/MaidParameter/Title", false);
  76. this.m_heightOfMaidParameterTitle = this.m_goTitleOfMaidParameter.GetComponent<UISprite>().height;
  77. this.m_goTitleOfSalonParameter = UTY.GetChildObject(this.m_goDaytimeTaskViewer, "ParameterViewer/SalonParameter/Title", false);
  78. this.m_heightOfSalonParameterTitle = this.m_goTitleOfSalonParameter.GetComponent<UISprite>().height;
  79. }
  80. public void CreateTaskViewer(string buttonName)
  81. {
  82. if (!this.m_bInit)
  83. {
  84. this.InitViewer();
  85. this.m_bInit = true;
  86. }
  87. this.m_scheduleCtrl.SetMaidIdByButtonName(buttonName);
  88. this.m_scheduleCtrl.SetSelectedRowActive(buttonName);
  89. string maidId = this.m_scheduleCtrl.GetMaidId();
  90. this.m_currentActiveSlotNo = ScheduleCtrl.GetSlotNoByButtonName(buttonName);
  91. this.m_listDaytimeTask = this.LoadData(this.m_currentActiveSlotNo);
  92. base.CreateViewer<DaytimeTaskCtrl.DaytimeTaskButton>(this.m_listDaytimeTask);
  93. string daytimeTaskId = this.GetDaytimeTaskId();
  94. this.SetDaytimeTaskButtonActive(daytimeTaskId);
  95. this.m_scheduleMgr.SetCurrentDaytimeTaskActiveButton(daytimeTaskId);
  96. this.LoadDaytimeTaskData(daytimeTaskId);
  97. this.ResetPosition();
  98. }
  99. private void ResetPosition()
  100. {
  101. this.m_taskScrollView.ResetPosition();
  102. this.m_content.transform.localPosition = new Vector2(this.m_content.transform.localPosition.x, this.m_contentPosY);
  103. }
  104. protected override void SetDataForViewer()
  105. {
  106. this.m_dicDaytimeTask = new Dictionary<string, DaytimeTaskCtrl.DaytimeTaskButton>();
  107. int num = 0;
  108. foreach (DaytimeTaskCtrl.DaytimeTaskButton daytimeTaskButton in this.m_listDaytimeTask)
  109. {
  110. GameObject gameObject = UnityEngine.Object.Instantiate<GameObject>(this.m_goUnitPrefab);
  111. gameObject.name = daytimeTaskButton.id;
  112. GameObject childObject = UTY.GetChildObject(gameObject, "Main", false);
  113. childObject.name = daytimeTaskButton.id;
  114. base.SetTransformInfo(gameObject);
  115. UILabel component = UTY.GetChildObject(gameObject, "Title", false).GetComponent<UILabel>();
  116. component.text = daytimeTaskButton.name;
  117. UITexture component2 = childObject.GetComponent<UITexture>();
  118. component2.mainTexture = daytimeTaskButton.txtTaskIcon;
  119. this.SetDaytimeTaskRank(gameObject, daytimeTaskButton.rank);
  120. this.SetExpRatio(gameObject, daytimeTaskButton.expRatio);
  121. if (daytimeTaskButton.type == ScheduleCSVData.TrainingType.Travel)
  122. {
  123. UTY.GetChildObject(gameObject, "Stars", false).SetActive(false);
  124. UTY.GetChildObject(gameObject, "ExpRatio", false).SetActive(false);
  125. Transform transform = UTY.GetChildObject(gameObject, "Title", false).transform;
  126. Vector3 localPosition = transform.localPosition;
  127. localPosition.y = -55f;
  128. transform.localPosition = localPosition;
  129. }
  130. GameObject childObject2 = UTY.GetChildObject(childObject, "SelectCursor", false);
  131. childObject2.SetActive(false);
  132. daytimeTaskButton.selectCursor = childObject2;
  133. daytimeTaskButton.order = num;
  134. UIButton component3 = childObject.GetComponent<UIButton>();
  135. daytimeTaskButton.btnTask = component3;
  136. if (!daytimeTaskButton.enableTask)
  137. {
  138. Debug.Log(string.Format("選択できないタスクです。タスクID={0}, タスク名={1}", daytimeTaskButton.id, daytimeTaskButton.name));
  139. }
  140. this.m_dicDaytimeTask.Add(daytimeTaskButton.id, daytimeTaskButton);
  141. num++;
  142. }
  143. }
  144. private void LoadDaytimeTaskData(string taskId)
  145. {
  146. int num = int.Parse(taskId);
  147. foreach (ScheduleBase scheduleBase in this.worksData)
  148. {
  149. if (scheduleBase.workType == ScheduleType.Training)
  150. {
  151. ScheduleTraining scheduleTraining = (ScheduleTraining)scheduleBase;
  152. if (scheduleTraining.id == num)
  153. {
  154. MaidParams simulateeMaidParams = scheduleTraining.simulateeMaidParams;
  155. this.m_lStudyRate.text = this.Sign(simulateeMaidParams.study_rate, null);
  156. this.m_lReception.text = this.Sign(simulateeMaidParams.reception, null);
  157. this.m_lCare.text = this.Sign(simulateeMaidParams.care, null);
  158. this.m_lLovely.text = this.Sign(simulateeMaidParams.lovely, null);
  159. this.m_lElegance.text = this.Sign(simulateeMaidParams.elegance, null);
  160. this.m_lCharm.text = this.Sign(simulateeMaidParams.charm, null);
  161. this.m_lTeachRate.text = this.Sign(simulateeMaidParams.teach_rate, null);
  162. this.m_lMaidClassExp.text = this.Sign(simulateeMaidParams.exp, null);
  163. SalonParams simulateeSalonMaidParams = scheduleTraining.simulateeSalonMaidParams;
  164. this.m_lIncome.text = this.Sign(simulateeMaidParams.income, "#,0");
  165. }
  166. }
  167. }
  168. this.ExamineDisplayItem();
  169. }
  170. private string Sign(int input, string format = null)
  171. {
  172. if (input <= 0)
  173. {
  174. return input.ToString();
  175. }
  176. if (format != null)
  177. {
  178. return "+" + input.ToString(format);
  179. }
  180. return "+" + input.ToString();
  181. }
  182. private void ExamineDisplayItem()
  183. {
  184. int num = ScheduleCtrl.SetActiveExceptForNothing(this.m_listMaidParameter, "0");
  185. bool flag = num > 0;
  186. this.m_goTitleOfMaidParameter.SetActive(flag);
  187. int num2 = ScheduleCtrl.SetActiveExceptForNothing(this.m_listSalonParameter, "0");
  188. bool flag2 = num2 > 0;
  189. this.m_goTitleOfSalonParameter.SetActive(flag2);
  190. if (!flag && !flag2)
  191. {
  192. this.m_goParameterViewer.SetActive(false);
  193. return;
  194. }
  195. this.m_goParameterViewer.SetActive(true);
  196. BaseCreateViewerCtrl.Reposition(this.m_goMaidParameterParent);
  197. BaseCreateViewerCtrl.Reposition(this.m_goSalonParameterParent);
  198. this.AdjustParameterViewer(num, num2);
  199. }
  200. private void AdjustParameterViewer(int displayMaidParameterCount, int displaySalonParameterCount)
  201. {
  202. float num = 15f;
  203. float num2 = 25f;
  204. float num3 = 0f;
  205. if (displayMaidParameterCount > 0)
  206. {
  207. num3 += (float)this.m_heightOfMaidParameterTitle + num;
  208. float y = this.m_goMaidParameterParent.GetComponent<UITable>().padding.y;
  209. IEnumerator enumerator = this.m_goMaidParameterParent.transform.GetEnumerator();
  210. try
  211. {
  212. while (enumerator.MoveNext())
  213. {
  214. object obj = enumerator.Current;
  215. Transform transform = (Transform)obj;
  216. if (transform.gameObject.activeSelf)
  217. {
  218. UILabel component = transform.GetComponent<UILabel>();
  219. num3 += (float)component.height + y * 2f;
  220. }
  221. }
  222. }
  223. finally
  224. {
  225. IDisposable disposable;
  226. if ((disposable = (enumerator as IDisposable)) != null)
  227. {
  228. disposable.Dispose();
  229. }
  230. }
  231. num3 += num2;
  232. }
  233. float num4 = 0f;
  234. if (displaySalonParameterCount > 0)
  235. {
  236. num4 += (float)this.m_heightOfSalonParameterTitle + num;
  237. float y = this.m_goSalonParameterParent.GetComponent<UITable>().padding.y;
  238. IEnumerator enumerator2 = this.m_goSalonParameterParent.transform.GetEnumerator();
  239. try
  240. {
  241. while (enumerator2.MoveNext())
  242. {
  243. object obj2 = enumerator2.Current;
  244. Transform transform2 = (Transform)obj2;
  245. if (transform2.gameObject.activeSelf)
  246. {
  247. UILabel component2 = transform2.GetComponent<UILabel>();
  248. num4 += (float)component2.height + y * 2f;
  249. }
  250. }
  251. }
  252. finally
  253. {
  254. IDisposable disposable2;
  255. if ((disposable2 = (enumerator2 as IDisposable)) != null)
  256. {
  257. disposable2.Dispose();
  258. }
  259. }
  260. num4 += num2;
  261. }
  262. if (num3 + num4 > 0f)
  263. {
  264. this.m_spBGOfParameterViewer.height = (int)(num3 + num4);
  265. float y2 = (num3 <= 0f) ? (-(num3 + num * 2f)) : (-(num3 + num));
  266. this.m_goSalonParameter.transform.localPosition = new Vector3(this.m_goSalonParameter.transform.localPosition.x, y2, 0f);
  267. }
  268. }
  269. private void SetDaytimeTaskRank(GameObject go, int rank)
  270. {
  271. List<GameObject> list = new List<GameObject>();
  272. GameObject childObject = UTY.GetChildObject(go, "Stars/Icon", false);
  273. IEnumerator enumerator = childObject.transform.GetEnumerator();
  274. try
  275. {
  276. while (enumerator.MoveNext())
  277. {
  278. object obj = enumerator.Current;
  279. Transform transform = (Transform)obj;
  280. list.Add(transform.gameObject);
  281. }
  282. }
  283. finally
  284. {
  285. IDisposable disposable;
  286. if ((disposable = (enumerator as IDisposable)) != null)
  287. {
  288. disposable.Dispose();
  289. }
  290. }
  291. int count = list.Count;
  292. for (int i = 0; i < count; i++)
  293. {
  294. if (rank > i)
  295. {
  296. list[i].SetActive(true);
  297. }
  298. else
  299. {
  300. list[i].SetActive(false);
  301. }
  302. }
  303. }
  304. private void SetExpRatio(GameObject go, int expRatio)
  305. {
  306. List<GameObject> list = new List<GameObject>();
  307. GameObject childObject = UTY.GetChildObject(go, "ExpRatio/ValueGroup", false);
  308. IEnumerator enumerator = childObject.transform.GetEnumerator();
  309. try
  310. {
  311. while (enumerator.MoveNext())
  312. {
  313. object obj = enumerator.Current;
  314. Transform transform = (Transform)obj;
  315. list.Add(transform.gameObject);
  316. }
  317. }
  318. finally
  319. {
  320. IDisposable disposable;
  321. if ((disposable = (enumerator as IDisposable)) != null)
  322. {
  323. disposable.Dispose();
  324. }
  325. }
  326. int count = list.Count;
  327. for (int i = 0; i < count; i++)
  328. {
  329. if (expRatio > i)
  330. {
  331. list[i].SetActive(true);
  332. }
  333. else
  334. {
  335. list[i].SetActive(false);
  336. }
  337. }
  338. }
  339. private string GetDaytimeTaskId()
  340. {
  341. ScheduleCtrl.MaidStatusAndTaskUnit maidStatusAndTaskUnit = null;
  342. Dictionary<string, ScheduleCtrl.MaidStatusAndTaskUnit> dicMaidStatusAndTask = this.m_scheduleCtrl.GetDicMaidStatusAndTask();
  343. if (dicMaidStatusAndTask.TryGetValue(this.m_scheduleCtrl.GetActiveSlotNo(), out maidStatusAndTaskUnit))
  344. {
  345. return maidStatusAndTaskUnit.daytimeTaskId;
  346. }
  347. return null;
  348. }
  349. public void UpdateTaskViewer(string taskId)
  350. {
  351. this.LoadDaytimeTaskData(taskId);
  352. this.SetDaytimeTaskButtonActive(taskId);
  353. }
  354. public void UpdateSelectedMaidTask(string taskId)
  355. {
  356. this.UpdatePersistentData(int.Parse(taskId));
  357. string currentActiveButton = this.m_scheduleMgr.CurrentActiveButton;
  358. this.m_scheduleMgr.UpdateMaidStatus();
  359. this.CreateTaskViewer(currentActiveButton);
  360. this.m_scheduleMgr.CurrentActiveButton = currentActiveButton;
  361. }
  362. private void UpdatePersistentData(int taskId)
  363. {
  364. this.m_scheduleApi.SetNoonWorkSlot_Safe(ScheduleMgr.ScheduleTime.DayTime, this.m_currentActiveSlotNo, taskId);
  365. }
  366. public void SetDaytimeTaskButtonActive(string taskId)
  367. {
  368. foreach (KeyValuePair<string, DaytimeTaskCtrl.DaytimeTaskButton> keyValuePair in this.m_dicDaytimeTask)
  369. {
  370. string key = keyValuePair.Key;
  371. DaytimeTaskCtrl.DaytimeTaskButton value = keyValuePair.Value;
  372. if (key == taskId)
  373. {
  374. if (value.enableTask)
  375. {
  376. value.btnTask.defaultColor = this.m_scheduleCtrl.GetActiveColor();
  377. }
  378. else
  379. {
  380. value.btnTask.defaultColor = this.m_scheduleCtrl.GetDisableColor();
  381. }
  382. value.selectCursor.SetActive(true);
  383. }
  384. else
  385. {
  386. value.selectCursor.SetActive(false);
  387. value.btnTask.defaultColor = this.m_scheduleCtrl.GetInActiveColor();
  388. }
  389. }
  390. }
  391. private List<DaytimeTaskCtrl.DaytimeTaskButton> LoadData(int slotNo)
  392. {
  393. this.m_scheduleApi = this.m_scheduleMgr.GetScheduleApi();
  394. this.worksData = this.m_scheduleApi.slot[slotNo].noonWorksData;
  395. this.m_currentSlotInfo = this.m_scheduleApi.slot[slotNo];
  396. List<DaytimeTaskCtrl.DaytimeTaskButton> list = new List<DaytimeTaskCtrl.DaytimeTaskButton>();
  397. foreach (ScheduleBase scheduleBase in this.worksData)
  398. {
  399. if (scheduleBase.workType == ScheduleType.Training)
  400. {
  401. ScheduleTraining scheduleTraining = (ScheduleTraining)scheduleBase;
  402. if (scheduleTraining.visible)
  403. {
  404. list.Add(new DaytimeTaskCtrl.DaytimeTaskButton
  405. {
  406. id = scheduleTraining.id.ToString(),
  407. name = scheduleTraining.name,
  408. rank = scheduleTraining.lv,
  409. expRatio = scheduleTraining.expRatioFrom0To10,
  410. txtTaskIcon = scheduleTraining.icon,
  411. enableTask = scheduleTraining.enabled,
  412. type = scheduleTraining.type
  413. });
  414. }
  415. }
  416. }
  417. return list;
  418. }
  419. private ScheduleMgr m_scheduleMgr;
  420. private ScheduleCtrl m_scheduleCtrl;
  421. private ScheduleScene m_scheduleApi;
  422. private Slot m_currentSlotInfo;
  423. private Dictionary<string, DaytimeTaskCtrl.DaytimeTaskButton> m_dicDaytimeTask;
  424. private List<ScheduleCtrl.VariableItem> m_listMaidParameter;
  425. private List<ScheduleCtrl.VariableItem> m_listSalonParameter;
  426. private List<DaytimeTaskCtrl.DaytimeTaskButton> m_listDaytimeTask;
  427. private List<ScheduleBase> worksData;
  428. private GameObject m_goDaytimeTaskViewer;
  429. private GameObject m_goParameterViewer;
  430. private GameObject m_goRoomViewer;
  431. private GameObject m_goMaidParameterParent;
  432. private GameObject m_goSalonParameter;
  433. private GameObject m_goSalonParameterParent;
  434. private GameObject m_goTitleOfMaidParameter;
  435. private GameObject m_goTitleOfSalonParameter;
  436. private GameObject m_content;
  437. private UISprite m_spBGOfParameterViewer;
  438. private UIScrollView m_taskScrollView;
  439. private UIScrollBar m_taskScrollBar;
  440. private UILabel m_lStudyRate;
  441. private UILabel m_lReception;
  442. private UILabel m_lCare;
  443. private UILabel m_lLovely;
  444. private UILabel m_lElegance;
  445. private UILabel m_lCharm;
  446. private UILabel m_lTeachRate;
  447. private UILabel m_lMaidClassExp;
  448. private UILabel m_lCleanliness;
  449. private UILabel m_lBrilliant;
  450. private UILabel m_lIncome;
  451. private UILabel m_lCurrentStudyRate;
  452. private UILabel m_lCurrentReception;
  453. private UILabel m_lCurrentCare;
  454. private UILabel m_lCurrentLovely;
  455. private UILabel m_lCurrentElegance;
  456. private UILabel m_lCurrentCharm;
  457. private UILabel m_lCurrentTeachRate;
  458. private UILabel m_lCurrentMaidClassExp;
  459. private UILabel m_lRoomName;
  460. private bool m_bInit;
  461. private float m_contentPosY;
  462. private int m_heightOfSalonParameterTitle;
  463. private int m_heightOfMaidParameterTitle;
  464. private int m_currentActiveSlotNo;
  465. private const string DAYTIME_TASK_UNIT_PATH = "SceneDaily/Schedule/Prefab/DaytimeTaskUnit";
  466. private const string NOTHING = "0";
  467. public class DaytimeTaskButton
  468. {
  469. public string id;
  470. public string name;
  471. public int rank;
  472. public int expRatio;
  473. public UIButton btnTask;
  474. public Texture2D txtTaskIcon;
  475. public GameObject selectCursor;
  476. public List<GameObject> listRank;
  477. public int order;
  478. public bool enableTask;
  479. public ScheduleCSVData.TrainingType type;
  480. }
  481. }