hch
2025-12-03 d00fd13c4c57703063ece6cb1e673e87bfc9c9c7
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;
    }
}