|
@@ -4,29 +4,34 @@ using Common.Utility.CombatEvent;
|
|
|
using Fort23.Core;
|
|
|
using Fort23.Mono;
|
|
|
using GameLogic.Bag;
|
|
|
+using GameLogic.Combat;
|
|
|
|
|
|
namespace GameUI
|
|
|
{
|
|
|
public class DialogueMono : IDialogueMono
|
|
|
{
|
|
|
- public void OpenDialoguePanel(int id, string[] icon, ShowDialogueEventData.MessageShowType messageShowType, Action<int?> finish)
|
|
|
+ public void OpenDialoguePanel(int id, string[] icon, ShowDialogueEventData.MessageShowType messageShowType,
|
|
|
+ Action<int?> finish)
|
|
|
{
|
|
|
- DialoguePanel.OpenDialoguePanel(id, icon,messageShowType,finish);
|
|
|
+ DialoguePanel.OpenDialoguePanel(id, icon, messageShowType, finish);
|
|
|
}
|
|
|
|
|
|
public async CTask OpenRewardsPanel(List<ItemInfo> rewardsDic, Action onClose = null, int titleId = 0)
|
|
|
{
|
|
|
CTask cTask = CTask.Create();
|
|
|
- RewardsPanel rewardsPanel = await RewardsPanel.OpenPanel(rewardsDic,onClose,titleId);
|
|
|
+ RewardsPanel rewardsPanel = await RewardsPanel.OpenPanel(rewardsDic, onClose, titleId);
|
|
|
await rewardsPanel.UIClosed();
|
|
|
cTask.SetResult();
|
|
|
}
|
|
|
|
|
|
- public async CTask OpenDialoguePanel(int id, Action<int?> finish)
|
|
|
+ public async CTask OpenDialoguePanel(int id, Action<int?> finish)
|
|
|
{
|
|
|
- await DialogueBubblePanel.OpenDialoguePanel(id, finish);
|
|
|
+ await DialogueBubblePanel.OpenDialoguePanel(id, finish);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ public void StartCombat(int levelBattle, Action<bool> finishCombat)
|
|
|
+ {
|
|
|
+ CombatDrive.Instance.LoadLevelBattleCombat(levelBattle, finishCombat);
|
|
|
+ }
|
|
|
}
|
|
|
}
|