DeskCustomizeMain.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. public class DeskCustomizeMain : WfScreenChildren
  3. {
  4. public override void Awake()
  5. {
  6. base.Awake();
  7. }
  8. protected override void OnCall()
  9. {
  10. uGUITutorialPanel.OpenTutorial("SceneDeskCustomize", null, false);
  11. GameMain.Instance.SysShortcut.strSceneHelpName = "SceneDeskCustomize";
  12. }
  13. public void OnClickOK()
  14. {
  15. if (GameMain.Instance.CharacterMgr.status.GetFlag("desk_customize_savedata_warning") == 1)
  16. {
  17. if (GameMain.Instance.SysDlg.IsDecided)
  18. {
  19. GameMain.Instance.SysDlg.Show("デスクトップカスタムの設定データがシステムから個々のセーブデータ依存に変更になりました\nセーブをせず終了すると、データは失われますのでご注意ください", SystemDialog.TYPE.OK, new SystemDialog.OnClick(this.OnEndOk), null);
  20. }
  21. }
  22. else
  23. {
  24. this.OnEndOk();
  25. }
  26. }
  27. public void OnEndOk()
  28. {
  29. GameMain.Instance.CharacterMgr.status.SetFlag("desk_customize_savedata_warning", 0);
  30. GameMain.Instance.SysDlg.Close();
  31. if ((base.parent_mgr.children_dic["Move"] as WfScreenMoveChildren).IsExistNextLabel())
  32. {
  33. this.Finish();
  34. }
  35. }
  36. protected override void OnFinish()
  37. {
  38. base.parent_mgr.CallScreen("Move");
  39. }
  40. }