PrivateCharaSelectMove.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System;
  2. public class PrivateCharaSelectMove : WfScreenChildren
  3. {
  4. public override void Awake()
  5. {
  6. base.Awake();
  7. base.SetFadeTime(0f);
  8. }
  9. public void SetNextLabel(string label)
  10. {
  11. this.m_nextLabel = label;
  12. }
  13. public void SetBackupFile(string fileName)
  14. {
  15. this.m_backupFile = fileName;
  16. }
  17. protected override void OnCall()
  18. {
  19. }
  20. public override void Update()
  21. {
  22. base.Update();
  23. if (base.fade_status == WfScreenChildren.FadeStatus.Wait)
  24. {
  25. this.Finish();
  26. }
  27. }
  28. protected override void OnFinish()
  29. {
  30. base.OnFinish();
  31. if (!string.IsNullOrEmpty(this.m_nextLabel) && !string.IsNullOrEmpty(this.m_backupFile))
  32. {
  33. string nextLabel = this.m_nextLabel;
  34. string backupFile = this.m_backupFile;
  35. this.m_nextLabel = string.Empty;
  36. this.m_backupFile = string.Empty;
  37. GameMain.Instance.ScriptMgr.adv_kag.LoadScriptFile(backupFile, string.Empty);
  38. GameMain.Instance.ScriptMgr.adv_kag.JumpLabel(nextLabel);
  39. GameMain.Instance.ScriptMgr.adv_kag.Exec();
  40. }
  41. }
  42. protected override void FadeIn()
  43. {
  44. base.FadeIn();
  45. if (base.fade_status == WfScreenChildren.FadeStatus.Wait)
  46. {
  47. this.Finish();
  48. }
  49. }
  50. public bool IsExistNextFile()
  51. {
  52. return !string.IsNullOrEmpty(this.m_nextLabel) && !string.IsNullOrEmpty(this.m_backupFile);
  53. }
  54. public string NextLabel
  55. {
  56. get
  57. {
  58. return this.m_nextLabel;
  59. }
  60. }
  61. public string BackupFile
  62. {
  63. get
  64. {
  65. return this.m_backupFile;
  66. }
  67. }
  68. private string m_nextLabel;
  69. private string m_backupFile;
  70. }