DialogueMono.cs 975 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using Common.Utility.CombatEvent;
  4. using Fort23.Core;
  5. using Fort23.Mono;
  6. using GameLogic.Bag;
  7. namespace GameUI
  8. {
  9. public class DialogueMono : IDialogueMono
  10. {
  11. public void OpenDialoguePanel(int id, string[] icon, ShowDialogueEventData.MessageShowType messageShowType, Action<int?> finish)
  12. {
  13. DialoguePanel.OpenDialoguePanel(id, icon,messageShowType,finish);
  14. }
  15. public async CTask OpenRewardsPanel(List<ItemInfo> rewardsDic, Action onClose = null, int titleId = 0)
  16. {
  17. CTask cTask = CTask.Create();
  18. RewardsPanel rewardsPanel = await RewardsPanel.OpenPanel(rewardsDic,onClose,titleId);
  19. await rewardsPanel.UIClosed();
  20. cTask.SetResult();
  21. }
  22. public async CTask OpenDialoguePanel(int id, Action<int?> finish)
  23. {
  24. await DialogueBubblePanel.OpenDialoguePanel(id, finish);
  25. }
  26. }
  27. }