lcy
2025-12-03 b9a6e7e896b451e9c915e782a1789b2afe079cc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public static class ChatBubbleHelper
{
    public static int GetOtherChatBubbleID(int job, int nowID)
    {
        int defaultID = GetChatBubbleDefaultID(job);
        return ChatBubbleBoxConfig.HasKey(nowID) ? nowID : defaultID;
    }
 
    public static int GetMyChatBubbleID()
    {
        return PhantasmPavilionManager.Instance.TryGetNowShowID(PhantasmPavilionType.ChatBox, out int defaultID) ? defaultID : 0;
    }
 
    public static int GetChatBubbleDefaultID(int job)
    {
        return PhantasmPavilionManager.Instance.TryGetDefaultID(PhantasmPavilionType.ChatBox, job, out int defaultID) ? defaultID : 0;
    }
}